[PATCH] e1000: Use hw/net/mii.h

2022-11-02 Thread Akihiko Odaki
hw/net/mii.h provides common definitions for MII. Signed-off-by: Akihiko Odaki --- hw/net/e1000_regs.h| 46 hw/net/e1000.c | 86 ++-- hw/net/e1000e_core.c | 99 +- hw/net/e1000x_common.c |

[PATCH] fsl_etsec: Use hw/net/mii.h

2022-11-02 Thread Akihiko Odaki
hw/net/mii.h provides common definitions for MII. Signed-off-by: Akihiko Odaki --- hw/net/fsl_etsec/etsec.h | 17 - include/hw/net/mii.h | 1 + hw/net/fsl_etsec/etsec.c | 11 ++- hw/net/fsl_etsec/miim.c | 5 +++-- 4 files changed, 10 insertions(+), 24 deletions(-)

Re: [PATCH 3/3] vdpa: Expose VIRTIO_NET_F_STATUS unconditionally

2022-11-02 Thread Jason Wang
On Wed, Nov 2, 2022 at 7:19 PM Eugenio Perez Martin wrote: > > On Tue, Nov 1, 2022 at 9:10 AM Jason Wang wrote: > > > > On Fri, Oct 28, 2022 at 5:30 PM Eugenio Perez Martin > > wrote: > > > > > > On Fri, Oct 28, 2022 at 3:59 AM Jason Wang wrote: > > > > > > > > On Thu, Oct 27, 2022 at 6:18 PM E

[PATCH] tests/qtest/libqos/e1000e: Set E1000_CTRL_SLU

2022-11-02 Thread Akihiko Odaki
The later device status check depends on E1000_STATUS_LU, which is enabled by E1000_CTRL_SLU. Though E1000_STATUS_LU is not implemented and E1000_STATUS_LU is always available in the current implementation, be a bit nicer and set E1000_CTRL_SLU just in case the bit is implemented in the future. Si

Re: [PATCH v3 4/4] hw/nvme: add polling support

2022-11-02 Thread Jinhao Fan
at 7:10 PM, Klaus Jensen wrote: > This doesn't do what you expect it to. By not updaring the eventidx it > will fall behind the actual head, causing the host to think that the > device is not processing events (but it is!), resulting in doorbell > ringing. I’m not sure I understand this correctl

Re: [PATCH v3 3/4] hw/nvme: add iothread support

2022-11-02 Thread Jinhao Fan
at 7:13 PM, Klaus Jensen wrote: > Otherwise, it all looks fine. I'm still seeing the weird slowdown when > an iothread is enabled. I have yet to figure out why that is... But it > scales! :) How much slowdown do you observe on your machine?

[PATCH] tests/qtest/libqos/e1000e: Refer common PCI ID definitions

2022-11-02 Thread Akihiko Odaki
This is yet another minor cleanup to ease understanding and future refactoring of the tests. Signed-off-by: Akihiko Odaki --- tests/qtest/libqos/e1000e.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/qtest/libqos/e1000e.c b/tests/qtest/libqos/e1000e.c index 2ea5d

Re: [PATCH v6 0/3] ppc/e500: Add support for eSDHC

2022-11-02 Thread Daniel Henrique Barboza
On 11/1/22 19:29, Philippe Mathieu-Daudé wrote: This is a respin of Bernhard's v4 with Freescale eSDHC implemented as an 'UNIMP' region. See v4 cover here: https://lore.kernel.org/qemu-devel/20221018210146.193159-1-shen...@gmail.com/ Since v5: - Rebased (ppc-next merged) - Properly handle big

Re: [PATCH] virtio-blk: simplify virtio_blk_dma_restart_cb()

2022-11-02 Thread Michael S. Tsirkin
On Wed, Nov 02, 2022 at 02:23:37PM -0400, Stefan Hajnoczi wrote: > virtio_blk_dma_restart_cb() is tricky because the BH must deal with > virtio_blk_data_plane_start()/virtio_blk_data_plane_stop() being called. > > There are two issues with the code: > > 1. virtio_blk_realize() should use qdev_add

