Re: [PATCH v7 resend 0/4] add generic vDPA device support

2022-11-05 Thread Michael S. Tsirkin
On Sun, Nov 06, 2022 at 08:17:07AM +0800, Longpeng (Mike, Cloud Infrastructure Service Product Dept.) wrote: > > > 在 2022/11/6 0:43, Michael S. Tsirkin 写道: > > On Sat, Nov 05, 2022 at 04:36:25PM +0800, Longpeng(Mike) wrote: > > > From: Longpeng > > > > > > Hi guys, > > > > > > With the

[RESEND PATCH 5/6] tcg: Move TCG_TARGET_HAS_direct_jump init to tb_gen_code

2022-11-05 Thread Richard Henderson
Signed-off-by: Richard Henderson --- accel/tcg/translate-all.c | 10 -- tcg/tcg.c | 12 2 files changed, 12 insertions(+), 10 deletions(-) diff --git a/accel/tcg/translate-all.c b/accel/tcg/translate-all.c index 921944a5ab..9ee21f7f52 100644 ---

[RESEND PATCH 4/6] disas/nanomips: Tidy read for 48-bit opcodes

2022-11-05 Thread Richard Henderson
There is no point in looking for a 48-bit opcode if we've not read the second word for a 32-bit opcode. Signed-off-by: Richard Henderson --- disas/nanomips.c | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/disas/nanomips.c b/disas/nanomips.c index

[RESEND PATCH 3/6] disas/nanomips: Split out read_u16

2022-11-05 Thread Richard Henderson
Split out a helper function for reading a uint16_t with the correct endianness. Signed-off-by: Richard Henderson --- disas/nanomips.c | 48 +++- 1 file changed, 19 insertions(+), 29 deletions(-) diff --git a/disas/nanomips.c b/disas/nanomips.c index

[RESEND PATCH 1/6] disas/nanomips: Move setjmp into nanomips_dis

2022-11-05 Thread Richard Henderson
Reduce the number of local variables within the scope of the setjmp by moving it to the existing helper. The actual length returned from Disassemble is not used, because we have already determined the length while reading bytes. Fixes: nanomips.c: In function ‘print_insn_nanomips’:

[RESEND PATCH 6/6] accel/tcg: Split out setjmp_gen_code

2022-11-05 Thread Richard Henderson
Isolate the code protected by setjmp. Fixes: translate-all.c: In function ‘tb_gen_code’: translate-all.c:748:51: error: argument ‘cflags’ might be clobbered by ‘longjmp’ or ‘vfork’ [-Werror=clobbered] Signed-off-by: Richard Henderson --- accel/tcg/translate-all.c | 58

[RESEND PATCH 2/6] disas/nanomips: Merge insn{1,2,3} into words[3]

2022-11-05 Thread Richard Henderson
Since Disassemble wants the data in this format, collect it that way. This allows using a loop to print the bytes. Signed-off-by: Richard Henderson --- disas/nanomips.c | 44 +--- 1 file changed, 21 insertions(+), 23 deletions(-) diff --git

[RESEND PATCH 0/6] Two -Wclobbered fixes, plus other cleanup

2022-11-05 Thread Richard Henderson
[ Resend, since apparently only one patch made it to the list. ] Stefan reported for accel/tcg, and I reproduced on Ubuntu 22.04. r~ Richard Henderson (6): disas/nanomips: Move setjmp into nanomips_dis disas/nanomips: Merge insn{1,2,3} into words[3] disas/nanomips: Split out read_u16

Re: [PATCH v7 resend 0/4] add generic vDPA device support

2022-11-05 Thread longpeng2--- via
在 2022/11/6 0:43, Michael S. Tsirkin 写道: On Sat, Nov 05, 2022 at 04:36:25PM +0800, Longpeng(Mike) wrote: From: Longpeng Hi guys, With the generic vDPA device, QEMU won't need to touch the device types any more, such like vfio. With this kind of passthrough migration is completely MIA

[PATCH 0/6] Two -Wclobbered fixes, plus other cleanup

2022-11-05 Thread Richard Henderson
As reported by Stefan, and reproduced on Ubuntu 22.04. r~ Richard Henderson (6): disas/nanomips: Move setjmp into nanomips_dis disas/nanomips: Merge insn{1,2,3} into words[3] disas/nanomips: Split out read_u16 disas/nanomips: Tidy read for 48-bit opcodes tcg: Move

[PATCH 1/6] disas/nanomips: Move setjmp into nanomips_dis

2022-11-05 Thread Richard Henderson
Reduce the number of local variables within the scope of the setjmp by moving it to the existing helper. The actual length returned from Disassemble is not used, because we have already determined the length while reading bytes. Fixes: nanomips.c: In function ‘print_insn_nanomips’:

Re: [PATCH for-7.2] accel/tcg: Suppress compiler warning with flag -Wclobbered

