Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-20 Thread Jean-Louis Dupond
On 19/10/2021 18:56, Eduardo Habkost wrote: On Tue, Oct 19, 2021 at 12:13:17PM -0400, Michael S. Tsirkin wrote: On Tue, Oct 19, 2021 at 11:29:13AM -0400, Eduardo Habkost wrote: On Tue, Oct 19, 2021 at 06:59:09AM -0400, Michael S. Tsirkin wrote: On Tue, Oct 19, 2021 at 11:46:17AM +0100, Stefan

Re: [PATCH v8 6/8] tests/data/acpi/virt: Add an empty expected file for PPTT

2021-10-20 Thread Eric Auger
Hi Yanan, On 10/14/21 3:22 PM, Yanan Wang wrote: > Add a generic empty binary file for the new introduced PPTT table > under tests/data/acpi/virt, and list it as files to be changed in> > tests/qtest/bios-tables-test-allowed-diff.h > > Signed-off-by: Yanan Wang > --- > tests/data/acpi/virt/PPTT

Re: [PATCH 1/6] numa: Enable numa for SGX EPC sections

2021-10-20 Thread Yang Zhong
On Mon, Oct 11, 2021 at 11:32:39AM -0500, Eric Blake wrote: > On Mon, Oct 11, 2021 at 07:15:49PM +0800, Yang Zhong wrote: > > The basic SGX did not enable numa for SGX EPC sections, which > > result in all EPC sections located in numa node 0. This patch > > enable SGX numa function in the guest and

Re: [PATCH 4/6] monitor: numa support for 'info sgx' command

2021-10-20 Thread Yang Zhong
On Tue, Oct 12, 2021 at 12:59:17PM +0200, Paolo Bonzini wrote: > On 11/10/21 13:15, Yang Zhong wrote: > >This patch can enable numa support for 'info sgx' command > >in the monitor, which can show detailed SGX EPC sections > >info. > > > >(qemu) info sgx > > SGX support: enabled > > SGX1 support:

Re: [PATCH 0/2] Support fd-based KVM stats

2021-10-20 Thread Paolo Bonzini
On 19/10/21 22:29, Mark Kanda wrote: This patchset adds QEMU support for querying fd-based KVM stats. The kernel support is provided by: cb082bfab59a ("KVM: stats: Add fd-based API to read binary stats data") Patch 1 adds QMP support; patch 2 adds HMP support. Hi Mark, that's awesome, thanks

Re: [PATCH v5 3/4] qapi/monitor: allow VNC display id in set/expire_password

2021-10-20 Thread Markus Armbruster
Stefan Reiter writes: > It is possible to specify more than one VNC server on the command line, > either with an explicit ID or the auto-generated ones à la "default", > "vnc2", "vnc3", ... > > It is not possible to change the password on one of these extra VNC > displays though. Fix this by addi

Re: [PATCH v5 4/4] qapi/monitor: only allow 'keep' SetPasswordAction for VNC and deprecate

2021-10-20 Thread Markus Armbruster
Stefan Reiter writes: > VNC only supports 'keep' here, enforce this via a seperate > SetPasswordActionVnc enum and mark the option 'deprecated' (as it is > useless with only one value possible). > > Suggested-by: Eric Blake > Signed-off-by: Stefan Reiter > --- > monitor/qmp-cmds.c | 5 - >

Re: [RFC PATCH v4 18/20] vhost: Add VhostIOVATree

2021-10-20 Thread Eugenio Perez Martin
On Tue, Oct 19, 2021 at 10:32 AM Jason Wang wrote: > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > This tree is able to look for a translated address from an IOVA address. > > > > At first glance is similar to util/iova-tree. However, SVQ working on > > devices with limited IOVA space need more ca

Re: [PATCH 1/2] qmp: Support fd-based KVM stats query

2021-10-20 Thread Paolo Bonzini
On 19/10/21 22:29, Mark Kanda wrote: +# +# @filter: KVM stat name (optional) Nitpicking on the name, "filter" makes me think that some kind of globbing is supported. So I would just call it "name". Also nitpicking on the name, let's drop "kvm" from everything. In the future other subsyste

Re: [PATCH] hw/qdev-core: Add compatibility for (non)-transitional devs

2021-10-20 Thread Michael S. Tsirkin
On Tue, Oct 19, 2021 at 12:56:11PM -0400, Eduardo Habkost wrote: > On Tue, Oct 19, 2021 at 12:13:17PM -0400, Michael S. Tsirkin wrote: > > On Tue, Oct 19, 2021 at 11:29:13AM -0400, Eduardo Habkost wrote: > > > On Tue, Oct 19, 2021 at 06:59:09AM -0400, Michael S. Tsirkin wrote: > > > > On Tue, Oct 1

Re: [PATCH v8 4/8] hw/acpi/aml-build: Add Processor hierarchy node structure

2021-10-20 Thread Eric Auger
Hi On 10/14/21 3:22 PM, Yanan Wang wrote: > Add a generic API to build Processor hierarchy node structure (Type 0), > which is strictly consistent with descriptions in ACPI 6.2: 5.2.29.1. > > This function will be used to build ACPI PPTT table for cpu topology. > > Co-developed-by: Ying Fang >

Re: [RFC PATCH v4 18/20] vhost: Add VhostIOVATree

