Re: [PATCH v2] softmmu: Use memmove in flatview_write_continue

2023-01-31 Thread David Hildenbrand
On 31.01.23 04:01, Akihiko Odaki wrote: We found a case where the source passed to flatview_write_continue() may overlap with the destination when fuzzing igb, a new proposed network device with sanitizers. igb uses pci_dma_map() to get Tx packet, and pci_dma_write() to write Rx buffer. While

Re: [PATCH 4/6] gitlab-ci.d/buildtest: Merge the --without-default-* jobs

2023-01-31 Thread Thomas Huth
On 30/01/2023 14.28, Fabiano Rosas wrote: Thomas Huth writes: Let's safe some CI minutes by merging these two jobs. We can now also drop "--disable-capstone" since the capstone submodule has been removed a while ago. We should rather tes --disable-fdt now to test a compilation without the

Re: [PATCH v9 01/58] include: import Xen public headers to include/standard-headers/

2023-01-31 Thread David Woodhouse
On Mon, 2023-01-30 at 09:41 +0100, Thomas Huth wrote: > > The files in include/standard-headers are created automatically by the > scripts/update-linux-headers.sh script, so I was a little bit surprised that > you don't provide an update to that script first ... if you copy new headers > there

Re: [PATCH v3] migration: Remove res_compatible parameter

2023-01-31 Thread Vladimir Sementsov-Ogievskiy
On 1/30/23 11:06, Juan Quintela wrote: It was only used for RAM, and in that case, it means that this amount of data was sent for memory. Just delete the field in all callers. Could you describe, why it's safe to change the behavior for RAM? Also, I think it would be a lot better to split

Re: [PATCH v2 5/8] hw/i386/acpi: Drop duplicate _UID entry for CXL root bridge

2023-01-31 Thread Jonathan Cameron via
On Fri, 27 Jan 2023 21:38:20 -0500 "Michael S. Tsirkin" wrote: > On Thu, Jan 12, 2023 at 10:26:41AM +, Jonathan Cameron wrote: > > Noticed as this prevents iASL disasembling the DSDT table. > > > > Reviewed-by: Ira Weiny > > Signed-off-by: Jonathan Cameron > > This needed but it looks

[PATCH] target/i386: fix ADOX followed by ADCX

2023-01-31 Thread Paolo Bonzini
When ADCX is followed by ADOX or vice versa, the second instruction's carry comes from EFLAGS. This is handled by this bit of gen_ADCOX: tcg_gen_extract_tl(carry_in, cpu_cc_src, ctz32(cc_op == CC_OP_ADCX ? CC_C : CC_O), 1); Unfortunately, in this case cc_op has been

Re: [PATCH v6 32/36] target/s390x: Use tcg_gen_atomic_cmpxchg_i128 for CDSG

2023-01-31 Thread David Hildenbrand
On 30.01.23 22:48, Richard Henderson wrote: Signed-off-by: Richard Henderson --- Cc: David Hildenbrand Cc: Ilya Leoshkevich --- Acked-by: David Hildenbrand -- Thanks, David / dhildenb

Re: [PATCH] acpi: Set maximum size to 64k for "etc/acpi/rsdp" blob

2023-01-31 Thread Feng Sun
Michael S. Tsirkin 于2023年1月30日周一 23:07写道: > > On Mon, Jan 30, 2023 at 10:47:25PM +0800, Feng Sun wrote: > > Igor Mammedov 于2023年1月24日周二 18:30写道: > > > > > > On Tue, 17 Jan 2023 19:15:21 +0800 > > > Sun Feng wrote: > > > > > > > Migrate from aarch64 host with PAGE_SIZE 64k to 4k failed with > >

[PATCH v3 5/9] igb: check oversized packets for VMDq

2023-01-31 Thread Sriram Yagnaraman
Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 48 +++ 1 file changed, 40 insertions(+), 8 deletions(-) diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c index 4a1b98bf0e..2f6f30341f 100644 --- a/hw/net/igb_core.c +++ b/hw/net/igb_core.c @@

[PATCH v3 4/9] igb: implement VFRE and VFTE registers

2023-01-31 Thread Sriram Yagnaraman
Also add checks for RXDCTL/TXDCTL queue enable bits Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 30 +- hw/net/igb_core.h | 1 + hw/net/igb_regs.h | 3 +++ 3 files changed, 29 insertions(+), 5 deletions(-) diff --git a/hw/net/igb_core.c

[RFC PATCH] build: deprecate --enable-gprof builds and remove from CI

2023-01-31 Thread Alex Bennée
As gprof relies on instrumentation you rarely get useful data compared to a real optimised build. Lets deprecate the build option and simplify the CI configuration as a result. Signed-off-by: Alex Bennée Cc: Thomas Huth --- docs/about/deprecated.rst | 14 ++ meson.build

[PATCH v3 0/9] igb: merge changes from <20221229190817.25500-1-sriram.yagnara...@est.tech>

2023-01-31 Thread Sriram Yagnaraman
Based-on: <20230130140809.78262-1-akihiko.od...@daynix.com> ([PATCH v5 0/9] Introduce igb) Rebased on latest changes from Akihiko, and merged changes from my original patchset: https://lists.gnu.org/archive/html/qemu-devel/2022-12/msg04670.html Changes since v2: - Fixed more comments from Akhiko