2022-11-05 Thread Richard Henderson
On 11/5/22 22:44, Stefan Weil wrote: At least some versions of gcc show a warning when compiler flag -Wclobbered is used (tested with gcc on Debian bookworm i386 and with cross gcc for Windows on Debian bullseye). Signed-off-by: Stefan Weil --- accel/tcg/translate-all.c | 3 +++ 1 file

Re: [PATCH RFC 0/3] virtio fix up started checks

2022-11-05 Thread Michael S. Tsirkin
On Sat, Nov 05, 2022 at 02:16:29PM -0400, Michael S. Tsirkin wrote: > This is an attempt to fix up device started checks. > Unfortunately this causes failures in CI > and I could not figure it out. > > The simplest way to test is to set QEMU_CI to 2 > on gitlab, then push there. > >

Re: [PATCH trivial for 7.2 1/2] hw/usb/hcd-xhci.c: spelling: tranfer

2022-11-05 Thread Stefan Weil via
Am 05.11.22 um 22:24 schrieb Michael Tokarev: 05.11.2022 15:23, Stefan Weil via wrote: .. All typos from this series were also found by codespell. See https://qemu.weilnetz.de/test/typos7 for many more. That list was produced with `make check-spelling` from my previous patch). Yeah,

Re: [PATCH trivial for 7.2] hw/ssi/sifive_spi.c: spelling: reigster

2022-11-05 Thread Alistair Francis
On Sat, Nov 5, 2022 at 9:54 PM Michael Tokarev wrote: > > Fixes: 0694dabe9763847f3010b54ab3ec7d367d2f0ff0 > Signed-off-by: Michael Tokarev Reviewed-by: Alistair Francis Alistair > --- > hw/ssi/sifive_spi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git

Re: [PATCH trivial for 7.2 1/2] hw/usb/hcd-xhci.c: spelling: tranfer

2022-11-05 Thread Michael Tokarev
05.11.2022 15:23, Stefan Weil via wrote: .. All typos from this series were also found by codespell. See https://qemu.weilnetz.de/test/typos7 for many more. That list was produced with `make check-spelling` from my previous patch). Yeah, codespell is a good thing. But qemu has just TOO MANY

Re: [PULL v3 0/7] loongarch-to-apply queue

2022-11-05 Thread Richard Henderson
) are available in the Git repository at: https://gitlab.com/gaosong/qemu.git tags/pull-loongarch-20221105 for you to fetch changes up to 6a284614d485f36af6467ce0925df0042aca7a1f: target/loongarch: Fix raise_mmu_exception() set wrong exception_index (2022-11-05 10:52:19 +0800

[PULL 4/7] target/m68k: Rename qregs.def -> qregs.h.inc

2022-11-05 Thread Laurent Vivier
From: Philippe Mathieu-Daudé We use the .h.inc extension to include C headers. To be consistent with the rest of the codebase, rename the C headers using the .def extension. IDE/tools using our .editorconfig / .gitattributes will leverage this consistency. Signed-off-by: Philippe Mathieu-Daudé

[PULL 7/7] tests/unit: simpler variable sequence for test-io-channel

2022-11-05 Thread Laurent Vivier
From: Alex Bennée This avoids some compilers complaining about a potentially un-initialised [src|dst]argv. In retrospect using GString was overkill for what we are constructing. Signed-off-by: Alex Bennée Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Laurent Vivier Message-Id:

[PULL 2/7] Fix some typos in documentation and comments

2022-11-05 Thread Laurent Vivier
From: Stefan Weil Most of them were found and fixed using codespell. Signed-off-by: Stefan Weil Reviewed-by: Peter Maydell Reviewed-by: Thomas Huth Reviewed-by: Stefan Hajnoczi Message-Id: <20221030105944.311940-1...@weilnetz.de> Signed-off-by: Laurent Vivier --- docs/devel/testing.rst

[PULL 0/7] Trivial branch for 7.2 patches

2022-11-05 Thread Laurent Vivier
The following changes since commit 6295a58ad1b73985b9c32d184de7d2ed1fbe1774: Merge tag 'pull-target-arm-20221104' of https://git.linaro.org/people/pmaydell/qemu-arm into staging (2022-11-04 11:01:17 -0400) are available in the Git repository at: https://gitlab.com/laurent_vivier/qemu.git

[PULL 5/7] target/s390x: Rename insn-data/format.def -> insn-data/format.h.inc

2022-11-05 Thread Laurent Vivier
From: Philippe Mathieu-Daudé We use the .h.inc extension to include C headers. To be consistent with the rest of the codebase, rename the C headers using the .def extension. IDE/tools using our .editorconfig / .gitattributes will leverage this consistency. Signed-off-by: Philippe Mathieu-Daudé

[PULL 6/7] target/tricore: Rename csfr.def -> csfr.h.inc

2022-11-05 Thread Laurent Vivier
From: Philippe Mathieu-Daudé We use the .h.inc extension to include C headers. To be consistent with the rest of the codebase, rename the C headers using the .def extension. IDE/tools using our .editorconfig / .gitattributes will leverage this consistency. Signed-off-by: Philippe Mathieu-Daudé

