Re: [PATCH v4] vga: don't abort when adding a duplicate isa-vga device

2021-08-18 Thread Thomas Huth
On 17/08/2021 21.26, Jose R. Ziviani wrote: If users try to add an isa-vga device that was already registered, still in command line, qemu will crash: $ qemu-system-mips64el -M pica61 -device isa-vga RAMBlock "vga.vram" already registered, abort! Aborted (core dumped) That particular board regi

[PATCH 2/4] target/i386: Added VGIF V_IRQ masking capability

2021-08-18 Thread Lara Lazier
VGIF provides masking capability for when virtual interrupts are taken. (APM2) Signed-off-by: Lara Lazier --- target/i386/cpu.c | 7 +-- target/i386/cpu.h | 2 ++ target/i386/tcg/sysemu/svm_helper.c | 12 3 files changed, 19 insertions(+), 2

[PATCH 0/4] target/i386: V_IRQ masking and V_TPR fixes

2021-08-18 Thread Lara Lazier
Patch 2 adds VGIF capability to mask virtual interrupts. Patches 3 and 4 fix bugs related to vTPR, while patch 1 refactors int_ctl into the state structure to simplify the fixes in the following patches. Lara Lazier (4): target/i386: Moved int_ctl into CPUX86State structure target/i386: Added

[PATCH] target/i386: Added vVMLOAD and vVMSAVE feature

2021-08-18 Thread Lara Lazier
The feature allows the VMSAVE and VMLOAD instructions to execute in guest mode without causing a VMEXIT. (APM2 15.33.1) This is currently untested; I sent it out as part of my GSoC project. Signed-off-by: Lara Lazier --- target/i386/cpu.h| 2 ++ target/i386/svm.h

[PATCH 4/4] target/i386: Added changed priority check for VIRQ

2021-08-18 Thread Lara Lazier
Writes to cr8 affect v_tpr. This could set or unset an interrupt request as the priority might have changed. Signed-off-by: Lara Lazier --- target/i386/cpu.h| 15 +++ target/i386/tcg/sysemu/misc_helper.c | 7 +++ target/i386/tcg/sysemu/svm_helper.c | 15

[PATCH 3/4] target/i386: Added ignore TPR check in ctl_has_irq

2021-08-18 Thread Lara Lazier
The APM2 states that if V_IGN_TPR is nonzero, the current virtual interrupt ignores the (virtual) TPR. Signed-off-by: Lara Lazier --- target/i386/tcg/sysemu/svm_helper.c | 5 + 1 file changed, 5 insertions(+) diff --git a/target/i386/tcg/sysemu/svm_helper.c b/target/i386/tcg/sysemu/svm_hel

[PATCH 1/4] target/i386: Moved int_ctl into CPUX86State structure

2021-08-18 Thread Lara Lazier
Moved int_ctl into the CPUX86State structure to remove some unnecessary stores and loads. Signed-off-by: Lara Lazier --- slirp| 2 +- target/i386/cpu.c| 2 +- target/i386/cpu.h| 1 + target/i386/machine.c|

Re: [PATCH v2] tests/acceptance: Test powernv machines

2021-08-18 Thread Cédric Le Goater
On 8/18/21 8:27 AM, Thomas Huth wrote: > On 17/08/2021 11.30, Cédric Le Goater wrote: >> Fetch the OpenPOWER images to boot the powernv8 and powernv9 machines >> with a simple PCI layout. >> >> Cc: Cleber Rosa >> Cc: Philippe Mathieu-Daudé >> Cc: Wainer dos Santos Moschetta >> Signed-off-by: Céd

Re: [PATCH v2 01/21] target/riscv: Use tcg_constant_*

2021-08-18 Thread Bin Meng
On Wed, Aug 18, 2021 at 5:18 AM Richard Henderson wrote: > > Replace uses of tcg_const_* with the allocate and free close together. > > Reviewed-by: Philippe Mathieu-Daudé > Reviewed-by: Alistair Francis > Signed-off-by: Richard Henderson > --- > target/riscv/translate.c| 36 ++

Re: Please help me understand VIRTIO_F_IOMMU_PLATFORM

2021-08-18 Thread Mark Cave-Ayland
On 31/07/2021 16:41, Jason Thorpe wrote: (added Michael on CC) Hey folks — I’d like to be able to use VirtIO with qemu-system-alpha but, at least on a NetBSD x86_64 host, it does not currently work. This is because virtio_bus_device_plugged() in hw/virtio/virtio-bus.c ends up picking addres

Re: [PATCH v4] vga: don't abort when adding a duplicate isa-vga device

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/17/21 9:26 PM, Jose R. Ziviani wrote: > If users try to add an isa-vga device that was already registered, > still in command line, qemu will crash: > > $ qemu-system-mips64el -M pica61 -device isa-vga > RAMBlock "vga.vram" already registered, abort! > Aborted (core dumped) > > That particul

Re: [PATCH v4] hw/dma/pl330: Add memory region to replace default

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/18/21 4:47 AM, Wen, Jianxian wrote: > Add configurable property memory region which can connect with IOMMU region > to support SMMU translate. > > Signed-off-by: Jianxian Wen > --- > v3 -> v4 (after review of Philippe Mathieu-Daudé): > - Avoid adding unnecessary AS, add AS if we connect wi

RE: [PATCH v4 1/3] target-arm: Add support for Fujitsu A64FX

