[QEMU PATCH v4 09/13] virtio-gpu: Handle resource blob commands

2023-08-31 Thread Huang Rui
From: Antonio Caggiano Support BLOB resources creation, mapping and unmapping by calling the new stable virglrenderer 0.10 interface. Only enabled when available and via the blob config. E.g. -device virtio-vga-gl,blob=true Signed-off-by: Antonio Caggiano Signed-off-by: Dmitry Osipenko Signed-

[QEMU PATCH v4 10/13] virtio-gpu: Resource UUID

2023-08-31 Thread Huang Rui
From: Antonio Caggiano Enable resource UUID feature and implement command resource assign UUID. This is done by introducing a hash table to map resource IDs to their UUIDs. Signed-off-by: Antonio Caggiano Signed-off-by: Huang Rui --- v1->v2: - Separate declarations from code. hw/display/

Re: [QEMU PATCH v4 05/13] virtio-gpu: Support context init feature with virglrenderer

2023-08-31 Thread Philippe Mathieu-Daudé
On 31/8/23 11:32, Huang Rui wrote: Patch "virtio-gpu: CONTEXT_INIT feature" has added the context_init feature flags. We would like to enable the feature with virglrenderer, so add to create virgl renderer context with flags using context_id when valid. Originally-by: Antonio Caggiano Signed-of

[QEMU PATCH v4 13/13] virtio-gpu: Enable virglrenderer render server flag for venus

2023-08-31 Thread Huang Rui
Venus in virglrenderer has required render server support. Signed-off-by: Huang Rui --- New patch hw/display/virtio-gpu-virgl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/display/virtio-gpu-virgl.c b/hw/display/virtio-gpu-virgl.c index c5a62665bd..1ae3e458e2 100644

[QEMU PATCH v4 11/13] virtio-gpu: Support Venus capset

2023-08-31 Thread Huang Rui
From: Antonio Caggiano Add support for the Venus capset, which enables Vulkan support through the Venus Vulkan driver for virtio-gpu. Signed-off-by: Antonio Caggiano Signed-off-by: Huang Rui --- hw/display/virtio-gpu-virgl.c | 21 + include/standard-headers/l

Re: [QEMU PATCH v4 06/13] virtio-gpu: Configure context init for virglrenderer