[PULL 3/7] xen/pt: fix syntax error that causes FTBFS in some configurations

2022-11-05 Thread Laurent Vivier
From: Chuck Zmudzinski When Qemu is built with --enable-xen and --disable-xen-pci-passthrough and the target os is linux, the build fails with: meson.build:3477:2: ERROR: File xen_pt_stub.c does not exist. Fixes: 582ea95f5f93 ("meson: convert hw/xen") Signed-off-by: Chuck Zmudzinski

[PULL 1/7] qapi: virtio: Fix the introduced version

2022-11-05 Thread Laurent Vivier
From: Han Han The items of qapi/virtio.json are introduced at a5ebce38576. They will be in the version 7.2 not 7.1. Signed-off-by: Han Han Reviewed-by: Laurent Vivier Message-Id: <20221101014647.3000801-1-h...@redhat.com> Signed-off-by: Laurent Vivier --- qapi/virtio.json | 34

[PATCH RFC 0/3] virtio fix up started checks

2022-11-05 Thread Michael S. Tsirkin
This is an attempt to fix up device started checks. Unfortunately this causes failures in CI and I could not figure it out. The simplest way to test is to set QEMU_CI to 2 on gitlab, then push there. Alternatively, push to gitlab, then create pipeline while setting QEMU_CI to 1, then run

[PATCH RFC 2/3] gpio: use virtio_device_running

2022-11-05 Thread Michael S. Tsirkin
Same as other vhost-user devices, vhost-user-gpio cares whether device is running not whether frontend is started. Switch to that. Fixes: 27ba7b027f ("hw/virtio: add boilerplate for vhost-user-gpio device") Cc: "Viresh Kumar" Signed-off-by: Michael S. Tsirkin --- hw/virtio/vhost-user-gpio.c |

[PATCH RFC 3/3] virtio: revert changes to virtio_device_started

2022-11-05 Thread Michael S. Tsirkin
virtio core often needs to know whether device is started, this is what virtio_device_started already did. However, backends want to know whether virtio is actually running which also depends on whether vm is running. To address this we moved the check to virtio_device_started, but this changes

[PATCH RFC 1/3] virtio: distinguish between started and running

2022-11-05 Thread Michael S. Tsirkin
virtio core often needs to know whether device is started, this is what virtio_device_started already did. However, backends want to know whether virtio is actually running which also depends on whether vm is running. To address this we moved the check to virtio_device_started, but this changes

[PULL v3 29/81] hw/mem/cxl-type3: Add CXL CDAT Data Object Exchange

2022-11-05 Thread Michael S. Tsirkin
From: Huai-Cheng Kuo The CDAT can be specified in two ways. One is to add ",cdat=" in "-device cxl-type3"'s command option. The file is required to provide the whole CDAT table in binary mode. The other is to use the default that provides some 'reasonable' numbers based on type of memory and

[PULL v3 22/81] tests/acpi: virt: allow acpi MADT and FADT changes

2022-11-05 Thread Michael S. Tsirkin
From: Miguel Luis Step 3 from bios-tables-test.c documented procedure. Signed-off-by: Miguel Luis Message-Id: <20221011181730.10885-2-miguel.l...@oracle.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Acked-by: Ani Sinha ---

[PULL v3 12/81] acpi/tests/avocado/bits: disable acpi PSS tests that are failing in biosbits

2022-11-05 Thread Michael S. Tsirkin
From: Ani Sinha PSS tests in acpi test suite seems to be failing in biosbits. This is because the test is unable to find PSS support in QEMU bios. Let us disable them for now so that make check does not fail. We can fix the tests and re-enable them later. Example failure: ACPI _PSS

[PULL v3 28/81] hw/cxl/cdat: CXL CDAT Data Object Exchange implementation

2022-11-05 Thread Michael S. Tsirkin
From: Huai-Cheng Kuo The Data Object Exchange implementation of CXL Coherent Device Attribute Table (CDAT). This implementation is referring to "Coherent Device Attribute Table Specification, Rev. 1.03, July. 2022" and "Compute Express Link Specification, Rev. 3.0, July. 2022" This patch adds

[PULL v3 11/81] acpi/tests/avocado/bits: initial commit of test scripts that are run by biosbits

2022-11-05 Thread Michael S. Tsirkin
From: Ani Sinha This is initial commit of cpuid, acpi and smbios python test scripts for biosbits to execute. No change has been made to them from the original code written by the biosbits author Josh Triplett. They are required to be installed into the bits iso file and then run from within the

[PULL v3 31/81] hw/virtio/virtio-iommu-pci: Enforce the device is plugged on the root bus

2022-11-05 Thread Michael S. Tsirkin
From: Eric Auger In theory the virtio-iommu-pci could be plugged anywhere in the PCIe topology and as long as the dt/acpi info are properly built this should work. However at the moment we fail to do that because the virtio-iommu-pci BDF is not computed at plug time and in that case