2021-08-18 Thread ishii.shuuic...@fujitsu.com
We appreciate everyone's comments. Before making the V5 patch, please let me check the patch contents. > This looks reasonable to me, but you also need the 'sve' property that states > sve in > supported at all. > > > So maybe we should just go ahead and add all sve* properties, In response t

Re: [PATCH v2 15/55] target/sparc: Remove DEBUG_UNALIGNED

2021-08-18 Thread Mark Cave-Ayland
On 03/08/2021 05:14, Richard Henderson wrote: The printf should have been qemu_log_mask, the parameters themselves no longer compile, and because this is placed before unwinding the PC is actively wrong. We get better (and correct) logging on the other side of raising the exception, in sparc_cp

Re: [PATCH v2 16/55] target/sparc: Split out build_sfsr

2021-08-18 Thread Mark Cave-Ayland
On 03/08/2021 05:14, Richard Henderson wrote: Signed-off-by: Richard Henderson --- target/sparc/mmu_helper.c | 72 +-- 1 file changed, 46 insertions(+), 26 deletions(-) diff --git a/target/sparc/mmu_helper.c b/target/sparc/mmu_helper.c index a44473a1c7..5

Re: [PATCH 2/2] monitor: Report EBADFD if fdset contains invalid FD

2021-08-18 Thread Daniel P . Berrangé
On Tue, Aug 17, 2021 at 01:59:22PM +0400, Marc-André Lureau wrote: > Hi > > On Tue, Aug 17, 2021 at 12:56 PM Michal Privoznik > wrote: > > > When opening a path that starts with "/dev/fdset/" the control > > jumps into qemu_parse_fdset() and then into > > monitor_fdset_dup_fd_add(). In here, cor

Re: [PATCH v2 03/55] target/alpha: Implement do_unaligned_access for user-only

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/3/21 6:13 AM, Richard Henderson wrote: > Reviewed-by: Peter Maydell > Signed-off-by: Richard Henderson > --- > target/alpha/cpu.c| 2 +- > target/alpha/mem_helper.c | 8 +++- > 2 files changed, 4 insertions(+), 6 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v2 05/55] target/hppa: Implement do_unaligned_access for user-only

2021-08-18 Thread Philippe Mathieu-Daudé
+Helge On 8/3/21 6:13 AM, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > linux-user/hppa/cpu_loop.c | 2 +- > target/hppa/cpu.c | 9 ++--- > 2 files changed, 7 insertions(+), 4 deletions(-) > > diff --git a/linux-user/hppa/cpu_loop.c b/linux-user/hppa/cpu_loop.

Re: [PATCH v2 17/55] target/sparc: Set fault address in sparc_cpu_do_unaligned_access

2021-08-18 Thread Mark Cave-Ayland
On 03/08/2021 05:14, Richard Henderson wrote: We ought to have been recording the virtual address for reporting to the guest trap handler. Move the function to mmu_helper.c, so that we can re-use code shared with get_physical_address_data. Cc: Mark Cave-Ayland Signed-off-by: Richard Henderson

Re: [PATCH v2 12/55] target/s390x: Implement do_unaligned_access for user-only

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/3/21 6:14 AM, Richard Henderson wrote: > Reviewed-by: David Hildenbrand > Signed-off-by: Richard Henderson > --- > target/s390x/cpu.c | 2 +- > target/s390x/tcg/excp_helper.c | 28 +++- > 2 files changed, 16 insertions(+), 14 deletions(-) Reviewed-by: P

Re: [PATCH v2 19/55] target/xtensa: Implement do_unaligned_access for user-only

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/3/21 6:14 AM, Richard Henderson wrote: > Cc: Max Filippov > Signed-off-by: Richard Henderson > --- > target/xtensa/cpu.c| 2 +- > target/xtensa/helper.c | 30 +++--- > 2 files changed, 16 insertions(+), 16 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v2 18/55] target/sparc: Implement do_unaligned_access for user-only

2021-08-18 Thread Mark Cave-Ayland
On 03/08/2021 05:14, Richard Henderson wrote: Cc: Mark Cave-Ayland Signed-off-by: Richard Henderson --- linux-user/sparc/cpu_loop.c | 11 +++ target/sparc/cpu.c | 2 +- target/sparc/mmu_helper.c | 4 +++- 3 files changed, 15 insertions(+), 2 deletions(-) diff --git a

Re: [PATCH v2 39/55] target/sparc: Use cpu_*_mmu instead of helper_*_mmu

2021-08-18 Thread Mark Cave-Ayland
On 03/08/2021 05:14, Richard Henderson wrote: The helper_*_mmu functions were the only thing available when this code was written. This could have been adjusted when we added cpu_*_mmuidx_ra, but now we can most easily use the newest set of interfaces. Cc: Mark Cave-Ayland Signed-off-by: Rich

Re: [PATCH v2 20/55] accel/tcg: Report unaligned atomics for user-only

2021-08-18 Thread Philippe Mathieu-Daudé
Hi Richard, On 8/3/21 6:14 AM, Richard Henderson wrote: > Use the newly exposed cpu_unaligned_access for atomic_mmu_lookup, > which has access to complete alignment info from the TCGMemOpIdx arg. > > Signed-off-by: Richard Henderson > --- > accel/tcg/user-exec.c | 14 +- > 1 file ch

Re: [PATCH v4 1/3] target-arm: Add support for Fujitsu A64FX

2021-08-18 Thread Andrew Jones
On Wed, Aug 18, 2021 at 08:29:15AM +, ishii.shuuic...@fujitsu.com wrote: > > We appreciate everyone's comments. > Before making the V5 patch, please let me check the patch contents. > > > This looks reasonable to me, but you also need the 'sve' property that > > states sve in > > supported a