Re: [PATCH] Run docker probe only if docker or podman are available

2022-11-02 Thread Alex Bennée
Stefan Weil writes: > The docker probe uses "sudo -n" which can cause an e-mail with a security > warning > each time when configure is run. Therefore run docker probe only if either > docker > or podman are available. > > That avoids the problematic "sudo -n" on build environments which have

Re: [PATCH v9 1/8] mm: Introduce memfd_restricted system call to create restricted user memory

2022-11-02 Thread Michael Roth
On Thu, Nov 03, 2022 at 12:14:04AM +0300, Kirill A. Shutemov wrote: > On Mon, Oct 31, 2022 at 12:47:38PM -0500, Michael Roth wrote: > > > > In v8 there was some discussion about potentially passing the page/folio > > and order as part of the invalidation callback, I ended up needing > > something

Re: [PATCH v9 1/8] mm: Introduce memfd_restricted system call to create restricted user memory

2022-11-02 Thread Michael Roth
On Thu, Nov 03, 2022 at 12:14:04AM +0300, Kirill A. Shutemov wrote: > On Mon, Oct 31, 2022 at 12:47:38PM -0500, Michael Roth wrote: > > > > In v8 there was some discussion about potentially passing the page/folio > > and order as part of the invalidation callback, I ended up needing > > something

Re: [PATCH v9 1/8] mm: Introduce memfd_restricted system call to create restricted user memory

2022-11-02 Thread Michael Roth
On Wed, Nov 02, 2022 at 10:53:25PM +0800, Chao Peng wrote: > On Tue, Nov 01, 2022 at 02:30:58PM -0500, Michael Roth wrote: > > On Tue, Nov 01, 2022 at 10:19:44AM -0500, Michael Roth wrote: > > > On Tue, Nov 01, 2022 at 07:37:29PM +0800, Chao Peng wrote: > > > > On Mon, Oct 31, 2022 at 12:47:38PM -0

Re: [RFC v4 3/3] virtio-blk: add some trace events for zoned emulation

2022-11-02 Thread Philippe Mathieu-Daudé
Hi, On 30/10/22 10:32, Sam Li wrote: Signed-off-by: Sam Li --- hw/block/trace-events | 7 +++ hw/block/virtio-blk.c | 12 2 files changed, 19 insertions(+) diff --git a/hw/block/trace-events b/hw/block/trace-events index 2c45a62bd5..f47da6fcd4 100644 --- a/hw/block/trace-

Re: [PATCH v9 1/8] mm: Introduce memfd_restricted system call to create restricted user memory

2022-11-02 Thread Kirill A. Shutemov
On Mon, Oct 31, 2022 at 12:47:38PM -0500, Michael Roth wrote: > > In v8 there was some discussion about potentially passing the page/folio > and order as part of the invalidation callback, I ended up needing > something similar for SEV-SNP, and think it might make sense for other > platforms. This

Re: [RFC v4 3/3] virtio-blk: add some trace events for zoned emulation

2022-11-02 Thread Stefan Hajnoczi
On Sun, Oct 30, 2022 at 05:32:42AM -0400, Sam Li wrote: > Signed-off-by: Sam Li > --- > hw/block/trace-events | 7 +++ > hw/block/virtio-blk.c | 12 > 2 files changed, 19 insertions(+) Reviewed-by: Stefan Hajnoczi signature.asc Description: PGP signature

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

2022-11-02 Thread Stefan Hajnoczi
On Sun, Oct 30, 2022 at 05:32:41AM -0400, Sam Li wrote: > This patch extends virtio-blk emulation to handle zoned device commands > by calling the new block layer APIs to perform zoned device I/O on > behalf of the guest. It supports Report Zone, four zone oparations (open, > close, finish, reset),

Re: [PATCH v4 0/2] Refactoring: expand usage of TFR() macro