[PULL v3 60/81] hw/acpi/erst.c: Fix memory handling issues

2022-11-05 Thread Michael S. Tsirkin
From: "Christian A. Ehrhardt" - Fix memset argument order: The second argument is the value, the length goes last. - Fix an integer overflow reported by Alexander Bulekov. Both issues allow the guest to overrun the host buffer allocated for the ERST memory device. Cc: Eric DeVolder Cc:

[PULL v3 44/81] virtio-net: support queue_enable

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu Support queue_enable in vhost-kernel scenario. It can be called when a vq reset operation has been performed and the vq is restared. It should be noted that we can restart the vq when the vhost has already started. When launching a new vhost device, the vhost is not started and

[PULL v3 38/81] vhost: expose vhost_virtqueue_start()

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu Expose vhost_virtqueue_start(), we need to use it when restarting a virtqueue. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id: <20221017092558.111082-8-xuanz...@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S.

[PULL v3 69/81] tests: acpi: q35: add test for hmat nodes without initiators

2022-11-05 Thread Michael S. Tsirkin
From: Brice Goglin expected HMAT: [000h 4]Signature : "HMAT"[Heterogeneous Memory Attributes Table] [004h 0004 4] Table Length : 0120 [008h 0008 1] Revision : 02 [009h 0009 1] Checksum : 4F [00Ah

[PULL v3 47/81] virtio-rng-pci: Allow setting nvectors, so we can use MSI-X

2022-11-05 Thread Michael S. Tsirkin
From: David Daney Most other virtio-pci devices allow MSI-X, let's have it for rng too. Signed-off-by: David Daney Reviewed-by: Marcin Nowakowski Signed-off-by: Philippe Mathieu-Daudé Message-Id: <20221014160947.66105-1-phi...@fungible.com> Reviewed-by: Stefan Hajnoczi Reviewed-by: Michael

[PULL v3 56/81] tests: acpi: update expected blobs

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov Expected change in q35 tests: @@ -2797,14 +2797,6 @@ DefinitionBlock ("", "DSDT", 1, "BOCHS ", "BXPC ", 0x0001) } } -Scope (_SB.PCI0) -{ -Device (SMB0) -{ -

[PULL v3 27/81] hw/mem/cxl-type3: Add MSIX support

2022-11-05 Thread Michael S. Tsirkin
From: Jonathan Cameron This will be used by several upcoming patch sets so break it out such that it doesn't matter which one lands first. Signed-off-by: Jonathan Cameron Message-Id: <20221014151045.24781-3-jonathan.came...@huawei.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S.

[PULL v3 78/81] intel-iommu: convert VTD_PE_GET_FPD_ERR() to be a function

2022-11-05 Thread Michael S. Tsirkin
From: Jason Wang We used to have a macro for VTD_PE_GET_FPD_ERR() but it has an internal goto which prevents it from being reused. This patch convert that macro to a dedicated function and let the caller to decide what to do (e.g using goto or not). This makes sure it can be re-used for other

[PULL v3 49/81] acpi: pc: vga: use AcpiDevAmlIf interface to build VGA device descriptors

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20221017102146.2254096-2-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin NB: we do not expect any functional change in any ACPI tables with this change. It's only a refactoring. Reviewed-by:

[PULL v3 14/81] acpi/tests/avocado/bits: add acpi and smbios avocado tests that uses biosbits

2022-11-05 Thread Michael S. Tsirkin
From: Ani Sinha This introduces QEMU acpi/smbios biosbits avocado test which is run from within the python virtual environment. When the bits tests are run, bits binaries are downloaded from an external repo/location, bios bits iso is regenerated containing the acpi/smbios bits tests that are

[PULL v3 74/81] tests: virt: Update expected *.acpihmatvirt tables

2022-11-05 Thread Michael S. Tsirkin
From: Hesham Almatary * Expected ACPI Data Table [HMAT] [000h 4]Signature : "HMAT"[Heterogeneous Memory Attributes Table] [004h 0004 4] Table Length : 0120 [008h 0008 1] Revision : 02 [009h 0009 1]

[PULL v3 57/81] tests: acpi: pc/q35 whitelist DSDT before \_GPE cleanup

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20221017102146.2254096-10-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 34 + 1 file changed, 34 insertions(+) diff

[PULL v3 40/81] vhost-net: vhost-kernel: introduce vhost_net_virtqueue_reset()

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu Introduce vhost_virtqueue_reset(), which can reset the specific virtqueue in the device. Then it will unmap vrings and the desc of the virtqueue. Here we do not reuse the vhost_net_stop_one() or vhost_dev_stop(), because they work at queue pair level. We do not use

[PULL v3 59/81] tests: acpi: update expected blobs

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov Expected changes are: 1) Moving _GPE scope declaration achec of all _E0x methods +Scope (_GPE) +{ +Name (_HID, "ACPI0006" /* GPE Block Device */) // _HID: Hardware ID +} + Scope (_SB) { Device (\_SB.PCI0.PRES)

[PULL v3 75/81] vfio: move implement of vfio_get_xlat_addr() to memory.c

2022-11-05 Thread Michael S. Tsirkin
From: Cindy Lu - Move the implement vfio_get_xlat_addr to softmmu/memory.c, and change the name to memory_get_xlat_addr(). So we can use this function on other devices, such as vDPA device. - Add a new function vfio_get_xlat_addr in vfio/common.c, and it will check whether the memory is

Re: [PATCH V5 2/4] intel-iommu: drop VTDBus

2022-11-05 Thread Michael S. Tsirkin
On Fri, Oct 28, 2022 at 02:14:34PM +0800, Jason Wang wrote: > We introduce VTDBus structure as an intermediate step for searching > the address space. This works well with SID based matching/lookup. But > when we want to support SID plus PASID based address space lookup, > this intermediate steps

[PULL v3 73/81] tests: acpi: aarch64/virt: add a test for hmat nodes with no initiators

2022-11-05 Thread Michael S. Tsirkin
From: Hesham Almatary This patch imitates the "tests: acpi: q35: add test for hmat nodes without initiators" commit to test numa nodes with different HMAT attributes, but on AArch64/virt. Tested with: qemu-system-aarch64 -accel tcg \ -machine virt,hmat=on,gic-version=3 -cpu cortex-a57 \ -bios

[PULL v3 43/81] virtio-net: support queue reset

2022-11-05 Thread Michael S. Tsirkin
From: Xuan Zhuo virtio-net and vhost-kernel implement queue reset. Queued packets in the corresponding queue pair are flushed or purged. For virtio-net, userspace datapath will be disabled later in __virtio_queue_reset(). It will set addr of vring to 0 and idx to 0. Thus, virtio_net_receive()

[PULL v3 68/81] tests: acpi: add and whitelist *.hmat-noinitiator expected blobs

2022-11-05 Thread Michael S. Tsirkin
From: Brice Goglin .. which will be used by follow up hmat-noinitiator test-case. Signed-off-by: Brice Goglin Signed-off-by: Hesham Almatary Message-Id: <20221027100037.251-3-hesham.almat...@huawei.com> Tested-by: Yicong Yang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin

[PULL v3 34/81] virtio: introduce virtio_queue_enable()

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu Introduce the interface queue_enable() in VirtioDeviceClass and the fucntion virtio_queue_enable() in virtio, it can be called when VIRTIO_PCI_COMMON_Q_ENABLE is written and related virtqueue can be started. It only supports the devices of virtio 1 or later. The not-supported

[PULL v3 76/81] intel-iommu: don't warn guest errors when getting rid2pasid entry

2022-11-05 Thread Michael S. Tsirkin
From: Jason Wang We use to warn on wrong rid2pasid entry. But this error could be triggered by the guest and could happens during initialization. So let's don't warn in this case. Reviewed-by: Peter Xu Signed-off-by: Jason Wang Message-Id: <20221028061436.30093-2-jasow...@redhat.com>

[PULL v3 37/81] virtio-pci: support queue enable

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu PCI devices support device specific vq enable. Based on this function, the driver can re-enable the virtqueue after the virtqueue is reset. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id:

[PULL v3 58/81] acpi: pc/35: sanitize _GPE declaration order

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov Move _GPE block declaration before it gets referenced by other hotplug handlers. While at it move PCI hotplug (_E01) handler after PCI tree description to avoid forward reference to to not yet declared methods/devices. PS: Forward 'usage' usualy is fine as long as it's

[PULL v3 66/81] hw/i386/acpi-build: Resolve north rather than south bridges

2022-11-05 Thread Michael S. Tsirkin
From: Bernhard Beschow The code currently assumes Q35 iff ICH9 and i440fx iff PIIX. Now that more AML generation has been moved into the south bridges and since the machines define themselves primarily through their north bridges, let's switch to resolving the north bridges for AML generation

[PULL v3 80/81] vhost: Change the sequence of device start

2022-11-05 Thread Michael S. Tsirkin
From: Yajun Wu This patch is part of adding vhost-user vhost_dev_start support. The motivation is to improve backend configuration speed and reduce live migration VM downtime. Moving the device start routines after finishing all the necessary device and VQ configuration, further aligning to the

[PULL v3 19/81] tests/acpi: allow changes for core_count2 test

2022-11-05 Thread Michael S. Tsirkin
From: Julia Suvorova Signed-off-by: Julia Suvorova Message-Id: <20220731162141.178443-4-jus...@redhat.com> Message-Id: <2022101731.101412-4-jus...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Acked-by: Igor Mammedov ---

[PULL v3 77/81] intel-iommu: drop VTDBus

2022-11-05 Thread Michael S. Tsirkin
From: Jason Wang We introduce VTDBus structure as an intermediate step for searching the address space. This works well with SID based matching/lookup. But when we want to support SID plus PASID based address space lookup, this intermediate steps turns out to be a burden. So the patch simply

[PULL v3 67/81] hmat acpi: Don't require initiator value in -numa

2022-11-05 Thread Michael S. Tsirkin
From: Brice Goglin The "Memory Proximity Domain Attributes" structure of the ACPI HMAT has a "Processor Proximity Domain Valid" flag that is currently always set because Qemu -numa requires an initiator=X value when hmat=on. Unsetting this flag allows to create more complex memory topologies by

[PULL v3 30/81] hw/pci-bridge/cxl-upstream: Add a CDAT table access DOE

2022-11-05 Thread Michael S. Tsirkin
From: Jonathan Cameron This Data Object Exchange Mailbox allows software to query the latency and bandwidth between ports on the switch. For now only provide information on routes between the upstream port and each downstream port (not p2p). Signed-off-by: Jonathan Cameron -- Changes since

[PULL v3 63/81] hw/i386/pc.c: CXL Fixed Memory Window should not reserve e820 in bios

2022-11-05 Thread Michael S. Tsirkin
From: Gregory Price Early-boot e820 records will be inserted by the bios/efi/early boot software and be reported to the kernel via insert_resource. Later, when CXL drivers iterate through the regions again, they will insert another resource and make the RESERVED memory area a child. This

[PULL v3 36/81] virtio-pci: support queue reset

2022-11-05 Thread Michael S. Tsirkin
From: Xuan Zhuo PCI devices support vq reset. Based on this function, the driver can adjust the size of the ring, and quickly recycle the buffer in the ring. The migration of the virtio devices will not happen during a reset operation. This is becuase the global iothread lock is held.

[PULL v3 65/81] hw/i386/acpi-build: Resolve redundant attribute

2022-11-05 Thread Michael S. Tsirkin
From: Bernhard Beschow The is_piix4 attribute is set once in one location and read once in another. Doing both in one location allows for removing the attribute altogether. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé Message-Id:

[PULL v3 62/81] msix: Assert that specified vector is in range

2022-11-05 Thread Michael S. Tsirkin
From: Akihiko Odaki There were several different ways to deal with the situation where the vector specified for a msix function is out of bound: - early return a function and keep progresssing - propagate the error to the caller - mark msix unusable - assert it is in bound - just ignore An

[PULL v3 41/81] vhost-net: vhost-kernel: introduce vhost_net_virtqueue_restart()

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu Introduce vhost_net_virtqueue_restart(), which can restart the specific virtqueue when the vhost net started running before. If it fails to restart the virtqueue, the device will be stopped. Here we do not reuse vhost_net_start_one() or vhost_dev_start() because they work at

[PULL v3 51/81] acpi: pc/q35: drop ad-hoc PCI-ISA bridge AML routines and let bus ennumeration generate AML

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov PCI-ISA bridges that are built in PIIX/Q35 are building its own AML using AcpiDevAmlIf interface. Now build_append_pci_bus_devices() gained AcpiDevAmlIf interface support to get AML of devices atached to PCI slots. So drop ad-hoc

[PULL v3 05/81] acpi/nvdimm: Implement ACPI NVDIMM Label Methods

2022-11-05 Thread Michael S. Tsirkin
From: Robert Hoo Recent ACPI spec [1] has defined NVDIMM Label Methods _LS{I,R,W}, which deprecates corresponding _DSM Functions defined by PMEM _DSM Interface spec [2]. Since the semantics of the new Label Methods are almost same as old _DSM methods, the implementations here simply wrapper old

[PULL v3 71/81] tests: Add HMAT AArch64/virt empty table files

2022-11-05 Thread Michael S. Tsirkin
From: Hesham Almatary Signed-off-by: Hesham Almatary Message-Id: <20221027100037.251-6-hesham.almat...@huawei.com> Tested-by: Yicong Yang Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 5 +

[PULL v3 18/81] bios-tables-test: teach test to use smbios 3.0 tables

2022-11-05 Thread Michael S. Tsirkin
From: Julia Suvorova Introduce the 64-bit entry point. Since we no longer have a total number of structures, stop checking for the new ones at the EOF structure (type 127). Signed-off-by: Julia Suvorova Reviewed-by: Igor Mammedov Message-Id: <20220731162141.178443-3-jus...@redhat.com>

[PULL v3 79/81] intel-iommu: PASID support

2022-11-05 Thread Michael S. Tsirkin
From: Jason Wang This patch introduce ECAP_PASID via "x-pasid-mode". Based on the existing support for scalable mode, we need to implement the following missing parts: 1) tag VTDAddressSpace with PASID and support IOMMU/DMA translation with PASID 2) tag IOTLB with PASID 3) PASID cache and