Re: [PATCH v2 28/55] trace: Split guest_mem_before

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/3/21 6:14 AM, Richard Henderson wrote: > There is no point in encoding load/store within a bit of > the memory trace info operand. Represent atomic operations > as a single read-modify-write tracepoint. Use MemOpIdx > instead of inventing a form specifically for traces. > > Signed-off-by: R

Re: [PATCH v2 30/55] target/i386: Use MO_128 for 16 byte atomics

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/3/21 6:14 AM, Richard Henderson wrote: > Signed-off-by: Richard Henderson > --- > target/i386/tcg/mem_helper.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v2 34/55] accel/tcg: Add cpu_{ld,st}*_mmu interfaces

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/3/21 6:14 AM, Richard Henderson wrote: > These functions are much closer to the softmmu helper > functions, in that they take the complete MemOpIdx, > and from that they may enforce required alignment. > > The previous cpu_ldst.h functions did not have alignment info, > and so did not enforce

Re: [PATCH 1/2] gitlab: exclude sparc-softmmu and riscv32-softmmu from cross builds

2021-08-18 Thread Mark Cave-Ayland
On 10/08/2021 15:06, Daniel P. Berrangé wrote: We need to cut down compile time by excluding more targets. Both these targets still have their 64-bit variant enabled, so the loss of coverage is mitigated to some degree. Signed-off-by: Daniel P. Berrangé --- .gitlab-ci.d/crossbuild-template.y

Re: [PATCH v2 02/21] target/riscv: Clean up division helpers

2021-08-18 Thread Bin Meng
On Wed, Aug 18, 2021 at 5:18 AM Richard Henderson wrote: > > Utilize the condition in the movcond more; this allows some of > the setcond that were feeding into movcond to be removed. > Do not write into source1 and source2. Re-name "condN" to "tempN" > and use the temporaries for more than holdi

Re: [PATCH v2 37/55] target/mips: Use 8-byte memory ops for msa load/store

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/3/21 6:14 AM, Richard Henderson wrote: > Rather than use 4-16 separate operations, use 2 operations > plus some byte reordering as necessary. > > Cc: Philippe Mathieu-Daudé > Signed-off-by: Richard Henderson > --- > target/mips/tcg/msa_helper.c | 201 +-- >

Re: [PATCH v4] vga: don't abort when adding a duplicate isa-vga device

2021-08-18 Thread Mark Cave-Ayland
On 17/08/2021 20:26, Jose R. Ziviani wrote: If users try to add an isa-vga device that was already registered, still in command line, qemu will crash: $ qemu-system-mips64el -M pica61 -device isa-vga RAMBlock "vga.vram" already registered, abort! Aborted (core dumped) That particular board reg

Re: [PATCH v2 03/21] target/riscv: Add DisasContext to gen_get_gpr, gen_set_gpr

2021-08-18 Thread Bin Meng
On Wed, Aug 18, 2021 at 5:21 AM Richard Henderson wrote: > Can we put some commit message here to explain the reason behind this change? > Signed-off-by: Richard Henderson > --- > target/riscv/translate.c| 58 - > target/riscv/insn_trans/trans_rva.c.inc

Re: [PATCH 1/2] gitlab: exclude sparc-softmmu and riscv32-softmmu from cross builds

2021-08-18 Thread Daniel P . Berrangé
On Wed, Aug 18, 2021 at 10:15:47AM +0100, Mark Cave-Ayland wrote: > On 10/08/2021 15:06, Daniel P. Berrangé wrote: > > > We need to cut down compile time by excluding more targets. Both these > > targets still have their 64-bit variant enabled, so the loss of coverage > > is mitigated to some degr

Re: [PATCH 1/2] gitlab: exclude sparc-softmmu and riscv32-softmmu from cross builds

2021-08-18 Thread Mark Cave-Ayland
On 18/08/2021 10:29, Daniel P. Berrangé wrote: On Wed, Aug 18, 2021 at 10:15:47AM +0100, Mark Cave-Ayland wrote: On 10/08/2021 15:06, Daniel P. Berrangé wrote: We need to cut down compile time by excluding more targets. Both these targets still have their 64-bit variant enabled, so the loss o

[PATCH v5] hw/dma/pl330: Add memory region to replace default

2021-08-18 Thread Wen, Jianxian
Add property memory region which can connect with IOMMU region to support SMMU translate. Signed-off-by: Jianxian Wen --- v5 (after review of Philippe Mathieu-Daudé): - Refine code and use memory_region_name() to get MR name. v4 (after review of Philippe Mathieu-Daudé): - Avoid creating new AS

Re: [PATCH v3] block/file-win32: add reopen handlers

2021-08-18 Thread Helge Konetzka
Am 17.08.21 um 22:21 schrieb Viktor Prutyanov: Make 'qemu-img commit' work on Windows. Command 'commit' requires reopening backing file in RW mode. So, add reopen prepare/commit/abort handlers and change dwShareMode for CreateFile call in order to allow further read/write reopening. Resolves: h

Re: [PATCH 1/2] gitlab: exclude sparc-softmmu and riscv32-softmmu from cross builds

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/18/21 11:45 AM, Mark Cave-Ayland wrote: > On 18/08/2021 10:29, Daniel P. Berrangé wrote: >> On Wed, Aug 18, 2021 at 10:15:47AM +0100, Mark Cave-Ayland wrote: >>> On 10/08/2021 15:06, Daniel P. Berrangé wrote: >>> We need to cut down compile time by excluding more targets. Both these