2021-10-20 Thread Eugenio Perez Martin
On Tue, Oct 19, 2021 at 11:23 AM Jason Wang wrote: > > On Tue, Oct 19, 2021 at 4:32 PM Jason Wang wrote: > > > > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > > This tree is able to look for a translated address from an IOVA address. > > > > > > At first glance is similar to util/iova-tree. Howev

Re: [PATCH v2 1/2] rcu: Introduce force_rcu notifier

2021-10-20 Thread Greg Kurz
On Tue, 19 Oct 2021 13:26:25 +0200 Paolo Bonzini wrote: > On 19/10/21 07:56, Greg Kurz wrote: > > The drain_rcu_call() function can be blocked as long as an RCU reader > > stays in a read-side critical section. This is typically what happens > > when a TCG vCPU is executing a busy loop. It can de

Re: [PATCH v7 16/21] target/loongarch: Add disassembler

2021-10-20 Thread Song Gao
Hi, all. On 10/19/2021 02:57 AM, Philippe Mathieu-Daudé wrote: > On 10/18/21 20:33, Richard Henderson wrote: >> On 10/18/21 11:18 AM, WANG Xuerui wrote: >>> On 10/19/21 01:29, Richard Henderson wrote: On 10/18/21 8:38 AM, WANG Xuerui wrote: > > For now any implementation would suffice

Re: [PATCH v8 5/8] hw/acpi/aml-build: Add PPTT table

2021-10-20 Thread Eric Auger
Hi, On 10/14/21 3:22 PM, Yanan Wang wrote: > From: Andrew Jones > > Add the Processor Properties Topology Table (PPTT) used to > describe CPU topology information to ACPI guests. > > Note, a DT-boot Linux guest with a non-flat CPU topology will > see socket and core IDs being sequential integer

Re: [PATCH v8 7/8] hw/arm/virt-acpi-build: Generate PPTT table

2021-10-20 Thread Eric Auger
Hi On 10/14/21 3:22 PM, Yanan Wang wrote: > Generate PPTT table for Arm virt machines. Generate the Processor Properties Topology Table (PPTT) for ARM virt machines supporting it (>= 6.2) > > Signed-off-by: Yanan Wang > Reviewed-by: Andrew Jones > --- > hw/arm/virt-acpi-build.c | 8 +++- >

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Igor Mammedov
On Tue, 19 Oct 2021 07:44:38 -0400 "Michael S. Tsirkin" wrote: > On Tue, Oct 19, 2021 at 01:36:24PM +0200, Igor Mammedov wrote: > > On Tue, 19 Oct 2021 06:23:40 -0400 > > "Michael S. Tsirkin" wrote: > > > > > On Tue, Oct 19, 2021 at 11:48:25AM +0200, Igor Mammedov wrote: > > > > On Mon, 18

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2021 at 10:16:07AM +0200, Igor Mammedov wrote: > On Tue, 19 Oct 2021 07:44:38 -0400 > "Michael S. Tsirkin" wrote: > > > On Tue, Oct 19, 2021 at 01:36:24PM +0200, Igor Mammedov wrote: > > > On Tue, 19 Oct 2021 06:23:40 -0400 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Tu

Re: [PATCH 3/6] numa: Add SGXEPCSection list for multiple sections

2021-10-20 Thread Yang Zhong
On Mon, Oct 11, 2021 at 12:03:24PM -0500, Eric Blake wrote: > On Mon, Oct 11, 2021 at 07:15:51PM +0800, Yang Zhong wrote: > > The SGXEPCSection list added into SGXInfo to show the multiple > > SGX EPC sections detailed info, not the total size like before. > > > > Signed-off-by: Yang Zhong > > --

Re: [PATCH 3/6] numa: Add SGXEPCSection list for multiple sections

2021-10-20 Thread Yang Zhong
On Tue, Oct 12, 2021 at 01:01:34PM +0200, Paolo Bonzini wrote: > On 11/10/21 13:15, Yang Zhong wrote: > >The SGXEPCSection list added into SGXInfo to show the multiple > >SGX EPC sections detailed info, not the total size like before. > > > >Signed-off-by: Yang Zhong > >--- > > qapi/misc-target.j

Re: [PATCH v2 0/5] aspeed/smc: Improve support for the alternate boot function

2021-10-20 Thread Cédric Le Goater
On 10/20/21 06:57, Peter Delevoryas wrote: On Oct 18, 2021, at 6:26 AM, Cédric Le Goater wrote: Hello, The Aspeed SoCs have a dual boot function for firmware fail-over recovery. The system auto-reboots from the second flash if the main flash does not boot successfully within a certain amoun

Re: [PATCH 1/6] hw/riscv: microchip_pfsoc: Use MachineState::ram and MachineClass::default_ram_id

2021-10-20 Thread Igor Mammedov
On Wed, 20 Oct 2021 09:55:52 +0800 Bin Meng wrote: > Hi Igor, > > On Tue, Oct 19, 2021 at 3:39 PM Igor Mammedov wrote: > > > > On Mon, 18 Oct 2021 23:38:24 +0800 > > Bin Meng wrote: > > > > > Using memory_region_init_ram(), which can't possibly handle vhost-user, > > > and can't work as expe

Re: [PULL 00/29] pc,pci,virtio: features, fixes