[PULL v3 23/81] acpi: fadt: support revision 6.0 of the ACPI specification

2022-11-05 Thread Michael S. Tsirkin
From: Miguel Luis Update the Fixed ACPI Description Table (FADT) to revision 6.0 of the ACPI specification adding the field "Hypervisor Vendor Identity". This field's description states the following: "64-bit identifier of hypervisor vendor. All bytes in this field are considered part of the

[PULL v3 81/81] vhost-user: Support vhost_dev_start

2022-11-05 Thread Michael S. Tsirkin
From: Yajun Wu The motivation of adding vhost-user vhost_dev_start support is to improve backend configuration speed and reduce live migration VM downtime. Today VQ configuration is issued one by one. For virtio net with multi-queue support, backend needs to update RSS (Receive side scaling) on

[PULL v3 02/81] tests/acpi: allow SSDT changes

2022-11-05 Thread Michael S. Tsirkin
From: Robert Hoo Signed-off-by: Robert Hoo Reviewed-by: Jingqi Liu Message-Id: <20220922122155.1326543-2-robert...@linux.intel.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 2 ++ 1 file changed, 2 insertions(+) diff

[PULL v3 61/81] MAINTAINERS: Add qapi/virtio.json to section "virtio"

2022-11-05 Thread Michael S. Tsirkin
From: Markus Armbruster Cc: Michael S. Tsirkin Signed-off-by: Markus Armbruster Message-Id: <20221020120458.80709-1-arm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Philippe Mathieu-Daudé --- MAINTAINERS | 1 + 1 file changed, 1 insertion(+)