Re: [PATCH v5] hw/dma/pl330: Add memory region to replace default

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/18/21 12:17 PM, Wen, Jianxian wrote: > Add property memory region which can connect with IOMMU region to support > SMMU translate. > > Signed-off-by: Jianxian Wen > --- > v5 (after review of Philippe Mathieu-Daudé): > - Refine code and use memory_region_name() to get MR name. > v4 (after r

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread Ashish Kalra
Hello Paolo, On Mon, Aug 16, 2021 at 05:38:55PM +0200, Paolo Bonzini wrote: > On 16/08/21 17:13, Ashish Kalra wrote: > > > > I think that once the mirror VM starts booting and running the UEFI > > > > code, it might be only during the PEI or DXE phase where it will > > > > start actually running t

Re: [PATCH v2 04/21] target/riscv: Introduce DisasExtend and new helpers

2021-08-18 Thread Bin Meng
On Wed, Aug 18, 2021 at 5:22 AM Richard Henderson wrote: > > Introduce get_gpr, dest_gpr, temp_new -- new helpers that do not force > tcg globals into temps, returning a constant 0 for $zero as source and > a new temp for $zero as destination. > > Introduce ctx->w for simplifying word operations,

[PATCH for-6.2 v2 0/2] target/ppc: Fix vector registers access in gdbstub for little-endian

2021-08-18 Thread matheus . ferst
From: Matheus Ferst PPC gdbstub code has two possible swaps of the 64-bit elements of AVR registers: in gdb_get_avr_reg/gdb_set_avr_reg (based on msr_le) and in gdb_get_reg128/ldq_p (based on TARGET_WORDS_BIGENDIAN). In softmmu, only the first is done, because TARGET_WORDS_BIGENDIAN is always tr

[PATCH for-6.2 v2 1/2] include/qemu/int128.h: introduce bswap128s

2021-08-18 Thread matheus . ferst
From: Matheus Ferst Changes the current bswap128 implementation to use __builtin_bswap128 when available, adds a bswap128 implementation for !CONFIG_INT128 builds, and introduces bswap128s based on bswap128. Signed-off-by: Matheus Ferst --- include/qemu/int128.h | 15 +++ 1 file ch

[PATCH for-6.2 v2 2/2] target/ppc: fix vector registers access in gdbstub for little-endian

2021-08-18 Thread matheus . ferst
From: Matheus Ferst As vector registers are stored in host endianness, we shouldn't swap its 64-bit elements in user mode. Add a 16-byte case in ppc_maybe_bswap_register to handle the reordering of elements in softmmu and remove avr_need_swap which is now unused. Signed-off-by: Matheus Ferst --

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread James Bottomley
On Wed, 2021-08-18 at 10:31 +, Ashish Kalra wrote: > Hello Paolo, > > On Mon, Aug 16, 2021 at 05:38:55PM +0200, Paolo Bonzini wrote: > > On 16/08/21 17:13, Ashish Kalra wrote: > > > > > I think that once the mirror VM starts booting and running > > > > > the UEFI code, it might be only during

[PATCH for-6.2] docs/about/removed-features: Move some CLI options to the right location

2021-08-18 Thread Thomas Huth
Some of the removed CLI options have been added to the wrong section in the "Removed features" chapter - they've been put into the "Related binaries" section instead. Move them now into the correct "System emulator command line arguments" section. Signed-off-by: Thomas Huth --- docs/about/remove

Re: [PATCH] hw/acpi: refactor acpi hp modules so that targets can just use what they need

2021-08-18 Thread Ani Sinha
Ping ... On Thu, 12 Aug 2021, Ani Sinha wrote: > Currently various acpi hotplug modules like cpu hotplug, memory hotplug, pci > hotplug, nvdimm hotplug are all pulled in when CONFIG_ACPI_X86 is turned on. > This brings in support for whole lot of subsystems that some targets like > mips does not

[PATCH v4 2/2] arm/monitor: Add support for 'info tlb' command

2021-08-18 Thread NDNF
This adds hmp 'info tlb' command support for the arm platform. The limitation is that this only implements a page walker for ARMv8-A AArch64 Long Descriptor format, 32bit addressing is not supported yet. Signed-off-by: Changbin Du Signed-off-by: Ivanov Arkady --- hmp-commands-info.hx |3 +

[PATCH v4 0/2] arm: Add support for 'info tlb' command

2021-08-18 Thread NDNF
This adds hmp 'info tlb' command support for the arm platform. The limitation is that this only implements a page walker for ARMv8-A AArch64 Long Descriptor format, 32bit addressing is not supported yet. To reuse existing code, this patch also extracts some APIs from helper.c, including regime_tra

[PATCH v4 1/2] target/arm: Refactoring MMU helper function

2021-08-18 Thread NDNF
To reuse existing code for "tlb info", this patch also extracts some of the APIs from helper.c including mode_translation_disabled (), pt_start_level_stage1 (), mode_ttbr (), arm_ldq_ptw (). Signed-off-by: Ivanov Arkady Signed-off-by: Changbin Du --- target/arm/helper.c| 35 +++---

Re: [PATCH v4 2/2] arm/monitor: Add support for 'info tlb' command

2021-08-18 Thread Bin Meng
On Wed, Aug 18, 2021 at 7:48 PM NDNF wrote: > > This adds hmp 'info tlb' command support for the arm platform. > The limitation is that this only implements a page walker for > ARMv8-A AArch64 Long Descriptor format, 32bit addressing is > not supported yet. > > Signed-off-by: Changbin Du > Signed

Re: [PATCH for-6.2 24/25] hw/timer/stellaris-gptm: Use Clock input instead of system_clock_scale

2021-08-18 Thread Damien Hedde
On 8/12/21 11:33 AM, Peter Maydell wrote: > The stellaris-gptm timer currently uses system_clock_scale for one of > its timer modes where the timer runs at the CPU clock rate. Make it > use a Clock input instead. > > We don't try to make the timer handle changes in the clock frequency > while

[PATCH 0/1] uas: add stream number sanity checks (maybe 6.1)

2021-08-18 Thread Gerd Hoffmann
Security fix. Sorry for the last-minute patch, I had completely forgotten this one until the CVE number for it arrived today. Given that the classic usb storage device is way more popular than the uas (usb attached scsi) device the impact should be pretty low and we might consider to not screw up

[PATCH 1/1] uas: add stream number sanity checks.

2021-08-18 Thread Gerd Hoffmann
The device uses the guest-supplied stream number unchecked, which can lead to guest-triggered out-of-band access to the UASDevice->data3 and UASDevice->status3 fields. Add the missing checks. Fixes: CVE-2021-3713 Signed-off-by: Gerd Hoffmann --- hw/usb/dev-uas.c | 11 +++ 1 file changed

Re: [PATCH for-6.2 v2 1/2] include/qemu/int128.h: introduce bswap128s

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/18/21 1:06 PM, matheus.fe...@eldorado.org.br wrote: > From: Matheus Ferst > > Changes the current bswap128 implementation to use __builtin_bswap128 > when available, adds a bswap128 implementation for !CONFIG_INT128 > builds, and introduces bswap128s based on bswap128. > > Signed-off-by: Ma

Re: Please help me understand VIRTIO_F_IOMMU_PLATFORM

2021-08-18 Thread Jason Thorpe
> On Aug 18, 2021, at 12:58 AM, Mark Cave-Ayland > wrote: > > On 31/07/2021 16:41, Jason Thorpe wrote: > > (added Michael on CC) > > Hi Jason, > > Thanks for looking at this! I've had previous discussions with Martin trying > to figure out why virtio-blk-pci doesn't work with Netbsd/sparc6

Re: [PATCH 1/3] MAINTAINERS: Split Audio backends VS frontends

2021-08-18 Thread Christian Schoenebeck
On Dienstag, 17. August 2021 19:57:21 CEST Philippe Mathieu-Daudé wrote: > On 8/17/21 6:12 PM, Christian Schoenebeck wrote: > > On Dienstag, 17. August 2021 14:41:27 CEST Gerd Hoffmann wrote: > >> Hi, > >> > +Overall Audio frontends > >>> > >>> I would call that "Audio Hardware Emulation

Re: [PATCH v4 2/2] arm/monitor: Add support for 'info tlb' command

2021-08-18 Thread Peter Maydell
On Wed, 18 Aug 2021 at 13:00, Bin Meng wrote: > > On Wed, Aug 18, 2021 at 7:48 PM NDNF wrote: > > > > This adds hmp 'info tlb' command support for the arm platform. > > The limitation is that this only implements a page walker for > > ARMv8-A AArch64 Long Descriptor format, 32bit addressing is >

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2021-08-18 Thread Thomas Huth
So could we close this QEMU ticket now, or is there still something to be done from the QEMU side? ** Bug watch removed: Sourceware.org Bugzilla #27543 https://sourceware.org/bugzilla/show_bug.cgi?id=27543 -- You received this bug notification because you are a member of qemu- devel-ml, which

[Bug 1908489] Re: qemu 4.2 bootloops with -cpu host and nested hypervisor

2021-08-18 Thread Thomas Huth
Looking at the comments here, I assume this has been a bug in the kernel, not in QEMU, so I'm closing this one now. If you still think this is something that needs fixing in QEMU, please open a new ticket in the new bug tracker at https://gitlab.com/qemu-project/qemu/-/issues instead. ** Changed i

Re: [PATCH v3 09/10] virtiofsd: Optionally fill lo_inode.fhandle

2021-08-18 Thread Vivek Goyal
On Tue, Aug 17, 2021 at 08:14:46PM -0400, Vivek Goyal wrote: > On Tue, Aug 17, 2021 at 03:45:19PM -0400, Vivek Goyal wrote: > > On Tue, Aug 17, 2021 at 10:27:16AM +0200, Hanna Reitz wrote: > > > On 16.08.21 21:44, Vivek Goyal wrote: > > > > On Wed, Aug 11, 2021 at 08:41:18AM +0200, Hanna Reitz wrot

Re: [PATCH v4 2/2] arm/monitor: Add support for 'info tlb' command

2021-08-18 Thread Bin Meng
On Wed, Aug 18, 2021 at 8:54 PM Peter Maydell wrote: > > On Wed, 18 Aug 2021 at 13:00, Bin Meng wrote: > > > > On Wed, Aug 18, 2021 at 7:48 PM NDNF wrote: > > > > > > This adds hmp 'info tlb' command support for the arm platform. > > > The limitation is that this only implements a page walker fo

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2021-08-18 Thread John Paul Adrian Glaubitz
Yes, it can be closed. -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1796520 Title: autogen crashes on qemu-sh4-user after 61dedf2af7 Status in QEMU: Incomplete Bug description: Running "auto

Is QEMU's vmxnet3 still being used?

2021-08-18 Thread Thomas Huth
Hi all, I recently noticed that we have quite a bunch of tickets against the vmxnet3 device in our bug trackers, which indicate that this device could be used to crash QEMU in various ways: https://gitlab.com/qemu-project/qemu/-/issues?state=opened&search=vmxnet3 https://bugs.launchpad.

Re: [PATCH v3 09/10] virtiofsd: Optionally fill lo_inode.fhandle

2021-08-18 Thread Hanna Reitz
On 18.08.21 15:32, Vivek Goyal wrote: On Tue, Aug 17, 2021 at 08:14:46PM -0400, Vivek Goyal wrote: On Tue, Aug 17, 2021 at 03:45:19PM -0400, Vivek Goyal wrote: On Tue, Aug 17, 2021 at 10:27:16AM +0200, Hanna Reitz wrote: On 16.08.21 21:44, Vivek Goyal wrote: On Wed, Aug 11, 2021 at 08:41:18AM

[Bug 1796520] Re: autogen crashes on qemu-sh4-user after 61dedf2af7

2021-08-18 Thread Thomas Huth
Thanks, closing now. ** Changed in: qemu Status: Incomplete => Invalid -- You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1796520 Title: autogen crashes on qemu-sh4-user after 61dedf2af7 Status

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread Ashish Kalra
On Wed, Aug 18, 2021 at 12:37:32AM +0200, Paolo Bonzini wrote: > On Tue, Aug 17, 2021 at 11:54 PM Steve Rutherford > wrote: > > > 1) the easy one: the bottom 4G of guest memory are mapped in the mirror > > > VM 1:1. The ram_addr_t-based addresses are shifted by either 4G or a > > > huge value suc