2023-08-31 Thread Philippe Mathieu-Daudé
On 31/8/23 11:32, Huang Rui wrote: Configure context init feature flag for virglrenderer. Originally-by: Antonio Caggiano Signed-off-by: Huang Rui --- New patch, result of splitting [RFC QEMU PATCH 04/18] virtio-gpu: CONTEXT_INIT feature meson.build | 4 1 file changed, 4 insertions(

[QEMU PATCH v4 08/13] virtio-gpu: Don't require udmabuf when blobs and virgl are enabled

2023-08-31 Thread Huang Rui
From: Dmitry Osipenko The udmabuf usage is mandatory when virgl is disabled and blobs feature enabled in the Qemu machine configuration. If virgl and blobs are enabled, then udmabuf requirement is optional. Since udmabuf isn't widely supported by a popular Linux distros today, let's relax the udm

[QEMU PATCH v4 07/13] softmmu/memory: enable automatic deallocation of memory regions

2023-08-31 Thread Huang Rui
From: Xenia Ragiadakou When the memory region has a different life-cycle from that of her parent, could be automatically released, once has been unparent and once all of her references have gone away, via the object's free callback. However, currently, references to the memory region are held by

[QEMU PATCH v4 06/13] virtio-gpu: Configure context init for virglrenderer

2023-08-31 Thread Huang Rui
Configure context init feature flag for virglrenderer. Originally-by: Antonio Caggiano Signed-off-by: Huang Rui --- New patch, result of splitting [RFC QEMU PATCH 04/18] virtio-gpu: CONTEXT_INIT feature meson.build | 4 1 file changed, 4 insertions(+) diff --git a/meson.build b/meson.bu

[QEMU PATCH v4 05/13] virtio-gpu: Support context init feature with virglrenderer

2023-08-31 Thread Huang Rui
Patch "virtio-gpu: CONTEXT_INIT feature" has added the context_init feature flags. We would like to enable the feature with virglrenderer, so add to create virgl renderer context with flags using context_id when valid. Originally-by: Antonio Caggiano Signed-off-by: Huang Rui --- New patch, resu

[QEMU PATCH v4 03/13] virtio-gpu: hostmem

2023-08-31 Thread Huang Rui
From: Gerd Hoffmann Use VIRTIO_GPU_SHM_ID_HOST_VISIBLE as id for virtio-gpu. Signed-off-by: Antonio Caggiano Tested-by: Alyssa Ross Tested-by: Akihiko Odaki Acked-by: Michael S. Tsirkin Reviewed-by: Akihiko Odaki Signed-off-by: Huang Rui --- This patch is already under review as part of t

[QEMU PATCH v4 04/13] virtio-gpu: blob prep

2023-08-31 Thread Huang Rui
From: Antonio Caggiano This adds preparatory functions needed to: - decode blob cmds - tracking iovecs Signed-off-by: Antonio Caggiano Signed-off-by: Dmitry Osipenko Signed-off-by: Gurchetan Singh Tested-by: Alyssa Ross Tested-by: Emmanouil Pitsidianakis Tested-by: Akihiko Odaki

[QEMU PATCH v4 02/13] virtio-gpu: CONTEXT_INIT feature

2023-08-31 Thread Huang Rui
From: Antonio Caggiano The feature can be enabled when a backend wants it. Signed-off-by: Antonio Caggiano Signed-off-by: Gurchetan Singh Tested-by: Alyssa Ross Tested-by: Akihiko Odaki Reviewed-by: Marc-André Lureau Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Akihiko Odaki Signed-of

[QEMU PATCH v4 01/13] virtio: Add shared memory capability

2023-08-31 Thread Huang Rui
From: "Dr. David Alan Gilbert" Define a new capability type 'VIRTIO_PCI_CAP_SHARED_MEMORY_CFG' to allow defining shared memory regions with sizes and offsets of 2^32 and more. Multiple instances of the capability are allowed and distinguished by a device-specific 'id'. Signed-off-by: Dr. David A

[QEMU PATCH v4 00/13] Support blob memory and venus on qemu

2023-08-31 Thread Huang Rui
Hi all, Antonio Caggiano made the venus with QEMU on KVM platform last September[1]. This series are inherited from his original work to support the features of context init, hostmem, resource uuid, and blob resources for venus. At March of this year, we sent out the V1 version[2] for the review.

Re: [PATCH v2] docs/misra: add 14.3

2023-08-31 Thread Jan Beulich
On 31.08.2023 03:53, Stefano Stabellini wrote: > @@ -332,6 +333,17 @@ maintainers if you want to suggest a change. > - A loop counter shall not have essentially floating type > - > > + * - `Rule 14.3 >

Re: [XEN PATCH 05/13] automation/eclair: add deviation for usercopy.c

2023-08-31 Thread Jan Beulich
On 31.08.2023 03:56, Stefano Stabellini wrote: > On Wed, 30 Aug 2023, Simone Ballarin wrote: >> On 29/08/23 00:27, Stefano Stabellini wrote: >>> On Mon, 28 Aug 2023, Simone Ballarin wrote: >>> --- a/xen/arch/x86/usercopy.c >>> +++ b/xen/arch/x86/usercopy.c >>> @@ -1,3 +1,4 @@ >>> +/* SAF-1-safe */

Re: [PATCH v6 08/13] xen/arm: Fold mmu_init_secondary_cpu() to head.S

2023-08-31 Thread Henry Wang
Hi Ayan, > On Aug 31, 2023, at 17:12, Ayan Kumar Halder wrote: > > Hi Henry, > > On 28/08/2023 02:32, Henry Wang wrote: >> >> diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S >> index 33b038e7e0..39218cf15f 100644 >> --- a/xen/arch/arm/arm32/head.S >> +++ b/xen/arch/arm/arm32

Re: [PATCH v6 08/13] xen/arm: Fold mmu_init_secondary_cpu() to head.S

2023-08-31 Thread Ayan Kumar Halder
Hi Henry, On 28/08/2023 02:32, Henry Wang wrote: CAUTION: This message has originated from an External Source. Please use proper judgment and caution when opening attachments, clicking links, or responding to this email. Currently mmu_init_secondary_cpu() only enforces the page table should

Re: QEMU features useful for Xen development?

2023-08-31 Thread Peter Maydell
On Thu, 31 Aug 2023 at 01:57, Stefano Stabellini wrote: > As Xen is gaining R52 and R82 support, it would be great to be able to > use QEMU for development and testing there as well, but I don't think > QEMU can emulate EL2 properly for the Cortex-R architecture. We would > need EL2 support in the

Re: [PATCH] x86/HVM: correct hvmemul_map_linear_addr() for multi-page case

2023-08-31 Thread Roger Pau Monné
On Thu, Aug 31, 2023 at 09:03:18AM +0200, Jan Beulich wrote: > On 30.08.2023 20:09, Andrew Cooper wrote: > > On 30/08/2023 3:30 pm, Roger Pau Monné wrote: > >> On Wed, Sep 12, 2018 at 03:09:35AM -0600, Jan Beulich wrote: > >>> The function does two translations in one go for a single guest access.

Re: [RFC XEN PATCH 6/6] tools/libs/light: pci: translate irq to gsi

2023-08-31 Thread Chen, Jiqian
Thanks Roger, we will send a new series after the freezing time of Xen release 4.18. On 2023/8/23 16:57, Roger Pau Monné wrote: > On Mon, Jul 31, 2023 at 04:40:35PM +, Chen, Jiqian wrote: >> Hi, >> >> On 2023/3/18 04:55, Stefano Stabellini wrote: >>> On Fri, 17 Mar 2023, Roger Pau Monné wrote

[xen-unstable test] 182571: tolerable FAIL - PUSHED

2023-08-31 Thread osstest service owner
flight 182571 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/182571/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-i386-xl-qemuu-win7-amd64 19 guest-stop fail like 182563 test-armhf-armhf-libvirt 16 save

Re: [XEN][PATCH v10 11/20] xen/iommu: Introduce iommu_remove_dt_device()

2023-08-31 Thread Michal Orzel
On 31/08/2023 09:23, Michal Orzel wrote: > > > On 30/08/2023 19:48, Vikram Garhwal wrote: >> Hi Michal, >> On Tue, Aug 29, 2023 at 10:23:30AM +0200, Michal Orzel wrote: >>> >>> >>> On 25/08/2023 10:02, Vikram Garhwal wrote: Remove master device from the IOMMU. This will be helpful when re

Re: [XEN][PATCH v10 11/20] xen/iommu: Introduce iommu_remove_dt_device()

2023-08-31 Thread Michal Orzel
On 30/08/2023 19:48, Vikram Garhwal wrote: > Hi Michal, > On Tue, Aug 29, 2023 at 10:23:30AM +0200, Michal Orzel wrote: >> >> >> On 25/08/2023 10:02, Vikram Garhwal wrote: >>> Remove master device from the IOMMU. This will be helpful when removing the >>> overlay nodes using dynamic programming d

Re: [Xen-devel] [PATCH] x86/HVM: correct hvmemul_map_linear_addr() for multi-page case

2023-08-31 Thread Jan Beulich
On 30.08.2023 16:30, Roger Pau Monné wrote: > On Wed, Sep 12, 2018 at 03:09:35AM -0600, Jan Beulich wrote: >> The function does two translations in one go for a single guest access. >> Any failure of the first translation step (guest linear -> guest >> physical), resulting in #PF, ought to take pre

[xen-unstable-smoke test] 182577: tolerable all pass - PUSHED

2023-08-31 Thread osstest service owner
flight 182577 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/182577/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 15 migrate-support-checkfail never pass test-arm64-arm64-xl-xsm 1

Re: [PATCH] x86/HVM: correct hvmemul_map_linear_addr() for multi-page case

2023-08-31 Thread Jan Beulich
On 30.08.2023 20:09, Andrew Cooper wrote: > On 30/08/2023 3:30 pm, Roger Pau Monné wrote: >> On Wed, Sep 12, 2018 at 03:09:35AM -0600, Jan Beulich wrote: >>> The function does two translations in one go for a single guest access. >>> Any failure of the first translation step (guest linear -> guest

<    1   2