[PULL v3 46/81] virtio-net: enable vq reset feature

2022-11-05 Thread Michael S. Tsirkin
From: Xuan Zhuo Add virtqueue reset feature for virtio-net Signed-off-by: Xuan Zhuo Message-Id: <20221017092558.111082-16-xuanz...@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/net/virtio-net.c | 1 + 1 file changed, 1 insertion(+) diff --git

[PULL v3 26/81] hw/pci: PCIe Data Object Exchange emulation

2022-11-05 Thread Michael S. Tsirkin
From: Huai-Cheng Kuo Emulation of PCIe Data Object Exchange (DOE) PCIE Base Specification r6.0 6.3 Data Object Exchange Supports multiple DOE PCIe Extended Capabilities for a single PCIe device. For each capability, a static array of DOEProtocol should be passed to pcie_doe_init(). The

[PULL v3 21/81] tests/acpi: update tables for new core count test

2022-11-05 Thread Michael S. Tsirkin
From: Julia Suvorova Changes in the tables (for 275 cores): FACP: + Use APIC Cluster Model (V4) : 1 APIC: +[02Ch 0044 1]Subtable Type : 00 [Processor Local APIC] +[02Dh 0045 1] Length : 08 +[02Eh 0046 1] Processor ID :

[PULL v3 70/81] tests: acpi: q35: update expected blobs *.hmat-noinitiators expected HMAT:

2022-11-05 Thread Michael S. Tsirkin
From: Brice Goglin [000h 4]Signature : "HMAT"[Heterogeneous Memory Attributes Table] [004h 0004 4] Table Length : 0120 [008h 0008 1] Revision : 02 [009h 0009 1] Checksum : 4F [00Ah 0010 6]

[PULL v3 39/81] vhost: expose vhost_virtqueue_stop()

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu Expose vhost_virtqueue_stop(), we need to use it when resetting a virtqueue. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id: <20221017092558.111082-9-xuanz...@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S.

[PULL v3 24/81] acpi: arm/virt: madt: bump to revision 4 accordingly to ACPI 6.0 Errata A

2022-11-05 Thread Michael S. Tsirkin
From: Miguel Luis MADT has been updated with the GIC Structures from ACPI 6.0 Errata A and so MADT revision and GICC Structure must be updated also. Fixes: 37f33084ed2e ("acpi: arm/virt: madt: use build_append_int_noprefix() API to compose MADT table") Signed-off-by: Miguel Luis Reviewed-by:

[PULL v3 52/81] tests: acpi: update expected DSDT after ISA bridge is moved directly under PCI host bridge

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov example of the change for PC machine with hotplug disabled on root buss (no BSEL case): -Field (PCI0.ISA.P40C, ByteAcc, NoLock, Preserve) +Field (S08.P40C, ByteAcc, NoLock, Preserve) === -Scope (_SB.PCI0) -{ -Device (ISA) -{

[PULL v3 32/81] virtio: introduce __virtio_queue_reset()

2022-11-05 Thread Michael S. Tsirkin
From: Xuan Zhuo Separate the logic of vq reset. This logic will be called directly later. Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id: <20221017092558.111082-2-xuanz...@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/virtio/virtio.c

[PULL v3 16/81] MAINTAINERS: add myself as the maintainer for acpi biosbits avocado tests

2022-11-05 Thread Michael S. Tsirkin
From: Ani Sinha I wrote the biosbits avocado tests for testing QEMU's ACPI/SMBIOS implementation and all the related changes including fixes in biosbits software itself. Making myself as the maintainer for QEMU's biosbits related files and test scripts. Cc: Daniel P. Berrangé Cc: Paolo Bonzini

[PULL v3 20/81] bios-tables-test: add test for number of cores > 255

2022-11-05 Thread Michael S. Tsirkin
From: Julia Suvorova The new test is run with a large number of cpus and checks if the core_count field in smbios_cpu_test (structure type 4) is correct. Choose q35 as it allows to run with -smp > 255. Signed-off-by: Julia Suvorova Message-Id: <20220731162141.178443-5-jus...@redhat.com>

[PULL v3 53/81] tests: acpi: whitelist DSDT before generating ICH9_SMB AML automatically

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20221017102146.2254096-6-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 21 + 1 file changed, 21 insertions(+) diff

[PULL v3 13/81] acpi/tests/avocado/bits: add biosbits config file for running bios tests

2022-11-05 Thread Michael S. Tsirkin
From: Ani Sinha This change adds initial biosbits config file that instructs biosbits to run bios test suits in batch mode. Additionally acpi and smbios structures are also dumped. Cc: Daniel P. Berrangé Cc: Paolo Bonzini Cc: Maydell Peter Cc: John Snow Cc: Thomas Huth Cc: Alex Bennée Cc:

[PULL v3 72/81] hw/arm/virt: Enable HMAT on arm virt machine

2022-11-05 Thread Michael S. Tsirkin
From: Xiang Chen Since the patchset ("Build ACPI Heterogeneous Memory Attribute Table (HMAT)"), HMAT is supported, but only x86 is enabled. Enable HMAT on arm virt machine. Signed-off-by: Xiang Chen Signed-off-by: Hesham Almatary Reviewed-by: Igor Mammedov Message-Id:

[PULL v3 25/81] tests/acpi: virt: update ACPI MADT and FADT binaries

2022-11-05 Thread Michael S. Tsirkin
From: Miguel Luis Step 6 & 7 of the bios-tables-test.c documented procedure. Differences between disassembled ASL files for MADT: @@ -11,9 +11,9 @@ */ [000h 4]Signature : "APIC"[Multiple APIC Description Table (MADT)] -[004h 0004 4] Table

[PULL v3 45/81] vhost: vhost-kernel: enable vq reset feature

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu Add virtqueue reset feature for vhost-kernel. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id: <20221017092558.111082-15-xuanz...@linux.alibaba.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/net/vhost_net.c

[PULL v3 33/81] virtio: introduce virtio_queue_reset()

2022-11-05 Thread Michael S. Tsirkin
From: Xuan Zhuo Introduce a new interface function virtio_queue_reset() to implement reset for vq. Add a new callback to VirtioDeviceClass for queue reset operation for each child device. Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id:

[PULL v3 03/81] acpi/ssdt: Fix aml_or() and aml_and() in if clause

2022-11-05 Thread Michael S. Tsirkin
From: Robert Hoo In If condition, using bitwise and/or, rather than logical and/or. The result change in AML code: If (((Local6 == Zero) | (Arg0 != Local0))) ==> If (((Local6 == Zero) || (Arg0 != Local0))) If (((ObjectType (Arg3) == 0x04) & (SizeOf (Arg3) == One))) ==> If (((ObjectType (Arg3)

[PULL v3 50/81] tests: acpi: whitelist DSDT before generating PCI-ISA bridge AML automatically

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20221017102146.2254096-3-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 34 + 1 file changed, 34 insertions(+) diff

[PULL v3 42/81] virtio-net: introduce flush_or_purge_queued_packets()

2022-11-05 Thread Michael S. Tsirkin
From: Kangjie Xu Introduce the fucntion flush_or_purge_queued_packets(), it will be used in device reset and virtqueue reset. Therefore, we extract the common logic as a new function. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id:

[PULL v3 55/81] acpi: enumerate SMB bridge automatically along with other PCI devices

2022-11-05 Thread Michael S. Tsirkin
From: Igor Mammedov to make that happen (bridge sits at _ADR: 0x001F0003), relax PCI enumeration logic to include devices with *function* > 0 if device has something to say about itself (i.e. has build_dev_aml callback set). Signed-off-by: Igor Mammedov Message-Id:

[PULL v3 04/81] acpi/nvdimm: define macro for NVDIMM Device _DSM

2022-11-05 Thread Michael S. Tsirkin
From: Robert Hoo Since it will be heavily used in next patch, define macro NVDIMM_DEVICE_DSM_UUID for "4309AC30-0D11-11E4-9191-0800200C9A66", which is NVDIMM device specific method uuid defined in NVDIMM _DSM interface spec, Section 3. [1] No functional changes in this patch. [1]

[PULL v3 07/81] virtio-crypto: Support asynchronous mode

2022-11-05 Thread Michael S. Tsirkin
From: Lei He virtio-crypto: Modify the current interface of virtio-crypto device to support asynchronous mode. Signed-off-by: lei he Message-Id: <20221008085030.70212-2-helei.si...@bytedance.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin ---

  1   2   >