[PATCH, trivial, for-6.1] spelling: sytem => system

2021-08-18 Thread Michael Tokarev
Signed-off-By: Michael Tokarev --- It is safe for 6.1 block/file-posix.c | 2 +- tools/virtiofsd/fuse_lowlevel.h | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/block/file-posix.c b/block/file-posix.c index cb9bffe047..1854bfa397 100644 --- a/block/file-pos

[PATCH, trivial, for-6.1] kvm: spelling: mininum=>minimum

2021-08-18 Thread Michael Tokarev
Signed-off-by: Michael Tokarev --- accel/kvm/kvm-all.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 0125c17edb..cace5ffe64 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@ -2469,7 +2469,7 @@ static int kvm_init(Ma

Re: [PATCH, trivial, for-6.1] spelling: sytem => system

2021-08-18 Thread Laurent Vivier
Le 18/08/2021 à 16:06, Michael Tokarev a écrit : > Signed-off-By: Michael Tokarev > --- > It is safe for 6.1 > >  block/file-posix.c  | 2 +- >  tools/virtiofsd/fuse_lowlevel.h | 4 ++-- >  2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/block/file-posix.c b/block/fil

[PATCH, trivial, for-6.1] target/i386: spelling: occured=>occurred

2021-08-18 Thread Michael Tokarev
Signed-off-by: Michael Tokarev --- accel/kvm/kvm-all.c | 2 +- target/i386/cpu-sysemu.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c index 0125c17edb..cace5ffe64 100644 --- a/accel/kvm/kvm-all.c +++ b/accel/kvm/kvm-all.c @@

Re: [PATCH v3 09/25] python/aqmp: add AsyncProtocol.accept() method

2021-08-18 Thread John Snow
On Tue, Aug 17, 2021 at 3:30 PM Eric Blake wrote: > On Tue, Aug 03, 2021 at 02:29:25PM -0400, John Snow wrote: > > It's a little messier than connect, because it wasn't designed to accept > > *precisely one* connection. Such is life. > > > > Signed-off-by: John Snow > > --- > > python/qemu/aqmp

Re: [PATCH, trivial, for-6.1] kvm: spelling: mininum=>minimum

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/18/21 4:11 PM, Michael Tokarev wrote: > Signed-off-by: Michael Tokarev > --- > accel/kvm/kvm-all.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) IIUC 6.1 is closed now. Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH, trivial, for-6.1] spelling: sytem => system

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/18/21 4:06 PM, Michael Tokarev wrote: > Signed-off-By: Michael Tokarev > --- > It is safe for 6.1 But too late ;) > >  block/file-posix.c  | 2 +- >  tools/virtiofsd/fuse_lowlevel.h | 4 ++-- >  2 files changed, 3 insertions(+), 3 deletions(-) Reviewed-by: Philippe Mathieu-Daudé