2022-11-02 Thread Nikita Ivanov
Hi! Is there any update on this? I haven't received any comments. On Sun, Oct 23, 2022 at 12:04 PM Nikita Ivanov wrote: > At the moment, TFR() macro has a vague name and is not used > where it possibly could be. In order to make it more transparent > and useful, it was decided to refactor it to

Re: [PATCH] Run docker probe only if docker or podman are available

2022-11-02 Thread Stefan Weil via
Am 30.10.22 um 09:35 schrieb Stefan Weil: The docker probe uses "sudo -n" which can cause an e-mail with a security warning each time when configure is run. Therefore run docker probe only if either docker or podman are available. That avoids the problematic "sudo -n" on build environments wh

Re: [PATCH] tests/unit/test-io-channel-command: Silence GCC error "maybe-uninitialized"

2022-11-02 Thread Alex Bennée
Bernhard Beschow writes: > GCC issues a false positive warning, resulting in build failure with -Werror: > > In file included from /usr/lib/glib-2.0/include/glibconfig.h:9, >from /usr/include/glib-2.0/glib/gtypes.h:34, >from /usr/include/glib-2.0/glib/g

[PATCH for 7.2] Fix broken configure with -Wunused-parameter

2022-11-02 Thread Stefan Weil via
The configure script fails because it tries to compile small C programs with a main function which is declared with arguments argc and argv although those arguments are unused. Running `configure -extra-cflags=-Wunused-parameter` triggers the problem. configure for a native build does abort but sh

Re: [PULL 59/62] hw/block/pflash_cfi0{1, 2}: Error out if device length isn't a power of two

2022-11-02 Thread Daniel Henrique Barboza
On 11/1/22 19:49, Philippe Mathieu-Daudé wrote: On 1/11/22 23:23, Stefan Hajnoczi wrote: There is a report that this commit breaks an existing OVMF setup: https://gitlab.com/qemu-project/qemu/-/issues/1290#note_1156507334 I'm not familiar with pflash. Please find a way to avoid a regression

Re: [PULL v2 00/82] pci,pc,virtio: features, tests, fixes, cleanups

2022-11-02 Thread Stefan Hajnoczi
On Wed, Nov 02, 2022 at 12:02:14PM -0400, Michael S. Tsirkin wrote: > Changes from v1: > > Applied and squashed fixes by Igor, Lei He, Hesham Almatary for > bugs that tripped up the pipeline. > Updated expected files for core-count test. Several "make check" CI failures have occurred. They look l

Re: [PATCH 2/2] file-posix: add statx(STATX_DIOALIGN) support