[PATCH v3 8/9] igb: respect VT_CTL ignore MAC field

2023-01-31 Thread Sriram Yagnaraman
Also trace out a warning if replication mode is disabled, since we only support replication mode enabled. Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 9 + hw/net/trace-events | 2 ++ 2 files changed, 11 insertions(+) diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c

[PATCH v3 6/9] igb: respect E1000_VMOLR_RSSE

2023-01-31 Thread Sriram Yagnaraman
RSS for VFs is only enabled if VMOLR[n].RSSE is set. Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c index 2f6f30341f..31a325d374 100644 --- a/hw/net/igb_core.c +++

[PATCH v3 1/9] MAINTAINERS: Add Sriram Yagnaraman as a igb reviewer

2023-01-31 Thread Sriram Yagnaraman
I would like to review and be informed on changes to igb device Signed-off-by: Sriram Yagnaraman --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+) diff --git a/MAINTAINERS b/MAINTAINERS index ece23b2b15..7d0e84ce37 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -2224,6 +2224,7 @@ F:

[PATCH v3 7/9] igb: implement VF Tx and Rx stats

2023-01-31 Thread Sriram Yagnaraman
Please note that loopback counters for VM to VM traffic is not implemented yet: VFGOTLBC, VFGPTLBC, VFGORLBC and VFGPRLBC. Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 26 ++ 1 file changed, 22 insertions(+), 4 deletions(-) diff --git a/hw/net/igb_core.c

[PATCH v3 3/9] igb: add ICR_RXDW

2023-01-31 Thread Sriram Yagnaraman
IGB uses RXDW ICR bit to indicate that rx descriptor has been written back. This is the same as RXT0 bit in older HW. Signed-off-by: Sriram Yagnaraman --- hw/net/e1000x_regs.h | 4 hw/net/igb_core.c| 46 +--- 2 files changed, 22 insertions(+),

[PATCH v3 2/9] igb: handle PF/VF reset properly

2023-01-31 Thread Sriram Yagnaraman
Use PFRSTD to reset RSTI bit for VFs, and raise VFLRE interrupt when VF is reset. Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 33 + hw/net/igb_regs.h | 3 +++ hw/net/trace-events | 2 ++ 3 files changed, 26 insertions(+), 12 deletions(-) diff

[PATCH v3 9/9] igb: respect VMVIR and VMOLR for VLAN

2023-01-31 Thread Sriram Yagnaraman
Add support for stripping/inserting VLAN for VFs. Signed-off-by: Sriram Yagnaraman --- hw/net/igb_core.c | 51 ++- 1 file changed, 42 insertions(+), 9 deletions(-) diff --git a/hw/net/igb_core.c b/hw/net/igb_core.c index 8115be2d76..a697fcf56a 100644

Re: [PATCH] vhost-user-gpio: Configure vhost_dev when connecting

2023-01-31 Thread Alex Bennée
Akihiko Odaki writes: > vhost_dev_cleanup(), called from vu_gpio_disconnect(), clears vhost_dev > so vhost-user-gpio must set the members of vhost_dev each time > connecting. > > do_vhost_user_cleanup() should also acquire the pointer to vqs directly > from VHostUserGPIO instead of referring

RE: [PATCH v2 00/13] Introduce igb

2023-01-31 Thread Sriram Yagnaraman
> -Original Message- > From: Akihiko Odaki > Sent: Monday, 30 January 2023 15:39 > To: Sriram Yagnaraman ; Jason Wang > > Cc: Dmitry Fleytman ; Michael S. Tsirkin > ; Marcel Apfelbaum ; > Alex Bennée ; Philippe Mathieu-Daudé > ; Thomas Huth ; Wainer dos Santos > Moschetta ; Beraldo

Re: [PATCH v4 3/3] hw/riscv: change riscv_compute_fdt_addr() semantics