Re: [PATCH v3 13/25] python/aqmp: add QMP Message format

2021-08-18 Thread John Snow
On Tue, Aug 17, 2021 at 3:48 PM Eric Blake wrote: > On Tue, Aug 03, 2021 at 02:29:29PM -0400, John Snow wrote: > > The Message class is here primarily to serve as a solid type to use for > > mypy static typing for unambiguous annotation and documentation. > > > > We can also stuff JSON serializat

Re: [PATCH 1/1] uas: add stream number sanity checks.

2021-08-18 Thread Philippe Mathieu-Daudé
On 8/18/21 2:05 PM, Gerd Hoffmann wrote: > The device uses the guest-supplied stream number unchecked, which can > lead to guest-triggered out-of-band access to the UASDevice->data3 and > UASDevice->status3 fields. Add the missing checks. > > Fixes: CVE-2021-3713 Reported-by: Chen Zhe Reported-

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread Dr. David Alan Gilbert
* James Bottomley (j...@linux.ibm.com) wrote: > On Wed, 2021-08-18 at 10:31 +, Ashish Kalra wrote: > > Hello Paolo, > > > > On Mon, Aug 16, 2021 at 05:38:55PM +0200, Paolo Bonzini wrote: > > > On 16/08/21 17:13, Ashish Kalra wrote: > > > > > > I think that once the mirror VM starts booting and

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread Tobin Feldman-Fitzthum
On 8/17/21 6:04 PM, Steve Rutherford wrote: On Tue, Aug 17, 2021 at 1:50 PM Tobin Feldman-Fitzthum wrote: This is essentially what we do in our prototype, although we have an even simpler approach. We have a 1:1 mapping that maps an address to itself with the cbit set. During Migration QEMU ask

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread James Bottomley
On Wed, 2021-08-18 at 16:31 +0100, Dr. David Alan Gilbert wrote: > * James Bottomley (j...@linux.ibm.com) wrote: > > On Wed, 2021-08-18 at 10:31 +, Ashish Kalra wrote: > > > Hello Paolo, > > > > > > On Mon, Aug 16, 2021 at 05:38:55PM +0200, Paolo Bonzini wrote: > > > > On 16/08/21 17:13, Ashis

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread Dr. David Alan Gilbert
* James Bottomley (j...@linux.ibm.com) wrote: > On Wed, 2021-08-18 at 16:31 +0100, Dr. David Alan Gilbert wrote: > > * James Bottomley (j...@linux.ibm.com) wrote: > > > On Wed, 2021-08-18 at 10:31 +, Ashish Kalra wrote: > > > > Hello Paolo, > > > > > > > > On Mon, Aug 16, 2021 at 05:38:55PM +0