2022-11-02 Thread Stefan Hajnoczi
On Tue, Nov 01, 2022 at 08:32:30PM -0700, Eric Biggers wrote: > On Tue, Nov 01, 2022 at 03:00:31PM -0400, Stefan Hajnoczi wrote: > > /* Let's try to use the logical blocksize for the alignment. */ > > -if (probe_logical_blocksize(fd, &bs->bl.request_alignment) < 0) { > > -bs->bl.re

Re: [PATCH 1/2] file-posix: fix Linux alignment probing when EIO is returned

2022-11-02 Thread Stefan Hajnoczi
On Tue, Nov 01, 2022 at 07:49:20PM -0700, Eric Biggers wrote: > On Tue, Nov 01, 2022 at 07:27:16PM -0700, Eric Biggers wrote: > > On Tue, Nov 01, 2022 at 03:00:30PM -0400, Stefan Hajnoczi wrote: > > > Linux dm-crypt returns errno EIO from unaligned O_DIRECT pread(2) calls. > > > > Citation needed.

Re: [PATCH 3/3] target/tricore: Rename csfr.def -> csfr.h.inc

2022-11-02 Thread Laurent Vivier
Le 26/10/2022 à 01:50, Philippe Mathieu-Daudé a écrit : 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-

Re: [PATCH 2/3] target/s390x: Rename insn-data/format.def -> insn-data/format.h.inc

2022-11-02 Thread Laurent Vivier
Le 26/10/2022 à 01:50, Philippe Mathieu-Daudé a écrit : 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-

Re: [PATCH 1/3] target/m68k: Rename qregs.def -> qregs.h.inc

2022-11-02 Thread Laurent Vivier
Le 26/10/2022 à 01:50, Philippe Mathieu-Daudé a écrit : 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-

Re: [PATCH 3/3] libvhost-user: Add format attribute to local function vu_panic

2022-11-02 Thread Laurent Vivier
Le 22/04/2022 à 09:01, Stefan Weil a écrit : Signed-off-by: Stefan Weil --- It would be good to add format attributes to local functions, too (like it is done here) to avoid future format bugs. The changes here could be simplified by including a glib header, but from the comments I assumed tha

Re: [PATCH 2/3] libvhost-user: Fix format strings

2022-11-02 Thread Laurent Vivier
Le 22/04/2022 à 09:01, Stefan Weil a écrit : Signed-off-by: Stefan Weil --- subprojects/libvhost-user/libvhost-user.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subprojects/libvhost-user/libvhost-user.c b/subprojects/libvhost-user/libvhost-user.c index 2d29140a8f

[PATCH] virtio-blk: simplify virtio_blk_dma_restart_cb()

2022-11-02 Thread Stefan Hajnoczi
virtio_blk_dma_restart_cb() is tricky because the BH must deal with virtio_blk_data_plane_start()/virtio_blk_data_plane_stop() being called. There are two issues with the code: 1. virtio_blk_realize() should use qdev_add_vm_change_state_handler() instead of qemu_add_vm_change_state_handler().

Re: [PATCH 1/3] libvhost-user: Fix wrong type of argument to formatting function (reported by LGTM)

2022-11-02 Thread Laurent Vivier
Le 22/04/2022 à 09:01, Stefan Weil a écrit : Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Stefan Weil --- This patch was already sent to the list and got reviewed, but missed release 7.0.0. subprojects/libvhost-user/libvhost-user.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-

Re: [PATCH v4 1/2] xen/pt: fix syntax error that causes FTBFS in some configurations

2022-11-02 Thread Laurent Vivier
Le 31/10/2022 à 22:35, Chuck Zmudzinski a écrit : 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:

Re: [PATCH] Add nsis.py to W32/W64 section in MAINTAINERS

2022-11-02 Thread Laurent Vivier
Le 31/10/2022 à 14:17, Stefan Weil via a écrit : Am 31.10.22 um 11:28 schrieb Philippe Mathieu-Daudé: On 31/10/22 10:57, Stefan Weil via wrote: Signed-off-by: Stefan Weil ---   MAINTAINERS | 1 +   1 file changed, 1 insertion(+) Reviewed-by: Philippe Mathieu-Daudé Cc qemu-trivial If

Re: [PATCH v2] Fix some typos in documentation and comments

2022-11-02 Thread Laurent Vivier
Le 31/10/2022 à 14:22, Stefan Weil via a écrit : Am 31.10.22 um 08:35 schrieb Thomas Huth: On 30/10/2022 11.59, Stefan Weil wrote: Most of them were found and fixed using codespell. Signed-off-by: Stefan Weil --- v2: Fixes from Peter Maydell's comments My focus was fixing typos which are r

Re: [PATCH] qapi: virtio: Fix the introduced version

2022-11-02 Thread Laurent Vivier
Le 01/11/2022 à 02:46, Han Han a écrit : 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 --- qapi/virtio.json | 34 +- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/

Re: [PATCH] tests/unit/test-io-channel-command: Silence GCC error "maybe-uninitialized"

2022-11-02 Thread Laurent Vivier
Le 01/11/2022 à 22:39, Bernhard Beschow a écrit : GCC issues a false positive warning, resulting in build failure with -Werror: In file included from /usr/lib/glib-2.0/include/glibconfig.h:9, from /usr/include/glib-2.0/glib/gtypes.h:34, from /usr/includ

Re: [PATCH v6 0/3] ppc/e500: Add support for eSDHC

2022-11-02 Thread Bernhard Beschow
On Tue, Nov 1, 2022 at 11:29 PM Philippe Mathieu-Daudé wrote: > This is a respin of Bernhard's v4 with Freescale eSDHC implemented > as an 'UNIMP' region. See v4 cover here: > > https://lore.kernel.org/qemu-devel/20221018210146.193159-1-shen...@gmail.com/ > > Since v5: > - Rebased (ppc-next merge

[PATCH 1/2] target/mips: Don't check COP1X for 64 bit FP mode

2022-11-02 Thread Jiaxun Yang
Some implementations (i.e. Loongson-2F) may decide to implement a 64 bit FPU without implmenting COP1X instructions. As the eligibility of 64 bit FP instructions is already determined by CP0St_FR, there is no need to check for COP1X again. Signed-off-by: Jiaxun Yang --- target/mips/tcg/translat

[PATCH 2/2] target/mips: Correct check for CABS instructions

2022-11-02 Thread Jiaxun Yang
Accroading to "MIPS Architecture for Programmers Volume IV-c: The MIPS-3D Application-Specific Extension to the MIPS64 Architecture" (MD00099). CABS.cond.fmt belongs to MIPS-3D ASE, and it has nothing to do with COP1X opcode. Remove all unnecessary COP1X checks and check for MIPS3D availability in

[PULL v2 00/82] pci,pc,virtio: features, tests, fixes, cleanups

2022-11-02 Thread Michael S. Tsirkin
Changes from v1: Applied and squashed fixes by Igor, Lei He, Hesham Almatary for bugs that tripped up the pipeline. Updated expected files for core-count test. The following changes since commit a11f65ec1b8adcb012b89c92819cbda4dc25aaf1: Merge tag 'block-pull-request' of https://gitlab.com/stef

Re: [PATCH] linux-user: always translate cmsg when recvmsg

2022-11-02 Thread Laurent Vivier
Le 28/10/2022 à 10:12, Icenowy Zheng a écrit : It's possible that a message contains both normal payload and ancillary data in the same message, and even if no ancillary data is available this information should be passed to the target, otherwise the target cmsghdr will be left uninitialized and

[PULL v2 25/82] tests/acpi: virt: update ACPI MADT and FADT binaries

2022-11-02 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 Le

Re: [PATCH] linux-user: Add strace output for timer_settime64() syscall

2022-11-02 Thread Laurent Vivier
Le 24/10/2022 à 22:45, Helge Deller a écrit : Add missing timer_settime64() strace output and specify format for timer_settime(). Signed-off-by: Helge Deller diff --git a/linux-user/strace.list b/linux-user/strace.list index cd995e5d56..3a898e2532 100644 --- a/linux-user/strace.list +++ b/linu

[PULL v2 23/82] acpi: fadt: support revision 6.0 of the ACPI specification

2022-11-02 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 ven

[PULL v2 46/82] virtio-net: support queue reset

2022-11-02 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() an

[PULL v2 38/82] virtio: core: vq reset feature negotation support

2022-11-02 Thread Michael S. Tsirkin
From: Kangjie Xu A a new command line parameter "queue_reset" is added. Meanwhile, the vq reset feature is disabled for pre-7.2 machines. Signed-off-by: Kangjie Xu Signed-off-by: Xuan Zhuo Acked-by: Jason Wang Message-Id: <20221017092558.111082-5-xuanz...@linux.alibaba.com> Reviewed-by: Mich

[PULL v2 43/82] vhost-net: vhost-kernel: introduce vhost_net_virtqueue_reset()

2022-11-02 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 vhost_virtque

[PULL v2 67/82] hw/i386/acpi-build: Remove unused struct

2022-11-02 Thread Michael S. Tsirkin
From: Bernhard Beschow Ammends commit b23046abe78f48498a423b802d6d86ba0172d57f 'pc: acpi-build: simplify PCI bus tree generation'. Signed-off-by: Bernhard Beschow Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20221026133110.91828-2-shen...@gmail.com> Message-Id: <20221028103419.93398-2-shen

[PULL v2 07/82] virtio-crypto: Support asynchronous mode

2022-11-02 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 --- include/sysemu/cryptodev.h

[PULL v2 31/82] vhost: Change the sequence of device start

2022-11-02 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 v2 49/82] virtio-net: enable vq reset feature

