[PULL 17/26] net: socket: Don't ignore EINVAL on netdev socket connection

2022-10-27 Thread Jason Wang
From: Stefano Brivio Other errors are treated as failure by net_socket_connect_init(), but if connect() returns EINVAL, we'll fail silently. Remove the related exception. Signed-off-by: Stefano Brivio Signed-off-by: Laurent Vivier Reviewed-by: David Gibson Acked-by: Michael S. Tsirkin Signed

[PULL 12/26] net: remove the @errp argument of net_client_inits()

2022-10-27 Thread Jason Wang
From: Laurent Vivier The only caller passes &error_fatal, so use this directly in the function. It's what we do for -blockdev, -device, and -object. Suggested-by: Markus Armbruster Signed-off-by: Laurent Vivier Reviewed-by: Markus Armbruster Reviewed-by: David Gibson Acked-by: Michael S. Ts

[PULL 15/26] net: introduce qemu_set_info_str() function

2022-10-27 Thread Jason Wang
From: Laurent Vivier Embed the setting of info_str in a function. Signed-off-by: Laurent Vivier Reviewed-by: David Gibson Acked-by: Michael S. Tsirkin Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Jason Wang --- hw/net/xen_nic.c | 5 ++--- include/net/net.h | 1 + net/l2tpv3.c

[PULL 14/26] qapi: net: introduce a way to bypass qemu_opts_parse_noisily()

2022-10-27 Thread Jason Wang
From: Laurent Vivier As qemu_opts_parse_noisily() flattens the QAPI structures ("type" field of Netdev structure can collides with "type" field of SocketAddress), we introduce a way to bypass qemu_opts_parse_noisily() and use directly visit_type_Netdev() to parse the backend parameters. More det

[PULL 0/4] Error reporting patches for 2022-10-28

2022-10-27 Thread Markus Armbruster
The following changes since commit 344744e148e6e865f5a57e745b02a87e5ea534ad: Merge tag 'dump-pull-request' of https://gitlab.com/marcandre.lureau/qemu into staging (2022-10-26 10:53:49 -0400) are available in the Git repository at: https://repo.or.cz/qemu/armbru.git tags/pull-error-2022-10-

[PULL 4/4] qerror: QERR_PERMISSION_DENIED is no longer used, drop

2022-10-27 Thread Markus Armbruster
Signed-off-by: Markus Armbruster Message-Id: <20221012153801.2604340-5-arm...@redhat.com> --- include/qapi/qmp/qerror.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/qapi/qmp/qerror.h b/include/qapi/qmp/qerror.h index 596fce0c54..87ca83b155 100644 --- a/include/qapi/qmp/qerror.h +

[PULL 2/4] backends: Improve error messages when property can no longer be set

2022-10-27 Thread Markus Armbruster
When you try to set virtio-rng property "filename" after the backend has been completed with user_creatable_complete(), the error message blames "insufficient permission": $ qemu-system-x86_64 -S -display none -nodefaults -monitor stdio -object rng-random,id=rng0 -device virtio-rng,id=vrng0,r

[PULL 3/4] qtest: Improve error messages when property can not be set right now

2022-10-27 Thread Markus Armbruster
When you try to set qtest property "log" while the qtest object is active, the error message blames "insufficient permission": $ qemu-system-x86_64 -S -display none -nodefaults -monitor stdio -chardev socket,id=chrqt0,path=qtest.socket,server=on,wait=off -object qtest,id=qt0,chardev=chrqt0,l

[PULL 1/4] qom: Improve error messages when property has no getter or setter

2022-10-27 Thread Markus Armbruster
When you try to set a property that has no setter, the error message blames "insufficient permission": $ qemu-system-x86_64 -S -display none -nodefaults -monitor stdio QEMU 7.1.50 monitor - type 'help' for more information (qemu) qom-set /machine type q35 Error: Insufficient permis

[PATCH V5 1/4] intel-iommu: don't warn guest errors when getting rid2pasid entry

2022-10-27 Thread 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 --- Changes since v4: - Tweak the code to avoid using ret variable --- hw/i386/intel

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

2022-10-27 Thread 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 drops the VTDBus struct

[PATCH V5 3/4] intel-iommu: convert VTD_PE_GET_FPD_ERR() to be a function

2022-10-27 Thread 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 function that requires

[PATCH V5 0/4] PASID support for Intel IOMMU

2022-10-27 Thread Jason Wang
Hi All: This series tries to introduce PASID support for Intel IOMMU. The work is based on the previous scalabe mode support by implement the ECAP_PASID. A new "x-pasid-mode" is introduced to enable this mode. All internal vIOMMU codes were extended to support PASID instead of the current RID2PASI

[PATCH V5 4/4] intel-iommu: PASID support

2022-10-27 Thread 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 its flush 4) PASID bas

Re: [PATCH v9 3/8] KVM: Add KVM_EXIT_MEMORY_FAULT exit

2022-10-27 Thread Chao Peng
On Thu, Oct 27, 2022 at 11:27:05AM +0100, Fuad Tabba wrote: > Hi, > > On Tue, Oct 25, 2022 at 4:19 PM Chao Peng wrote: > > > > This new KVM exit allows userspace to handle memory-related errors. It > > indicates an error happens in KVM at guest memory range [gpa, gpa+size). > > The flags includes

Re: [PATCH v9 6/8] KVM: Update lpage info when private/shared memory are mixed

2022-10-27 Thread Chao Peng
On Wed, Oct 26, 2022 at 01:46:20PM -0700, Isaku Yamahata wrote: > On Tue, Oct 25, 2022 at 11:13:42PM +0800, > Chao Peng wrote: > > > When private/shared memory are mixed in a large page, the lpage_info may > > not be accurate and should be updated with this mixed info. A large page > > has mixed

Re: [PATCH v6 5/7] hw/arm/virt: Improve high memory region address assignment

2022-10-27 Thread Gavin Shan
Hi Connie, On 10/26/22 6:43 PM, Cornelia Huck wrote: On Wed, Oct 26 2022, Gavin Shan wrote: On 10/26/22 12:29 AM, Eric Auger wrote: On 10/24/22 05:54, Gavin Shan wrote: There are three high memory regions, which are VIRT_HIGH_REDIST2, VIRT_HIGH_PCIE_ECAM and VIRT_HIGH_PCIE_MMIO. Their base a

Re: [PATCH 0/4] Shadow VirtQueue event index support

2022-10-27 Thread Eugenio Perez Martin
On Fri, Oct 28, 2022 at 4:44 AM Jason Wang wrote: > > > 在 2022/10/27 04:58, Michael S. Tsirkin 写道: > > On Thu, Oct 20, 2022 at 05:52:47PM +0200, Eugenio Pérez wrote: > >> Event idx helps to reduce the number of notifications between the device > >> and the driver. It allows them to specify an inde

Re: [PATCH v6 7/7] hw/arm/virt: Add properties to disable high memory regions

2022-10-27 Thread Gavin Shan
Hi Connie, On 10/26/22 7:10 PM, Cornelia Huck wrote: On Wed, Oct 26 2022, Gavin Shan wrote: On 10/25/22 6:54 PM, Cornelia Huck wrote: On Mon, Oct 24 2022, Gavin Shan wrote: These 3 high memory regions are usually enabled by default, but s/These 3/The/ ? Ok. they may be not used. Fo

<    1   2   3   4   5