[Bug 1880763] Re: Missing page crossing check in use_goto_tb() for rx target

2021-08-18 Thread Richard Henderson
For the record, this was fixed for 6.1 in commit f3f713cc151086ca39d4f97270594fd8c43e17e5 Author: Richard Henderson Date: Sun Jun 20 16:37:12 2021 -0700 target/rx: Use translator_use_goto_tb Just use translator_use_goto_tb directly at the one call site, rather than maintaining

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread James Bottomley
On Wed, 2021-08-18 at 16:43 +0100, Dr. David Alan Gilbert wrote: > * James Bottomley (j...@linux.ibm.com) wrote: [...] > > Given the lack of SMI, we can't guarantee that with plain SEV and > > -ES. Once we move to -SNP, we can use VMPLs to achieve this. > > Doesn't the MH have access to different

[PATCH 0/5] target/mips: Replace TARGET_WORDS_BIGENDIAN by cpu_is_bigendian()

2021-08-18 Thread Philippe Mathieu-Daudé
MIPS CPU store its endianess in the CP0 Config0 register. Use that runtime information instead of #ifdef'ry checking TARGET_WORDS_BIGENDIAN by introducing the cpu_is_bigendian() helper. Philippe Mathieu-Daudé (5): target/mips: Replace GET_OFFSET() macro by get_offset() function target/mips: Re

[PATCH 1/5] target/mips: Replace GET_OFFSET() macro by get_offset() function

2021-08-18 Thread Philippe Mathieu-Daudé
The target endianess information is stored in the BigEndian bit of the Config0 register in CP0. As a first step, replace the GET_OFFSET() macro by an inlined get_offset() function, passing CPUMIPSState as argument. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/tcg/ldst_helper.c | 57 +++

[PATCH 4/5] target/mips: Store CP0_Config0 in DisasContext

2021-08-18 Thread Philippe Mathieu-Daudé
Most TCG helpers only have access to a DisasContext pointer, not CPUMIPSState. Store a copy of CPUMIPSState::CP0_Config0 in DisasContext so we can access it from TCG helpers. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/tcg/translate.h | 1 + target/mips/tcg/translate.c | 1 + 2 files c

[PATCH 5/5] target/mips: Replace TARGET_WORDS_BIGENDIAN by cpu_is_bigendian()

2021-08-18 Thread Philippe Mathieu-Daudé
Add the inlined cpu_is_bigendian() function in "translate.h". Replace the TARGET_WORDS_BIGENDIAN #ifdef'ry by calls to cpu_is_bigendian(). Signed-off-by: Philippe Mathieu-Daudé --- target/mips/tcg/translate.h | 5 ++ target/mips/tcg/translate.c | 70 --

[PATCH 2/5] target/mips: Replace GET_LMASK() macro by get_lmask(32) function

2021-08-18 Thread Philippe Mathieu-Daudé
The target endianess information is stored in the BigEndian bit of the Config0 register in CP0. Replace the GET_LMASK() macro by an inlined get_lmask() function, passing CPUMIPSState and the word size as argument. We can remove one use of the TARGET_WORDS_BIGENDIAN definition. Signed-off-by: Phi

[PATCH 3/5] target/mips: Replace GET_LMASK64() macro by get_lmask(64) function

2021-08-18 Thread Philippe Mathieu-Daudé
The target endianess information is stored in the BigEndian bit of the Config0 register in CP0. Replace the GET_LMASK() macro by an inlined get_lmask() function, passing CPUMIPSState and the word size as argument. We can remove another use of the TARGET_WORDS_BIGENDIAN definition. Signed-off-by:

Re: [PATCH 3/4] target/arm: Take an exception if PC is misaligned

2021-08-18 Thread Richard Henderson
On 8/17/21 3:00 PM, Richard Henderson wrote: With v8, this is CONSTRAINED UNDEFINED and may either raise an Bah, UNPREDICTABLE, of course, not UNDEFINED. r~