2022-11-02 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 a/

[PULL v2 79/82] intel-iommu: don't warn guest errors when getting rid2pasid entry

2022-11-02 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> Reviewed-

[PULL v2 58/82] acpi: enumerate SMB bridge automatically along with other PCI devices

2022-11-02 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: <20221017102146.2254096-8-ima

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

2022-11-02 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> Messag

[PULL v2 26/82] hw/pci: PCIe Data Object Exchange emulation

2022-11-02 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 protocols

[PULL v2 19/82] tests/acpi: allow changes for core_count2 test

2022-11-02 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 --- tests/qtest/bios-tables-test-allowe

Re: [PATCH] linux-user/hppa: Detect glibc ABORT_INSTRUCTION and EXCP_BREAK handler

2022-11-02 Thread Laurent Vivier
Le 27/10/2022 à 08:58, Helge Deller a écrit : The glibc on the hppa platform uses the "iitlbp %r0,(%sr0, %r0)" assembler instruction as ABORT_INSTRUCTION. If this (in userspace context) illegal assembler statement is found, dump the registers and report the failure to userspace the same way as th

[PULL v2 47/82] virtio-net: support queue_enable

2022-11-02 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 v2 48/82] vhost: vhost-kernel: enable vq reset feature

2022-11-02 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 v2 41/82] vhost: expose vhost_virtqueue_start()