2021-10-20 Thread Igor Mammedov
On Tue, 19 Oct 2021 11:38:08 -0700 Richard Henderson wrote: > On 10/19/21 4:19 AM, Michael S. Tsirkin wrote: > > The following changes since commit 9c050b661d3a43dfe2fd44106e559b39706d1296: > > > >Merge remote-tracking branch 'remotes/philmd/tags/mips-20211018' into > > staging (2021-10-18

Re: [PATCH v3 0/3] tests/acpi/pcihp: add unit tests for hotplug on multifunction bridges for q35

2021-10-20 Thread Michael S. Tsirkin
On Thu, Oct 07, 2021 at 07:27:47PM +0530, Ani Sinha wrote: > changelist: > v3: removed "nodefaults" from the command line and rebased the patchset. > v2: incorporated some of the feedbacks from Igor. > v1 : initial RFC patch. This seems to break on s390 hosts for people. Likely an endian-ness bug

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Igor Mammedov
On Wed, 20 Oct 2021 04:18:07 -0400 "Michael S. Tsirkin" wrote: > On Wed, Oct 20, 2021 at 10:16:07AM +0200, Igor Mammedov wrote: > > On Tue, 19 Oct 2021 07:44:38 -0400 > > "Michael S. Tsirkin" wrote: > > > > > On Tue, Oct 19, 2021 at 01:36:24PM +0200, Igor Mammedov wrote: > > > > On Tue, 19

Re: [PATCH v7 02/21] target/loongarch: Add core definition

2021-10-20 Thread Song Gao
Hi, Xuerui, Philippe. On 10/19/2021 01:38 AM, Philippe Mathieu-Daudé wrote: > On 10/18/21 18:06, WANG Xuerui wrote: >> Hi Song, >> >> On 10/18/21 20:47, Song Gao wrote: >>> This patch add target state header, target definitions >>> and initialization routines. >> "adds"; fix in other patches too.

Re: [PATCH] ide: Cap LBA28 capacity announcement to 2^28-1

2021-10-20 Thread Kevin Wolf
Am 06.10.2021 um 01:57 hat Samuel Thibault geschrieben: > Ping? > > Samuel Thibault, le mar. 24 août 2021 12:43:44 +0200, a ecrit: > > The LBA28 capacity (at offsets 60/61 of identification) is supposed to > > express the maximum size supported by LBA28 commands. If the device is > > larger than t

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Thomas Huth
On 20/10/2021 10.53, Igor Mammedov wrote: On Wed, 20 Oct 2021 04:18:07 -0400 "Michael S. Tsirkin" wrote: On Wed, Oct 20, 2021 at 10:16:07AM +0200, Igor Mammedov wrote: On Tue, 19 Oct 2021 07:44:38 -0400 "Michael S. Tsirkin" wrote: On Tue, Oct 19, 2021 at 01:36:24PM +0200, Igor Mammedov

Re: Deprecate the ppc405 boards in QEMU?

2021-10-20 Thread Christophe Leroy
Le 19/10/2021 à 23:30, Cédric Le Goater a écrit : On 10/19/21 18:12, Christophe Leroy wrote: Le 19/10/2021 à 16:56, BALATON Zoltan a écrit : On Tue, 19 Oct 2021, Christophe Leroy wrote: Le 19/10/2021 à 15:44, Christophe Leroy a écrit : There is something: => bootm 0 Wrong Image Format f

Re: [RFC PATCH v4 18/20] vhost: Add VhostIOVATree

2021-10-20 Thread Jason Wang
On Wed, Oct 20, 2021 at 3:54 PM Eugenio Perez Martin wrote: > > On Tue, Oct 19, 2021 at 11:23 AM Jason Wang wrote: > > > > On Tue, Oct 19, 2021 at 4:32 PM Jason Wang wrote: > > > > > > > > > 在 2021/10/1 下午3:06, Eugenio Pérez 写道: > > > > This tree is able to look for a translated address from an

Re: [PATCH v4 01/12] virtiofsd: Keep /proc/self/mountinfo open

2021-10-20 Thread Hanna Reitz
On 18.10.21 19:07, Vivek Goyal wrote: On Thu, Sep 16, 2021 at 10:40:34AM +0200, Hanna Reitz wrote: File handles are specific to mounts, and so name_to_handle_at() returns the respective mount ID. However, open_by_handle_at() is not content with an ID, it wants a file descriptor for some inode o

Re: [RFC PATCH v4 20/20] vdpa: Add custom IOTLB translations to SVQ

2021-10-20 Thread Jason Wang
On Wed, Oct 20, 2021 at 2:52 PM Eugenio Perez Martin wrote: > > On Wed, Oct 20, 2021 at 4:07 AM Jason Wang wrote: > > > > On Wed, Oct 20, 2021 at 10:02 AM Jason Wang wrote: > > > > > > On Tue, Oct 19, 2021 at 6:29 PM Eugenio Perez Martin > > > wrote: > > > > > > > > On Tue, Oct 19, 2021 at 11:2

Re: [PATCH v2 05/15] tests: acpi: update expected tables blobs

2021-10-20 Thread Igor Mammedov
On Tue, 19 Oct 2021 06:27:26 -0400 "Michael S. Tsirkin" wrote: > On Tue, Oct 19, 2021 at 11:56:32AM +0200, Igor Mammedov wrote: > > On Mon, 18 Oct 2021 16:37:28 -0400 > > "Michael S. Tsirkin" wrote: > > > > > On Thu, Sep 02, 2021 at 07:35:41AM -0400, Igor Mammedov wrote: > > > > Update adds

Re: [PATCH v4 02/12] virtiofsd: Limit setxattr()'s creds-dropped region

2021-10-20 Thread Hanna Reitz
On 18.10.21 19:20, Vivek Goyal wrote: On Thu, Sep 16, 2021 at 10:40:35AM +0200, Hanna Reitz wrote: We only need to drop/switch our credentials for the (f)setxattr() call alone, not for the openat() or fchdir() around it. (Right now, this may not be that big of a problem, but with inodes being i

Re: [PATCH v4 07/12] virtiofsd: Let lo_inode_open() return a TempFd

2021-10-20 Thread Hanna Reitz
On 18.10.21 21:18, Vivek Goyal wrote: On Thu, Sep 16, 2021 at 10:40:40AM +0200, Hanna Reitz wrote: Strictly speaking, this is not necessary, because lo_inode_open() will always return a new FD owned by the caller, so TempFd.owned will always be true. The auto-cleanup is nice, though. Also, we

Re: [PULL 00/29] pc,pci,virtio: features, fixes

2021-10-20 Thread Thomas Huth
On 20/10/2021 10.39, Igor Mammedov wrote: On Tue, 19 Oct 2021 11:38:08 -0700 Richard Henderson wrote: On 10/19/21 4:19 AM, Michael S. Tsirkin wrote: The following changes since commit 9c050b661d3a43dfe2fd44106e559b39706d1296: Merge remote-tracking branch 'remotes/philmd/tags/mips-2021101

Re: [PULL 00/29] pc,pci,virtio: features, fixes

2021-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2021 at 11:39:28AM +0200, Thomas Huth wrote: > On 20/10/2021 10.39, Igor Mammedov wrote: > > On Tue, 19 Oct 2021 11:38:08 -0700 > > Richard Henderson wrote: > > > > > On 10/19/21 4:19 AM, Michael S. Tsirkin wrote: > > > > The following changes since commit > > > > 9c050b661d3a43d

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Igor Mammedov
On Wed, 20 Oct 2021 10:58:55 +0200 Thomas Huth wrote: > On 20/10/2021 10.53, Igor Mammedov wrote: > > On Wed, 20 Oct 2021 04:18:07 -0400 > > "Michael S. Tsirkin" wrote: > > > >> On Wed, Oct 20, 2021 at 10:16:07AM +0200, Igor Mammedov wrote: > >>> On Tue, 19 Oct 2021 07:44:38 -0400 > >>> "Mi

Re: [PATCH v2 05/15] tests: acpi: update expected tables blobs

2021-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2021 at 11:05:21AM +0200, Igor Mammedov wrote: > On Tue, 19 Oct 2021 06:27:26 -0400 > "Michael S. Tsirkin" wrote: > > > On Tue, Oct 19, 2021 at 11:56:32AM +0200, Igor Mammedov wrote: > > > On Mon, 18 Oct 2021 16:37:28 -0400 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Th

Re: [PULL 00/29] pc,pci,virtio: features, fixes

2021-10-20 Thread Thomas Huth
On 20/10/2021 11.41, Michael S. Tsirkin wrote: On Wed, Oct 20, 2021 at 11:39:28AM +0200, Thomas Huth wrote: On 20/10/2021 10.39, Igor Mammedov wrote: On Tue, 19 Oct 2021 11:38:08 -0700 Richard Henderson wrote: On 10/19/21 4:19 AM, Michael S. Tsirkin wrote: The following changes since commit

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2021 at 10:53:48AM +0200, Igor Mammedov wrote: > On Wed, 20 Oct 2021 04:18:07 -0400 > "Michael S. Tsirkin" wrote: > > > On Wed, Oct 20, 2021 at 10:16:07AM +0200, Igor Mammedov wrote: > > > On Tue, 19 Oct 2021 07:44:38 -0400 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Tu

Re: [PATCH v8 5/8] hw/acpi/aml-build: Add PPTT table

2021-10-20 Thread wangyanan (Y)
Hi Eric, On 2021/10/20 16:02, Eric Auger wrote: Hi, On 10/14/21 3:22 PM, Yanan Wang wrote: From: Andrew Jones Add the Processor Properties Topology Table (PPTT) used to describe CPU topology information to ACPI guests. Note, a DT-boot Linux guest with a non-flat CPU topology will see socket

Re: [PATCH v8 4/8] hw/acpi/aml-build: Add Processor hierarchy node structure

2021-10-20 Thread wangyanan (Y)
On 2021/10/20 15:43, Eric Auger wrote: Hi On 10/14/21 3:22 PM, Yanan Wang wrote: Add a generic API to build Processor hierarchy node structure (Type 0), which is strictly consistent with descriptions in ACPI 6.2: 5.2.29.1. This function will be used to build ACPI PPTT table for cpu topology.

Re: [PATCH v8 7/8] hw/arm/virt-acpi-build: Generate PPTT table

2021-10-20 Thread wangyanan (Y)
On 2021/10/20 16:05, Eric Auger wrote: Hi On 10/14/21 3:22 PM, Yanan Wang wrote: Generate PPTT table for Arm virt machines. Generate the Processor Properties Topology Table (PPTT) for ARM virt machines supporting it (>= 6.2) Ok, much clearer. I will add it to the commit msg. Thanks, Yanan

[PATCH] pci: fix PCI resource reserve capability on BE

2021-10-20 Thread Michael S. Tsirkin
PCI resource reserve capability should use LE format as all other PCI things. If we don't then seabios won't boot: === PCI new allocation pass #1 === PCI: check devices PCI: QEMU resource reserve cap: size 10 type io PCI: secondary bus 1 size 10 type io PCI: secondary bus 1

Re: [PATCH v2 05/15] tests: acpi: update expected tables blobs

2021-10-20 Thread Igor Mammedov
On Wed, 20 Oct 2021 05:45:03 -0400 "Michael S. Tsirkin" wrote: > On Wed, Oct 20, 2021 at 11:05:21AM +0200, Igor Mammedov wrote: > > On Tue, 19 Oct 2021 06:27:26 -0400 > > "Michael S. Tsirkin" wrote: > > > > > On Tue, Oct 19, 2021 at 11:56:32AM +0200, Igor Mammedov wrote: > > > > On Mon, 18

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Igor Mammedov
On Wed, 20 Oct 2021 05:46:40 -0400 "Michael S. Tsirkin" wrote: > On Wed, Oct 20, 2021 at 10:53:48AM +0200, Igor Mammedov wrote: > > On Wed, 20 Oct 2021 04:18:07 -0400 > > "Michael S. Tsirkin" wrote: > > > > > On Wed, Oct 20, 2021 at 10:16:07AM +0200, Igor Mammedov wrote: > > > > On Tue, 19

Re: [PATCH v2 05/15] tests: acpi: update expected tables blobs

2021-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2021 at 11:57:55AM +0200, Igor Mammedov wrote: > On Wed, 20 Oct 2021 05:45:03 -0400 > "Michael S. Tsirkin" wrote: > > > On Wed, Oct 20, 2021 at 11:05:21AM +0200, Igor Mammedov wrote: > > > On Tue, 19 Oct 2021 06:27:26 -0400 > > > "Michael S. Tsirkin" wrote: > > > > > > > On Tu

Re: [PATCH v8 4/8] hw/acpi/aml-build: Add Processor hierarchy node structure

2021-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2021 at 05:51:46PM +0800, wangyanan (Y) wrote: > > On 2021/10/20 15:43, Eric Auger wrote: > > Hi > > > > On 10/14/21 3:22 PM, Yanan Wang wrote: > > > Add a generic API to build Processor hierarchy node structure (Type 0), > > > which is strictly consistent with descriptions in ACP

Re: [PATCH v4 11/12] virtiofsd: Optionally fill lo_inode.fhandle

2021-10-20 Thread Hanna Reitz
On 19.10.21 20:57, Vivek Goyal wrote: On Thu, Sep 16, 2021 at 10:40:44AM +0200, Hanna Reitz wrote: When the inode_file_handles option is set, try to generate a file handle for new inodes instead of opening an O_PATH FD. Being able to open these again will require CAP_DAC_READ_SEARCH, so setting

Re: [PATCH] pci: fix PCI resource reserve capability on BE

2021-10-20 Thread Philippe Mathieu-Daudé
On 10/20/21 11:54, Michael S. Tsirkin wrote: > PCI resource reserve capability should use LE format as all other PCI > things. If we don't then seabios won't boot: > > === PCI new allocation pass #1 === > PCI: check devices > PCI: QEMU resource reserve cap: size 10 type io > PCI: secon

Re: [PATCH v2 04/15] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Michael S. Tsirkin
On Wed, Oct 20, 2021 at 12:01:49PM +0200, Igor Mammedov wrote: > On Wed, 20 Oct 2021 05:46:40 -0400 > "Michael S. Tsirkin" wrote: > > > On Wed, Oct 20, 2021 at 10:53:48AM +0200, Igor Mammedov wrote: > > > On Wed, 20 Oct 2021 04:18:07 -0400 > > > "Michael S. Tsirkin" wrote: > > > > > > > On We

Re: [PATCH v4 10/12] virtiofsd: Add inodes_by_handle hash table

2021-10-20 Thread Hanna Reitz
On 19.10.21 22:02, Vivek Goyal wrote: On Thu, Sep 16, 2021 at 10:40:43AM +0200, Hanna Reitz wrote: Currently, lo_inode.fhandle is always NULL and so always keep an O_PATH FD in lo_inode.fd. Therefore, when the respective inode is unlinked, its inode ID will remain in use until we drop our lo_in

Re: Deprecate the ppc405 boards in QEMU?

2021-10-20 Thread Cédric Le Goater
On 10/20/21 11:02, Christophe Leroy wrote: Le 19/10/2021 à 23:30, Cédric Le Goater a écrit : On 10/19/21 18:12, Christophe Leroy wrote: Le 19/10/2021 à 16:56, BALATON Zoltan a écrit : On Tue, 19 Oct 2021, Christophe Leroy wrote: Le 19/10/2021 à 15:44, Christophe Leroy a écrit : There is

CLI: Using -bios AND -kernel

2021-10-20 Thread Philippe Mathieu-Daudé
Hi John / Paolo / Markus, On 10/19/21 12:07, BALATON Zoltan wrote: > On Tue, 19 Oct 2021, Christophe Leroy wrote: >> Le 19/10/2021 à 11:39, Thomas Huth a écrit : >>> On 19/10/2021 11.31, Christophe Leroy wrote: [...] >> I use the following command, but it does nothing, it stays in uboot >> prompt

[PULL v2 01/44] tests: acpi: dump table with failed checksum

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-2-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/acpi-utils.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/tests/qtest/acpi-utils.

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

2021-10-20 Thread Michael S. Tsirkin
The following changes since commit 50352cce138ef3b30c1cda28a4df68fff5da3202: Merge remote-tracking branch 'remotes/juanquintela/tags/migration.next-pull-request' into staging (2021-10-19 07:41:04 -0700) are available in the Git repository at: git://git.kernel.org/pub/scm/virt/kvm/mst/qemu.

[PULL v2 05/44] tests: acpi: update expected tables blobs

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Update adds CPU entries to MADT/SRAT/FACP and DSDT to cover 288 CPUs. Notable changes are that CPUs with APIC ID 255 and higher use 'Processor Local x2APIC Affinity' structure in SRAT and "Device" element in DSDT. FACP: - Use APIC Cluster Model (V4) : 0 +

[PATCH v15 1/8] [RISCV_PM] Add J-extension into RISC-V

2021-10-20 Thread Alexey Baturo
Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis Reviewed-by: Bin Meng --- target/riscv/cpu.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/target/riscv/cpu.h b/target/riscv/cpu.h index 9e55b2f5b1..3f28dc5f3a 100644 --- a/target/riscv/cpu.h +++

[PULL v2 04/44] tests: acpi: q35: test for x2APIC entries in SRAT

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Set -smp 1,maxcpus=288 to test for ACPI code that deal with CPUs with large APIC ID (>255). PS: Test requires KVM and in-kernel irqchip support, so skip test if KVM is not available. Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-5-imamm...@redhat.com> Revi

[PULL v2 02/44] tests: qtest: add qtest_has_accel() to check if tested binary supports accelerator

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Currently it is not possible to create tests that have KVM as a hard requirement on a host that doesn't support KVM for tested target binary (modulo going through the trouble of compiling out the offending test case). Following scenario makes test fail when it's run on non x8

[PATCH v15 4/8] [RISCV_PM] Add J extension state description

2021-10-20 Thread Alexey Baturo
Signed-off-by: Alexey Baturo --- target/riscv/machine.c | 27 +++ 1 file changed, 27 insertions(+) diff --git a/target/riscv/machine.c b/target/riscv/machine.c index 16a08302da..ae82f82525 100644 --- a/target/riscv/machine.c +++ b/target/riscv/machine.c @@ -84,6 +84,14 @@

[PATCH v15 5/8] [RISCV_PM] Print new PM CSRs in QEMU logs

2021-10-20 Thread Alexey Baturo
Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 25 + 1 file changed, 25 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 75e8b8ca83..7f9dde70b7 100644 --- a/target/riscv/cpu.c ++

[PULL v2 03/44] tests: acpi: whitelist expected tables for acpi/q35/xapic testcase

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-4-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 4 tests/data/acpi/q35/APIC.xapic | 0 tests/data/ac

[PULL v2 06/44] tests: acpi: whitelist new expected table tests/data/acpi/q35/DMAR.dmar

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-7-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 1 + tests/data/acpi/q35/DMAR.dmar | 0 2 files changed,

[PULL v2 14/44] tests: migration-test: use qtest_has_accel() API

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Suggested-by: Thomas Huth Message-Id: <20210902113551.461632-15-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/migration-test.c | 15 --- 1 file changed, 4 insertions(+), 11 d

[PATCH v15 8/8] [RISCV_PM] Allow experimental J-ext to be turned on

2021-10-20 Thread Alexey Baturo
Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis Reviewed-by: Bin Meng Reviewed-by: Richard Henderson --- target/riscv/cpu.c | 4 1 file changed, 4 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 7f9dde70b7..fb08c0ffb8 100644 --- a/target/riscv/cpu.c ++

[PULL v2 08/44] tests: acpi: add expected blob for DMAR table

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov [000h 4]Signature : "DMAR"[DMA Remapping table] [004h 0004 4] Table Length : 0078 [008h 0008 1] Revision : 01 [009h 0009 1] Checksum : 15 [00Ah 0010 6] Oem

[PULL v2 17/44] vdpa: Add vhost_vdpa_section_end

2021-10-20 Thread Michael S. Tsirkin
From: Eugenio Pérez Abstract this operation, that will be reused when validating the region against the iova range that the device supports. Signed-off-by: Eugenio Pérez Acked-by: Jason Wang Message-Id: <20211014141236.923287-3-epere...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-b

[PULL v2 07/44] tests: acpi: add testcase for intel_iommu (DMAR table)

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-8-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test.c | 13 + 1 file changed, 13 insertions(+) diff --git a/tests/qtest/bios-t

[PULL v2 13/44] tests: arm-cpu-features: use qtest_has_kvm() API

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov and drop custom function that were doing the job Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-14-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/arm-cpu-features.c | 29 +

[PULL v2 09/44] tests: acpi: whitelist expected blobs for new acpi/q35/ivrs testcase

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-10-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test-allowed-diff.h | 2 ++ tests/data/acpi/q35/DSDT.ivrs | 0 tests/data/acp

[PULL v2 10/44] tests: acpi: add testcase for amd-iommu (IVRS table)

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-11-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test.c | 13 + 1 file changed, 13 insertions(+) diff --git a/tests/qtest/bios-

[PULL v2 28/44] qdev/qbus: remove failover specific code

2021-10-20 Thread Michael S. Tsirkin
From: Laurent Vivier Commit f3a850565693 ("qdev/qbus: add hidden device support") has introduced a generic way to hide a device but it has modified qdev_device_add() to check a specific option of the failover device, "failover_pair_id", before calling the generic mechanism. It's not needed (and

[PULL v2 11/44] tests: acpi: update expected blobs

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov DSDT: +Device (S10) +{ +Name (_ADR, 0x0002) // _ADR: Address +} New IVRS table: [000h 4]Signature : "IVRS"[I/O Virtualization Reporting Structure] [004h 0004 4] Table L

[PULL v2 15/44] tests: bios-tables-test: use qtest_has_accel() API to register TCG only tests

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov .. only if TCG is available Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-16-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test.c | 28 +--- 1 file changed, 13

[PULL v2 32/44] vhost-vdpa: classify one time request

2021-10-20 Thread Michael S. Tsirkin
From: Jason Wang Vhost-vdpa uses one device multiqueue queue (pairs) model. So we need to classify the one time request (e.g SET_OWNER) and make sure those request were only called once per device. This is used for multiqueue support. Signed-off-by: Jason Wang Message-Id: <20211020045600.16082

[PATCH v15 0/8] RISC-V Pointer Masking implementation

2021-10-20 Thread Alexey Baturo
v14: Addressed Richard's comments from previous series. v13: Rebased QEMU and addressed Richard's comment. v12: Updated function for adjusting address with pointer masking to allocate and use temp register. v11: Addressed a few style issues Alistair mentioned in the previous review. If this pa

[PATCH v15 6/8] [RISCV_PM] Support pointer masking for RISC-V for i/c/f/d/a types of instructions

2021-10-20 Thread Alexey Baturo
Signed-off-by: Alexey Baturo Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/insn_trans/trans_rva.c.inc | 3 +++ target/riscv/insn_trans/trans_rvd.c.inc | 2 ++ target/riscv/insn_trans/trans_rvf.c.inc | 2 ++ target/riscv/insn_trans/trans_rvi.c.inc | 2 ++ target/r

[PULL v2 16/44] vdpa: Skip protected ram IOMMU mappings

2021-10-20 Thread Michael S. Tsirkin
From: Eugenio Pérez Following the logic of commit 56918a126ae ("memory: Add RAM_PROTECTED flag to skip IOMMU mappings") with VFIO, skip memory sections inaccessible via normal mechanisms, including DMA. Signed-off-by: Eugenio Pérez Acked-by: Jason Wang Message-Id: <20211014141236.923287-2-eper

[PATCH v15 2/8] [RISCV_PM] Add CSR defines for RISC-V PM extension

2021-10-20 Thread Alexey Baturo
Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu_bits.h | 96 + 1 file changed, 96 insertions(+) diff --git a/target/riscv/cpu_bits.h b/target/riscv/cpu_bits.h index 999187a9ee..1a3767804a 100644 --- a/target/riscv/cpu_bits.

[PULL v2 23/44] vhost-user-rng-pci: Add vhost-user-rng-pci implementation

2021-10-20 Thread Michael S. Tsirkin
From: Mathieu Poirier This patch provides a PCI bus interface to the vhost-user-rng backend. Reviewed-by: Alex Bennée Signed-off-by: Mathieu Poirier Message-Id: <20211012205904.4106769-3-mathieu.poir...@linaro.org> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirkin --- hw/vir

[PULL v2 39/44] virtio-net: vhost control virtqueue support

2021-10-20 Thread Michael S. Tsirkin
From: Jason Wang This patch implements the control virtqueue support for vhost. This requires virtio-net to figure out the datapath queue pairs and control virtqueue via is_datapath and pass the number of those two types of virtqueues to vhost_net_start()/vhost_net_stop(). Signed-off-by: Jason W

[PULL v2 19/44] virtio-iommu: Remove the non transitional name

2021-10-20 Thread Michael S. Tsirkin
From: Eric Auger Remove the non transitional name for virtio iommu. Like other devices introduced after 1.0 spec, the virtio-iommu does not need it. Signed-off-by: Eric Auger Reported-by: Andrea Bolognani Reviewed-by: Cornelia Huck Message-Id: <20211013191755.767468-2-eric.au...@redhat.com> R

[PATCH v15 3/8] [RISCV_PM] Support CSRs required for RISC-V PM extension except for the h-mode

2021-10-20 Thread Alexey Baturo
Signed-off-by: Alexey Baturo Reviewed-by: Alistair Francis --- target/riscv/cpu.c | 2 + target/riscv/cpu.h | 11 ++ target/riscv/csr.c | 285 + 3 files changed, 298 insertions(+) diff --git a/target/riscv/cpu.c b/target/riscv/cpu.c index 1d69d1887

[PULL v2 25/44] vhost-user: fix duplicated notifier MR init

2021-10-20 Thread Michael S. Tsirkin
From: Xueming Li In case of device resume after suspend, VQ notifier MR still valid. Duplicated registrations explode memory block list and slow down device resume. Fixes: 44866521bd6e ("vhost-user: support registering external host notifiers") Cc: tiwei@intel.com Cc: qemu-sta...@nongnu.org

[PULL v2 40/44] vhost-vdpa: multiqueue support

2021-10-20 Thread Michael S. Tsirkin
From: Jason Wang This patch implements the multiqueue support for vhost-vdpa. This is done simply by reading the number of queue pairs from the config space and initialize the datapath and control path net client. Signed-off-by: Jason Wang Message-Id: <20211020045600.16082-11-jasow...@redhat.co

[PULL v2 26/44] failover: fix a regression introduced by JSON'ification of -device

2021-10-20 Thread Michael S. Tsirkin
From: Laurent Vivier The hide_device helper can be called several times for the same devices as it shouldn't change any state and should only return an information. But not to rely anymore on QemuOpts we have introduced a new field to store the parameters of the device and don't allow to update

[PULL v2 42/44] tests/acpi/bios-tables-test: add and allow changes to a new q35 DSDT table blob

2021-10-20 Thread Michael S. Tsirkin
From: Ani Sinha We are adding a new unit test to cover the acpi hotplug support in q35 for multi-function bridges. This test uses a new table DSDT.multi-bridge. We need to allow changes in DSDT acpi table for addition of this new unit test. Signed-off-by: Ani Sinha Message-Id: <20211007135750.1

[PULL v2 29/44] rebuild-expected-aml.sh: allow partial target list

2021-10-20 Thread Michael S. Tsirkin
Only rebuild AML for configured targets. Signed-off-by: Michael S. Tsirkin --- tests/data/acpi/rebuild-expected-aml.sh | 22 +- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/tests/data/acpi/rebuild-expected-aml.sh b/tests/data/acpi/rebuild-expected-aml.sh ind

[PULL v2 12/44] tests: acpi: arm/virt: drop redundant test_acpi_one() in test_acpi_virt_tcg()

2021-10-20 Thread Michael S. Tsirkin
From: Igor Mammedov follow up call with smbios options generates the same ACPI tables, so there is no need to run smbios-less variant at all. Signed-off-by: Igor Mammedov Message-Id: <20210902113551.461632-13-imamm...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. Tsirki

[PULL v2 43/44] tests/acpi/pcihp: add unit tests for hotplug on multifunction bridges for q35

2021-10-20 Thread Michael S. Tsirkin
From: Ani Sinha commit d7346e614f4ec ("acpi: x86: pcihp: add support hotplug on multifunction bridges") added ACPI hotplug descriptions for cold plugged bridges for functions other than 0. For all other devices, the ACPI hotplug descriptions are limited to function 0 only. This change adds unit

[PULL v2 30/44] bios-tables-test: don't disassemble empty files

2021-10-20 Thread Michael S. Tsirkin
A recommended way to populate new tables is to have an empty expected file. In this case, attempts to disassemble will fail but it is useful to disassemble the actual files. Detect and skip decompile step in this case. Signed-off-by: Michael S. Tsirkin --- tests/qtest/bios-tables-test.c | 32 +++

[PATCH v15 7/8] [RISCV_PM] Implement address masking functions required for RISC-V Pointer Masking extension

2021-10-20 Thread Alexey Baturo
From: Anatoly Parshintsev Signed-off-by: Anatoly Parshintsev Reviewed-by: Richard Henderson Reviewed-by: Alistair Francis --- target/riscv/cpu.h | 20 target/riscv/translate.c | 39 +-- 2 files changed, 57 insertions(+), 2 deletio

[PULL v2 22/44] vhost-user-rng: Add vhost-user-rng implementation

2021-10-20 Thread Michael S. Tsirkin
From: Mathieu Poirier Introduce a random number generator (RNG) backend that communicates with a vhost-user server to retrieve entropy. That way other VMM that comply with the vhost user protocl can use the same vhost-user daemon without having to write yet another RNG driver. Reviewed-by: Alex

[PULL v2 36/44] vhost-net: control virtqueue support

2021-10-20 Thread Michael S. Tsirkin
From: Jason Wang We assume there's no cvq in the past, this is not true when we need control virtqueue support for vhost-user backends. So this patch implements the control virtqueue support for vhost-net. As datapath, the control virtqueue is also required to be coupled with the NetClientState.

[PULL v2 31/44] vhost-vdpa: open device fd in net_init_vhost_vdpa()

2021-10-20 Thread Michael S. Tsirkin
From: Jason Wang This patch switches to open device fd in net_init_vhost_vpda(). This is used to prepare for the multiqueue support. Reviewed-by: Stefano Garzarella Signed-off-by: Jason Wang Message-Id: <20211020045600.16082-2-jasow...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by

[PULL v2 18/44] vdpa: Check for iova range at mappings changes

2021-10-20 Thread Michael S. Tsirkin
From: Eugenio Pérez Check vdpa device range before updating memory regions so we don't add any outside of it, and report the invalid change if any. Signed-off-by: Eugenio Pérez Message-Id: <20211014141236.923287-4-epere...@redhat.com> Reviewed-by: Michael S. Tsirkin Signed-off-by: Michael S. T

[PULL v2 44/44] tests/acpi/bios-tables-test: update DSDT blob for multifunction bridge test

2021-10-20 Thread Michael S. Tsirkin
From: Ani Sinha We added a new unit test for testing acpi hotplug on multifunction bridges in q35 machines. Here, we update the DSDT table gloden master blob for this unit test. The test adds the following devices to qemu and then checks the changes introduced in the DSDT table due to the additi

[PULL v2 20/44] virtio-iommu: Drop base_name and change generic_name

2021-10-20 Thread Michael S. Tsirkin
From: Eric Auger Drop base_name and turn generic_name into "virtio-iommu-pci". This is more in line with other modern-only devices. Signed-off-by: Eric Auger Suggested-by: Cornelia Huck Reviewed-by: Cornelia Huck Message-Id: <20211013191755.767468-3-eric.au...@redhat.com> Reviewed-by: Jean-Ph

  1   2   3   4   >