Re: [PATCH 1/5] target/mips: Replace GET_OFFSET() macro by get_offset() function

2021-08-18 Thread Richard Henderson
On 8/18/21 6:43 AM, Philippe Mathieu-Daudé wrote: The target endianess information is stored in the BigEndian bit of the Config0 register in CP0. As a first step, replace the GET_OFFSET() macro by an inlined get_offset() function, passing CPUMIPSState as argument. Signed-off-by: Philippe Mathie

Re: [PATCH 2/5] target/mips: Replace GET_LMASK() macro by get_lmask(32) function

2021-08-18 Thread Richard Henderson
On 8/18/21 6:43 AM, Philippe Mathieu-Daudé wrote: -if (GET_LMASK(arg2) <= 2) { +if (get_lmask(env, arg2, 32) <= 2) { Whatever you decide to do with respect to the previous patch, the result of get_lmask is constant across the function and should be computed only once. r~

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread Ashish Kalra
On Wed, Aug 18, 2021 at 02:06:25PM +, Ashish Kalra wrote: > On Wed, Aug 18, 2021 at 12:37:32AM +0200, Paolo Bonzini wrote: > > On Tue, Aug 17, 2021 at 11:54 PM Steve Rutherford > > wrote: > > > > 1) the easy one: the bottom 4G of guest memory are mapped in the mirror > > > > VM 1:1. The ram_a

Re: [PATCH 4/5] target/mips: Store CP0_Config0 in DisasContext

2021-08-18 Thread Richard Henderson
On 8/18/21 6:43 AM, Philippe Mathieu-Daudé wrote: Most TCG helpers only have access to a DisasContext pointer, not CPUMIPSState. Store a copy of CPUMIPSState::CP0_Config0 in DisasContext so we can access it from TCG helpers. Signed-off-by: Philippe Mathieu-Daudé --- target/mips/tcg/translate.h

Re: [PATCH 5/5] target/mips: Replace TARGET_WORDS_BIGENDIAN by cpu_is_bigendian()

2021-08-18 Thread Richard Henderson
On 8/18/21 6:43 AM, Philippe Mathieu-Daudé wrote: Add the inlined cpu_is_bigendian() function in "translate.h". Replace the TARGET_WORDS_BIGENDIAN #ifdef'ry by calls to cpu_is_bigendian(). Signed-off-by: Philippe Mathieu-Daudé --- target/mips/tcg/translate.h | 5 ++ target/mips

Re: [RFC PATCH 00/13] Add support for Mirror VM.

2021-08-18 Thread Dr. David Alan Gilbert
* James Bottomley (j...@linux.ibm.com) wrote: > On Wed, 2021-08-18 at 16:43 +0100, Dr. David Alan Gilbert wrote: > > * James Bottomley (j...@linux.ibm.com) wrote: > [...] > > > Given the lack of SMI, we can't guarantee that with plain SEV and > > > -ES. Once we move to -SNP, we can use VMPLs to ach

Re: [PATCH v2 20/55] accel/tcg: Report unaligned atomics for user-only

2021-08-18 Thread Richard Henderson
On 8/17/21 10:51 PM, Philippe Mathieu-Daudé wrote: -void *ret = g2h(env_cpu(env), addr); + +ret = g2h(env_cpu(env), addr); set_helper_retaddr(retaddr); return ret; Can't we simply do: return g2h(env_cpu(env), addr); ? I think the idea was to narrow the range of i

Re: [PATCH v2 34/55] accel/tcg: Add cpu_{ld,st}*_mmu interfaces

2021-08-18 Thread Richard Henderson
On 8/17/21 11:01 PM, Philippe Mathieu-Daudé wrote: On 8/3/21 6:14 AM, Richard Henderson wrote: These functions are much closer to the softmmu helper functions, in that they take the complete MemOpIdx, and from that they may enforce required alignment. The previous cpu_ldst.h functions did not h

Re: [PATCH v2 37/55] target/mips: Use 8-byte memory ops for msa load/store

2021-08-18 Thread Richard Henderson
On 8/17/21 11:21 PM, Philippe Mathieu-Daudé wrote: +#ifdef TARGET_WORDS_BIGENDIAN +static inline uint64_t bswap16x4(uint64_t x) +{ +uint64_t m = 0x00ff00ff00ff00ffull; +return ((x & m) << 8) | ((x >> 8) & m); +} + +static inline uint64_t bswap32x2(uint64_t x) +{ +return ror64(bswap64(

[PATCH] e1000e: Added ICR clearing by corresponding IMS bit.

2021-08-18 Thread Andrew Melnychenko
Buglink: https://bugzilla.redhat.com/show_bug.cgi?id=1707441 The issue is in LSC clearing. So, after "link up"(during initialization), the next LSC event is masked and can't be processed. Technically, the event should be 'cleared' during ICR read. On Windows guest, everything works well, mostly be

Re: [PATCH v3 04/13] python/aqmp-tui: Add AQMP TUI draft

2021-08-18 Thread John Snow
On Fri, Aug 13, 2021 at 11:11 AM Niteesh G. S. wrote: > > On Fri, Aug 6, 2021 at 12:28 AM John Snow wrote: > >> >> On Fri, Jul 30, 2021 at 4:19 PM G S Niteesh Babu >> wrote: >> >>> Added a draft of AQMP TUI. >>> >>> Implements the follwing basic features: >>> 1) Command transmission/reception.

  1   2   3   4   >