2022-11-02 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. T

[PULL v2 18/82] bios-tables-test: teach test to use smbios 3.0 tables

2022-11-02 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> Message-

[PULL v2 52/82] acpi: pc: vga: use AcpiDevAmlIf interface to build VGA device descriptors

2022-11-02 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: A

[PULL v2 78/82] vfio: move implement of vfio_get_xlat_addr() to memory.c

2022-11-02 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 bac

[PULL v2 44/82] vhost-net: vhost-kernel: introduce vhost_net_virtqueue_restart()

2022-11-02 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 que

[PULL v2 63/82] hw/acpi/erst.c: Fix memory handling issues

2022-11-02 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: qemu-

Re: [PATCH v5] linux-user: Add close_range() syscall

2022-11-02 Thread Laurent Vivier
Le 25/10/2022 à 04:34, Helge Deller a écrit : Signed-off-by: Helge Deller --- Changes: v5: Simplify check of arg2 against target_fd_max even more v4: Fix check of arg2 v3: fd_trans_unregister() only called if close_range() doesn't fail v2: consider CLOSE_RANGE_CLOEXEC flag diff --git a/linux-us

[PULL v2 45/82] virtio-net: introduce flush_or_purge_queued_packets()

2022-11-02 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: <20221017092558.111082-12

[PULL v2 76/82] tests: acpi: aarch64/virt: add a test for hmat nodes with no initiators

2022-11-02 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 q

[PULL v2 72/82] tests: acpi: q35: add test for hmat nodes without initiators

2022-11-02 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 00

[PULL v2 42/82] vhost: expose vhost_virtqueue_stop()

2022-11-02 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. Tsi

[PULL v2 60/82] tests: acpi: pc/q35 whitelist DSDT before \_GPE cleanup

2022-11-02 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 --g

[PULL v2 66/82] hw/i386/pc.c: CXL Fixed Memory Window should not reserve e820 in bios

2022-11-02 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 RESERV

[PULL v2 69/82] hw/i386/acpi-build: Resolve north rather than south bridges

2022-11-02 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 ins

[PULL v2 61/82] acpi: pc/35: sanitize _GPE declaration order

2022-11-02 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 hidden