2023-01-31 Thread Daniel Henrique Barboza
On 1/30/23 22:00, Bin Meng wrote: On Tue, Jan 31, 2023 at 1:16 AM Daniel Henrique Barboza wrote: On 1/29/23 02:45, Bin Meng wrote: On Thu, Jan 26, 2023 at 9:54 PM Daniel Henrique Barboza wrote: As it is now, riscv_compute_fdt_addr() is receiving a dram_base, a mem_size (which is

Re: [PATCH v2] Fix exec migration on Windows (w32+w64).

2023-01-31 Thread Marc-André Lureau
Hi On Tue, Jan 17, 2023 at 9:07 PM John Berberian, Jr wrote: > > Apologies for the late response, I was traveling most of yesterday. > > On 1/16/23 4:22 AM, Daniel P. Berrangé wrote: > > When we introduce a new QAPI format for migration args though, I've > > suggested we drop support for passing

Re: [PATCH v2 2/5] parallels: Split image leak handling to separate check and fix helpers

2023-01-31 Thread Denis V. Lunev
On 1/12/23 16:01, Alexander Ivanov wrote: We need to fix leak after deduplication in the next patch. Move leak fixing to a separate helper parallels_fix_leak() and add parallels_get_leak_size() helper wich used in parallels_fix_leak() and parallels_check_leak(). Signed-off-by: Alexander Ivanov

Re: [PATCH v2 0/2] audio: make audiodev introspectable by management apps

2023-01-31 Thread Thomas Huth
On 23/01/2023 09.39, Thomas Huth wrote: Here's a respin from Daniel's audiodev introspection patches from 2021. I've rebased them to the current master branch and addressed the review comments from v1. The Audiodev QAPI type is not introspectable via query-qmp-schema as nothing in QMP uses it.

[PATCH v9 05/12] parallels: Use generic infrastructure for BAT writing in parallels_co_check()

2023-01-31 Thread Alexander Ivanov
BAT is written in the context of conventional operations over the image inside bdrv_co_flush() when it calls parallels_co_flush_to_os() callback. Thus we should not modify BAT array directly, but call parallels_set_bat_entry() helper and bdrv_co_flush() further on. After that there is no need to

Re: [PATCH v2 02/20] hw/pci-host/q35: Inline sysbus_add_io()

2023-01-31 Thread Thomas Huth
On 31/01/2023 12.53, Bernhard Beschow wrote: sysbus_add_io() just wraps memory_region_add_subregion() while also obscuring where the memory is attached. So use memory_region_add_subregion() directly and attach it to the existing memory region s->mch.address_space_io which is set as an alias to

Re: [PATCH v5 7/9] igb: Introduce qtest for igb device

2023-01-31 Thread Thomas Huth
On 31/01/2023 15.34, Akihiko Odaki wrote: On 2023/01/31 22:04, Thomas Huth wrote: On 30/01/2023 15.08, Akihiko Odaki wrote: This change is derived from qtest for e1000e device. Signed-off-by: Akihiko Odaki ---   MAINTAINERS |   2 +  

Re: Display update issue on M1 Macs

2023-01-31 Thread BALATON Zoltan
On Tue, 31 Jan 2023, Akihiko Odaki wrote: On 2023/01/31 8:58, BALATON Zoltan wrote: On Sat, 28 Jan 2023, Akihiko Odaki wrote: On 2023/01/23 8:28, BALATON Zoltan wrote: On Thu, 19 Jan 2023, Akihiko Odaki wrote: On 2023/01/15 3:11, BALATON Zoltan wrote: On Sat, 14 Jan 2023, Akihiko Odaki

Re: [PATCH 3/3] migration: save/delete migration thread info

2023-01-31 Thread Jiang Jiacheng via
On 2023/1/30 22:04, Juan Quintela wrote: > Jiang Jiacheng wrote: >> On 2023/1/30 12:28, Juan Quintela wrote: >>> Jiang Jiacheng wrote: To support query migration thread infomation, save and delete thread information at thread creation and end. Signed-off-by: Jiang Jiacheng

[PATCH v9 01/12] parallels: Out of image offset in BAT leads to image inflation

2023-01-31 Thread Alexander Ivanov
data_end field in BDRVParallelsState is set to the biggest offset present in BAT. If this offset is outside of the image, any further write will create the cluster at this offset and/or the image will be truncated to this offset on close. This is definitely not correct. Raise an error in

[PATCH v9 04/12] parallels: create parallels_set_bat_entry_helper() to assign BAT value

2023-01-31 Thread Alexander Ivanov
This helper will be reused in next patches during parallels_co_check rework to simplify its code. Signed-off-by: Alexander Ivanov Reviewed-by: Denis V. Lunev Reviewed-by: Vladimir Sementsov-Ogievskiy --- block/parallels.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff

Re: [RFC v4 3/3] hw/cxl: Multi-Region CXL Type-3 Devices (Volatile and Persistent)

2023-01-31 Thread Jonathan Cameron via
On Mon, 28 Nov 2022 10:01:57 -0500 Gregory Price wrote: > From: Gregory Price > > This commit enables each CXL Type-3 device to contain one volatile > memory region and one persistent region. > > Two new properties have been added to cxl-type3 device initialization: > [volatile-memdev]

[PATCH v2 17/20] hw/i386/ich9: Remove redundant GSI_NUM_PINS

2023-01-31 Thread Bernhard Beschow
Most code uses IOAPIC_NUM_PINS. The only place where GSI_NUM_PINS defines the size of an array is ICH9LPCState::gsi which needs to match IOAPIC_NUM_PINS. Remove GSI_NUM_PINS for consistency. Signed-off-by: Bernhard Beschow --- include/hw/i386/ich9.h | 2 +- include/hw/i386/x86.h | 1 -

[PATCH v2 06/20] hw/i386/pc_{q35, piix}: Minimize usage of get_system_memory()

2023-01-31 Thread Bernhard Beschow
Signed-off-by: Bernhard Beschow --- hw/i386/pc_piix.c | 2 +- hw/i386/pc_q35.c | 7 --- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index ee9d9a4175..5bde4533cc 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -241,7 +241,7

[PATCH v2 19/20] hw/i386/ich9: Clean up includes

2023-01-31 Thread Bernhard Beschow
Signed-off-by: Bernhard Beschow --- include/hw/i386/ich9.h | 8 +--- hw/i386/acpi-build.c | 1 + hw/isa/lpc_ich9.c | 2 +- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/include/hw/i386/ich9.h b/include/hw/i386/ich9.h index d29090a9b7..3125863049 100644 ---

Re: [PATCH v4 00/16] hw/9pfs: Add 9pfs support for Windows

2023-01-31 Thread Marc-André Lureau
Hi On Tue, Jan 31, 2023 at 6:39 PM Daniel P. Berrangé wrote: > On Tue, Jan 31, 2023 at 06:31:39PM +0400, Marc-André Lureau wrote: > > Hi > > > > On Mon, Jan 30, 2023 at 1:52 PM Bin Meng wrote: > > > > > At present there is no Windows support for 9p file system. > > > This series adds initial

Re: [RFC v6 2/4] virtio-blk: add zoned storage emulation for zoned devices

2023-01-31 Thread Stefan Hajnoczi
On Mon, Jan 30, 2023 at 06:30:16PM +, Daniel P. Berrangé wrote: > On Mon, Jan 30, 2023 at 10:17:48AM -0500, Stefan Hajnoczi wrote: > > On Mon, 30 Jan 2023 at 07:33, Daniel P. Berrangé > > wrote: > > > > > > On Sun, Jan 29, 2023 at 06:39:49PM +0800, Sam Li wrote: > > > > This patch extends

Re: [PATCH 0/3] VIA PM Improvements

2023-01-31 Thread BALATON Zoltan
On Sun, 29 Jan 2023, Bernhard Beschow wrote: This series is part of my work to bring the VIA south bridges to the PC machine [1]. First it resolves a fixme in the device model by using the dedicated ACPI interrupt register for SCI routing. It then enables the device model to switch to ACPI.

[PULL 14/27] qemu/bswap: Use compiler __builtin_bswap() on NetBSD

2023-01-31 Thread Thomas Huth
From: Philippe Mathieu-Daudé Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which supports __builtin_bswap(). Remove the NetBSD specific ifdef'ry. This reverts commit

[PULL 20/27] tests/qtest/vnc-display-test: Disable on Darwin

2023-01-31 Thread Thomas Huth
From: Philippe Mathieu-Daudé This test is failing in gtk-vnc on Darwin: $ make check-qtest-aarch64 ... 19/20 qemu:qtest+qtest-aarch64 / qtest-aarch64/vnc-display-test ERROR **: 10:42:35.488: vnc-error: Unsupported auth type 17973672 While QEMU picks the sigaltstack coroutine backend,

[PULL 02/27] tests/qtest/qom-test: Stop spamming the test log

2023-01-31 Thread Thomas Huth
We are still facing the issues that our test logs in the gitlab CI are too big (and thus cut off). A huge part is still caused by the qom-test that prints the path and name of each object it looks at by default. That's too much. Let's be silent by default, and only print the object path+name when

[PULL 26/27] tests/qtest/display-vga-test: Add proper checks if a device is available

2023-01-31 Thread Thomas Huth
display-vga-test currently tries to guess the usable VGA devices according to the target architecture that is used for the test. This of course does not work if QEMU has been built with the "--without-default-devices" configure switch. To fix this, use the qtest_has_device() function for the

[PULL 05/27] configs/targets/nios2-softmmu: Add TARGET_NEED_FDT=y to the nios2 config

2023-01-31 Thread Thomas Huth
qemu-system-nios2 uses the functions from libfdt in hw/nios2/boot.c, so this target has to be marked with TARGET_NEED_FDT=y in its config file. Message-Id: <20230119125745.2028814-1-th...@redhat.com> Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Thomas Huth ---

[PULL 16/27] docs/about/deprecated: Mark HAXM in QEMU as deprecated

2023-01-31 Thread Thomas Huth
The HAXM project has been retired (see https://github.com/intel/haxm#status), so we should mark the code in QEMU as deprecated (and finally remove it unless somebody else picks the project up again - which is quite unlikely since there are now whpx and hvf on these operating systems, too).

[PATCH v9 2/5] riscv: Change type of valid_vm_1_10_[32|64] to bool

2023-01-31 Thread Alexandre Ghiti
This array is actually used as a boolean so swap its current char type to a boolean and at the same time, change the type of validate_vm to bool since it returns valid_vm_1_10_[32|64]. Suggested-by: Andrew Jones Signed-off-by: Alexandre Ghiti Reviewed-by: Andrew Jones Reviewed-by: Alistair

[PATCH v9 4/5] riscv: Introduce satp mode hw capabilities

2023-01-31 Thread Alexandre Ghiti
Currently, the max satp mode is set with the only constraint that it must be implemented in QEMU, i.e. set in valid_vm_1_10_[32|64]. But we actually need to add another level of constraint: what the hw is actually capable of, because currently, a linux booting on a sifive-u54 boots in sv57 mode

[PATCH v9 3/5] riscv: Allow user to set the satp mode

2023-01-31 Thread Alexandre Ghiti
RISC-V specifies multiple sizes for addressable memory and Linux probes for the machine's support at startup via the satp CSR register (done in csr.c:validate_vm). As per the specification, sv64 must support sv57, which in turn must support sv48...etc. So we can restrict machine support by simply

Re: [PULL 5/5] migration: simplify migration_iteration_run()

2023-01-31 Thread Vladimir Sementsov-Ogievskiy
On 30.01.23 11:03, Juan Quintela wrote: Signed-off-by: Juan Quintela Reviewed-by: Dr. David Alan Gilbert --- migration/migration.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/migration/migration.c b/migration/migration.c index

Re: [PATCH 2/2] linux-user: Allow sendmsg() without IOV

2023-01-31 Thread Laurent Vivier
Le 12/12/2022 à 18:34, Helge Deller a écrit : Applications do call sendmsg() without any IOV, e.g.: sendmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=NULL, msg_iovlen=0, msg_control=[{cmsg_len=36, cmsg_level=SOL_ALG, cmsg_type=0x2}], msg_controllen=40, msg_flags=0},

Re: [PATCH v8 3/5] riscv: Allow user to set the satp mode

2023-01-31 Thread Alexandre Ghiti
Hi Bin, On Mon, Jan 30, 2023 at 5:22 AM Bin Meng wrote: > > On Thu, Jan 26, 2023 at 12:23 AM Alexandre Ghiti > wrote: > > > > RISC-V specifies multiple sizes for addressable memory and Linux probes for > > the machine's support at startup via the satp CSR register (done in > >

[PATCH v9 5/5] riscv: Correctly set the device-tree entry 'mmu-type'

2023-01-31 Thread Alexandre Ghiti
The 'mmu-type' should reflect what the hardware is capable of so use the new satp_mode field in RISCVCPUConfig to do that. Signed-off-by: Alexandre Ghiti Reviewed-by: Andrew Jones Reviewed-by: Alistair Francis Reviewed-by: Bin Meng --- hw/riscv/virt.c | 19 ++- 1 file

Re: [PATCH v2 08/20] hw/i386/ich9: Rename Q35_MASK to ICH9_MASK

2023-01-31 Thread Thomas Huth
On 31/01/2023 12.53, Bernhard Beschow wrote: The Q35_MASK macro is already defined by TYPE_Q35_HOST_DEVICE, so let TYPE_ICH9_LPC_DEVICE have its own one to prevent potential name clash. Ouch, good catch! Signed-off-by: Bernhard Beschow --- include/hw/i386/ich9.h | 10 +- 1 file

Re: [PATCH v8 3/5] riscv: Allow user to set the satp mode

2023-01-31 Thread Alexandre Ghiti
On Wed, Jan 25, 2023 at 5:52 PM Andrew Jones wrote: > > On Wed, Jan 25, 2023 at 05:20:08PM +0100, Alexandre Ghiti wrote: > > RISC-V specifies multiple sizes for addressable memory and Linux probes for > > the machine's support at startup via the satp CSR register (done in > > csr.c:validate_vm).

[PULL 03/27] tests/qtest/bios-tables-test: Make the test less verbose by default

2023-01-31 Thread Thomas Huth
We are facing the issues that our test logs in the gitlab CI are too big (and thus cut off). The bios-tables-test is one of the few qtests that prints many lines of output by default when running with V=1, so it contributes to this problem. Almost all other qtests are silent with V=1 and only

[PULL 00/27] qtest and misc patches

2023-01-31 Thread Thomas Huth
Hi Peter! The following changes since commit 13356edb87506c148b163b8c7eb0695647d00c2a: Merge tag 'block-pull-request' of https://gitlab.com/stefanha/qemu into staging (2023-01-24 09:45:33 +) are available in the Git repository at: https://gitlab.com/thuth/qemu.git

[PULL 08/27] tests/docker/dockerfiles: Add libfdt to the i386 and to the riscv64 container

2023-01-31 Thread Thomas Huth
No need to recompile the dtc submodule here again and again, we can use the pre-built binary from the distribution instead. (And this will also help in case we finally get rid of the dtc submodule in QEMU one day) Message-Id: <20230124143824.844040-1-th...@redhat.com> Reviewed-by: Philippe

[PULL 10/27] qemu/bswap: Replace bswapXXs() by compiler __builtin_bswap()

2023-01-31 Thread Thomas Huth
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <2023063147.71761-3-phi...@linaro.org> Signed-off-by: Thomas Huth --- include/qemu/bswap.h | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git

[PULL 17/27] tests/tcg: Do not build/run TCG tests if TCG is disabled

2023-01-31 Thread Thomas Huth
From: Fabiano Rosas The tests under tests/tcg depend on the TCG accelerator. Do not build them if --disable-tcg was given in the configure line. Signed-off-by: Fabiano Rosas Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id:

Re: [RFC PATCH] build: deprecate --enable-gprof builds and remove from CI

2023-01-31 Thread Philippe Mathieu-Daudé
On 31/1/23 10:42, Alex Bennée wrote: As gprof relies on instrumentation you rarely get useful data compared to a real optimised build. Lets deprecate the build option and simplify the CI configuration as a result. Signed-off-by: Alex Bennée Cc: Thomas Huth --- docs/about/deprecated.rst |

Re: [PATCH v2] linux-user: Improve strace output of pread64() and pwrite64()

2023-01-31 Thread Laurent Vivier
Le 30/01/2023 à 23:11, Helge Deller a écrit : On 1/30/23 10:26, Laurent Vivier wrote: Le 27/01/2023 à 21:58, Helge Deller a écrit : Make the strace look nicer for those two syscalls. Signed-off-by: Helge Deller --- v2: Use regpairs_aligned() and target_offset64(), noticed by Laurent Vivier

[PATCH v2 14/20] hw/i386/pc_q35: Allow for setting properties before realizing TYPE_ICH9_LPC_DEVICE

2023-01-31 Thread Bernhard Beschow
This is a preparation to make the next patch cleaner. Signed-off-by: Bernhard Beschow --- hw/i386/pc_q35.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index fab8e57913..27a1fe351d 100644 --- a/hw/i386/pc_q35.c +++

[PATCH v2 00/20] PC and ICH9 cleanups

2023-01-31 Thread Bernhard Beschow
This series contains some cleanups I came across when working on the PC machines. It consists of reducing the usage of global variables and eliminating some redundancies. The ICH9 cleanups include further QOM'ification, making it more self-contained, and reducing its x86/pc dependencies. Testing

[PATCH v2 18/20] hw: Move ioapic*.h to intc/

2023-01-31 Thread Bernhard Beschow
The ioapic sources reside in hw/intc already. Move the headers there as well. Signed-off-by: Bernhard Beschow --- MAINTAINERS | 1 + include/hw/i386/x86.h | 2 +- include/hw/{i386 => intc}/ioapic.h | 6 +++--- include/hw/{i386 =>

[PATCH v2 16/20] hw/isa/lpc_ich9: Remove redundant ich9_lpc_reset() invocation

2023-01-31 Thread Bernhard Beschow
ich9_lpc_reset() is the dc->reset callback which is called automatically. No need to call it explicitly during k->realize. Signed-off-by: Bernhard Beschow --- hw/isa/lpc_ich9.c | 4 1 file changed, 4 deletions(-) diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c index

[PATCH v2 10/20] hw/isa/lpc_ich9: Eliminate ICH9LPCState::isa_bus

2023-01-31 Thread Bernhard Beschow
By using qdev_get_child_bus() we can eliminate ICH9LPCState::isa_bus and spare the ich9_lpc variable in pc_q35, too. Signed-off-by: Bernhard Beschow --- include/hw/i386/ich9.h | 3 --- hw/i386/pc_q35.c | 4 +--- hw/isa/lpc_ich9.c | 5 + 3 files changed, 2 insertions(+), 10

[PATCH v2 04/20] hw/i386/pc_q35: Resolve redundant q35_host variable

2023-01-31 Thread Bernhard Beschow
The variable is redundant to "phb" and is never used by its real type. Signed-off-by: Bernhard Beschow --- hw/i386/pc_q35.c | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/hw/i386/pc_q35.c b/hw/i386/pc_q35.c index 351ef25f69..88324af91f 100644

[PATCH v2 08/20] hw/i386/ich9: Rename Q35_MASK to ICH9_MASK

2023-01-31 Thread Bernhard Beschow
The Q35_MASK macro is already defined by TYPE_Q35_HOST_DEVICE, so let TYPE_ICH9_LPC_DEVICE have its own one to prevent potential name clash. Signed-off-by: Bernhard Beschow --- include/hw/i386/ich9.h | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[PATCH v2 02/20] hw/pci-host/q35: Inline sysbus_add_io()

2023-01-31 Thread Bernhard Beschow
sysbus_add_io() just wraps memory_region_add_subregion() while also obscuring where the memory is attached. So use memory_region_add_subregion() directly and attach it to the existing memory region s->mch.address_space_io which is set as an alias to get_system_io() by the q35 machine.

[PATCH v2 07/20] hw/i386/pc: Initialize ram_memory variable directly

2023-01-31 Thread Bernhard Beschow
Going through pc_memory_init() seems quite complicated for a simple assignment. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé --- include/hw/i386/pc.h | 1 - hw/i386/pc.c | 2 -- hw/i386/pc_piix.c| 4 ++-- hw/i386/pc_q35.c | 5 ++--- 4 files changed, 4

Re: [PATCH v2] linux-user: Show 4th argument of rt_sigprocmask() in strace

2023-01-31 Thread Laurent Vivier
Le 30/01/2023 à 23:20, Helge Deller a écrit : Add output for the missing 4th parameter (size_t sigsetsize). Signed-off-by: Helge Deller --- v2: Use %u instead of %d, as suggested by Laurent Vivier diff --git a/linux-user/strace.c b/linux-user/strace.c index 3157e4b420..f0f6ada8cb 100644 ---

[PATCH v2 05/20] hw/i386/pc_{q35, piix}: Reuse MachineClass::desc as SMB product name

2023-01-31 Thread Bernhard Beschow
No need to repeat the descriptions. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé --- hw/i386/pc_piix.c | 2 +- hw/i386/pc_q35.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index df64dd8dcc..ee9d9a4175

Re: [PATCH 01/18] vfio/migration: Add VFIO migration pre-copy support

2023-01-31 Thread Avihai Horon
On 27/01/2023 1:52, Alex Williamson wrote: External email: Use caution opening links or attachments On Thu, 26 Jan 2023 20:49:31 +0200 Avihai Horon wrote: Pre-copy support allows the VFIO device data to be transferred while the VM is running. This helps to accommodate VFIO devices that

[PATCH v9 1/5] riscv: Pass Object to register_cpu_props instead of DeviceState

2023-01-31 Thread Alexandre Ghiti
One can extract the DeviceState pointer from the Object pointer, so pass the Object for future commits to access other fields of Object. No functional changes intended. Signed-off-by: Alexandre Ghiti Reviewed-by: Alistair Francis Reviewed-by: Frank Chang Reviewed-by: Andrew Jones

Re: [PATCH 00/17] audio: improve callback interface for audio frontends

2023-01-31 Thread Marc-André Lureau
Hi On Sun, Jan 15, 2023 at 5:10 PM Volker Rümelin wrote: > > Based-on: <3b1404eb-a7c5-f64c-3e47-1397c54c4...@t-online.de> > ([PATCH 00/11] audio: more improvements) > Something didn't work with patchew (https://patchew.org/QEMU/61bd351f-0683-7f58-b746-66c9578a7...@t-online.de/). If you could

Re: [PATCH v9 03/12] parallels: Fix image_end_offset and data_end after out-of-image check

2023-01-31 Thread Denis V. Lunev
On 1/31/23 11:27, Alexander Ivanov wrote: Set data_end to the end of the last cluster inside the image. In such a way we can be sure that corrupted offsets in the BAT can't affect on the image size. If there are no allocated clusters set image_end_offset by data_end. Signed-off-by: Alexander

[PATCH v9 11/12] parallels: Replace qemu_co_mutex_lock by WITH_QEMU_LOCK_GUARD

2023-01-31 Thread Alexander Ivanov
Replace the way we use mutex in parallels_co_check() for simplier and less error prone code. Signed-off-by: Alexander Ivanov Reviewed-by: Denis V. Lunev --- block/parallels.c | 33 ++--- 1 file changed, 14 insertions(+), 19 deletions(-) diff --git

[PATCH v9 07/12] parallels: Move check of cluster outside image to a separate function

2023-01-31 Thread Alexander Ivanov
We will add more and more checks so we need a better code structure in parallels_co_check. Let each check performs in a separate loop in a separate helper. Signed-off-by: Alexander Ivanov --- block/parallels.c | 81 ++- 1 file changed, 52

[PATCH v9 03/12] parallels: Fix image_end_offset and data_end after out-of-image check

2023-01-31 Thread Alexander Ivanov
Set data_end to the end of the last cluster inside the image. In such a way we can be sure that corrupted offsets in the BAT can't affect on the image size. If there are no allocated clusters set image_end_offset by data_end. Signed-off-by: Alexander Ivanov --- block/parallels.c | 8 +++- 1

[PATCH v9 08/12] parallels: Fix statistics calculation

2023-01-31 Thread Alexander Ivanov
Exclude out-of-image clusters from allocated and fragmented clusters calculation. Signed-off-by: Alexander Ivanov --- block/parallels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/parallels.c b/block/parallels.c index f9acee1fa8..7382c01191 100644 ---

[PATCH v9 00/11] parallels: Refactor the code of images checks and fix a bug

2023-01-31 Thread Alexander Ivanov
Fix image inflation when offset in BAT is out of image. Replace whole BAT syncing by flushing only dirty blocks. Move all the checks outside the main check function in separate functions Use WITH_QEMU_LOCK_GUARD for simplier code. Fix incorrect condition in out-of-image check. v9: 3: Add

[PATCH v9 12/12] parallels: Incorrect condition in out-of-image check

2023-01-31 Thread Alexander Ivanov
All the offsets in the BAT must be lower than the file size. Fix the check condition for correct check. Signed-off-by: Alexander Ivanov --- block/parallels.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/block/parallels.c b/block/parallels.c index e4faa14add..e469fe3f78

[PATCH v9 10/12] parallels: Move statistic collection to a separate function

2023-01-31 Thread Alexander Ivanov
We will add more and more checks so we need a better code structure in parallels_co_check. Let each check performs in a separate loop in a separate helper. Signed-off-by: Alexander Ivanov Reviewed-by: Denis V. Lunev Reviewed-by: Vladimir Sementsov-Ogievskiy --- block/parallels.c | 52

[PATCH v9 09/12] parallels: Move check of leaks to a separate function

2023-01-31 Thread Alexander Ivanov
We will add more and more checks so we need a better code structure in parallels_co_check. Let each check performs in a separate loop in a separate helper. Signed-off-by: Alexander Ivanov --- block/parallels.c | 85 --- 1 file changed, 50

[PATCH v9 06/12] parallels: Move check of unclean image to a separate function

2023-01-31 Thread Alexander Ivanov
We will add more and more checks so we need a better code structure in parallels_co_check. Let each check performs in a separate loop in a separate helper. Signed-off-by: Alexander Ivanov Reviewed-by: Denis V. Lunev Reviewed-by: Vladimir Sementsov-Ogievskiy --- block/parallels.c | 31

Re: [PATCH v5 6/9] tests/qtest/libqos/e1000e: Export macreg functions

2023-01-31 Thread Thomas Huth
On 30/01/2023 15.08, Akihiko Odaki wrote: They will be useful for igb testing. Signed-off-by: Akihiko Odaki --- tests/qtest/libqos/e1000e.c | 12 tests/qtest/libqos/e1000e.h | 12 2 files changed, 12 insertions(+), 12 deletions(-) Reviewed-by: Thomas Huth

[PATCH v2 20/20] hw: Move ich9.h to southbridge/

2023-01-31 Thread Bernhard Beschow
ICH9 is a south bridge which doesn't necessarily depend on x86, so move it into the southbridge folder, analoguous to PIIX. Signed-off-by: Bernhard Beschow --- MAINTAINERS | 1 + include/hw/{i386 => southbridge}/ich9.h | 6 +++--- hw/acpi/ich9.c

[PATCH v2 12/20] hw/i2c/smbus_ich9: Move ich9_smb_set_irq() in front of ich9_smbus_realize()

2023-01-31 Thread Bernhard Beschow
This is a preparation for the next commit to make it cleaner. Signed-off-by: Bernhard Beschow --- hw/i2c/smbus_ich9.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/i2c/smbus_ich9.c b/hw/i2c/smbus_ich9.c index ee50ba1f2c..06d97ac942 100644 ---

Re: [PATCH 2/2] linux-user: Allow sendmsg() without IOV

2023-01-31 Thread Helge Deller
On 1/31/23 14:34, Helge Deller wrote: On 1/31/23 13:28, Laurent Vivier wrote: Le 12/12/2022 à 18:34, Helge Deller a écrit : Applications do call sendmsg() without any IOV, e.g.:   sendmsg(4, {msg_name=NULL, msg_namelen=0, msg_iov=NULL, msg_iovlen=0, msg_control=[{cmsg_len=36,

[PULL 12/27] qemu/bswap: Use compiler __builtin_bswap() on Haiku

2023-01-31 Thread Thomas Huth
From: Philippe Mathieu-Daudé Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which supports __builtin_bswap(). Remove the Haiku specific ifdef'ry. This reverts commit

[PULL 06/27] travis.yml: Use the libfdt from the distro instead of the submodule

2023-01-31 Thread Thomas Huth
No need to compile-test third party submodules over and over again if we can simply use the pre-build library from the distribution instead. By also adding --enable-fdt=system to the configure options, we can also avoid to check out the "dtc" submodule here. Message-Id:

[PULL 24/27] qapi, audio: Make introspection reflect build configuration more closely

2023-01-31 Thread Thomas Huth
From: Daniel P. Berrangé Currently the -audiodev accepts any audiodev type regardless of what is built in to QEMU. An error only occurs later at runtime when a sound device tries to use the audio backend. With this change QEMU will immediately reject -audiodev args that are not compiled into

[PULL 11/27] qemu/bswap: Remove dependency

2023-01-31 Thread Thomas Huth
From: Philippe Mathieu-Daudé Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which supports __builtin_bswap(). Drop the dependency. Suggested-by: Richard Henderson Signed-off-by: Philippe Mathieu-Daudé

[PULL 22/27] docs/s390x/pcidevices: document pci devices on s390x

2023-01-31 Thread Thomas Huth
From: Sebastian Mitterle Add some documentation about the zpci device and how to use it with pci devices on s390x. Used source: Cornelia Huck's blog post https://people.redhat.com/~cohuck/2018/02/19/notes-on-pci-on-s390x.html Signed-off-by: Sebastian Mitterle Reviewed-by: Cédric Le Goater

[PULL 18/27] tests/qtest/vnc-display-test: Suppress build warnings on Windows

2023-01-31 Thread Thomas Huth
From: Philippe Mathieu-Daudé While this test is skipped on Windows, we still get when building: tests/qtest/vnc-display-test.c:22:20: warning: unused function 'on_vnc_error' [-Wunused-function] static inline void on_vnc_error(VncConnection* self, ^

[PULL 13/27] qemu/bswap: Use compiler __builtin_bswap() on FreeBSD

2023-01-31 Thread Thomas Huth
From: Philippe Mathieu-Daudé Since commit efc6c070aca ("configure: Add a test for the minimum compiler version") the minimum compiler version required for GCC is 4.8, which supports __builtin_bswap(). Remove the FreeBSD specific ifdef'ry. This reverts commit

[PULL 15/27] MAINTAINERS: Abort HAXM maintenance

2023-01-31 Thread Thomas Huth
From: Wenchao Wang Abort the maintenance of Guest CPU Cores (HAXM). * Clean up the maintainer list of X86 HAXM CPUs * Remove the web page URL and the mailing list * Change the status to Orphan Reviewed-by: Hang Yuan Signed-off-by: Wenchao Wang Message-Id: Signed-off-by: Thomas Huth ---

[PULL 25/27] gitlab-ci.d/buildtest: Remove ppc-softmmu from the clang-system job

2023-01-31 Thread Thomas Huth
We are also compile-testing ppc64-softmmu with clang in the "tsan-build" job, and ppc64-softmmu covers pretty much the same code as ppc-softmmu, so we should not lose much test coverage here by removing ppc-softmmu from the "clang-system" job. Message-Id:

[PULL 21/27] tests/qtest/boot-serial-test: Constify tests[] array

2023-01-31 Thread Thomas Huth
From: Philippe Mathieu-Daudé Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Richard Henderson Message-Id: <20230120082341.59913-2-phi...@linaro.org> Signed-off-by: Thomas Huth --- tests/qtest/boot-serial-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PULL 27/27] gitlab-ci.d/buildtest: Merge the --without-default-* jobs

2023-01-31 Thread Thomas Huth
Let's safe some CI minutes by merging these two jobs. We can now also drop "--disable-capstone" since the capstone submodule has been removed a while ago. We should rather test --disable-fdt now to check a compilation without the "dtc" submodule (for this we have to drop i386-softmmu from the

  1   2   3   4   >