[PULL v2 71/82] tests: acpi: add and whitelist *.hmat-noinitiator expected blobs

2022-11-02 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

Re: [PATCH] linux-user: always translate cmsg when recvmsg

2022-11-02 Thread Laurent Vivier
Le 28/10/2022 à 10:12, Icenowy Zheng a écrit : It's possible that a message contains both normal payload and ancillary data in the same message, and even if no ancillary data is available this information should be passed to the target, otherwise the target cmsghdr will be left uninitialized and

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

2022-11-02 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 mai

[PULL v2 64/82] MAINTAINERS: Add qapi/virtio.json to section "virtio"

2022-11-02 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 v2 54/82] acpi: pc/q35: drop ad-hoc PCI-ISA bridge AML routines and let bus ennumeration generate AML

2022-11-02 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 build_q35_isa_bridge()/build_piix4_isa_bridge()

[PULL v2 36/82] virtio: introduce virtio_queue_reset()

2022-11-02 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: <20221017092558.111082-3-xuanz...@linux.alibaba

[PULL v2 65/82] msix: Assert that specified vector is in range

2022-11-02 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 out-o

[PULL v2 35/82] virtio: introduce __virtio_queue_reset()

2022-11-02 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 v2 77/82] tests: virt: Update expected *.acpihmatvirt tables

2022-11-02 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] Ch

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

2022-11-02 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 v2 30/82] hw/pci-bridge/cxl-upstream: Add a CDAT table access DOE

2022-11-02 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 v8:

[PULL v2 75/82] hw/arm/virt: Enable HMAT on arm virt machine

2022-11-02 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: <20221027100037.251-7-he

[PULL v2 73/82] tests: acpi: q35: update expected blobs *.hmat-noinitiators expected HMAT:

2022-11-02 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 v2 81/82] intel-iommu: convert VTD_PE_GET_FPD_ERR() to be a function

2022-11-02 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 fun

[PULL v2 68/82] hw/i386/acpi-build: Resolve redundant attribute

2022-11-02 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: <20221026133110.91828-3-shen...@gmail.com

[PULL v2 17/82] hw/smbios: add core_count2 to smbios table type 4

2022-11-02 Thread Michael S. Tsirkin
From: Julia Suvorova In order to use the increased number of cpus, we need to bring smbios tables in line with the SMBIOS 3.0 specification. This allows us to introduce core_count2 which acts as a duplicate of core_count if we have fewer cores than 256, and contains the actual core number per soc

[PULL v2 62/82] tests: acpi: update expected blobs

2022-11-02 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 v2 80/82] intel-iommu: drop VTDBus

2022-11-02 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 drop

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

2022-11-02 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 (Pstate

[PULL v2 51/82] vhost-user: Fix out of order vring host notification handling

2022-11-02 Thread Michael S. Tsirkin
From: Yajun Wu vhost backend sends host notification for every VQ. If backend creates VQs in parallel, the VHOST_USER_SLAVE_VRING_HOST_NOTIFIER_MSG may arrive to QEMU in different order than incremental queue index order. For example VQ 1's message arrive earlier than VQ 0's: After alloc VhostUs

[PULL v2 27/82] hw/mem/cxl-type3: Add MSIX support

2022-11-02 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 v2 55/82] tests: acpi: update expected DSDT after ISA bridge is moved directly under PCI host bridge

2022-11-02 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 v2 28/82] hw/cxl/cdat: CXL CDAT Data Object Exchange implementation

2022-11-02 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 co

[PULL v2 74/82] tests: Add HMAT AArch64/virt empty table files

2022-11-02 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 + tests/data/acpi/virt/APIC.acp

[PULL v2 57/82] acpi: add get_dev_aml_func() helper

2022-11-02 Thread Michael S. Tsirkin
From: Igor Mammedov It will be used in followup commits to figure out if device has it's own, device specific AML block. Signed-off-by: Igor Mammedov Message-Id: <20221017102146.2254096-7-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin Reviewed-by: Ani S

  1   2   3   >