Re: [PATCH v2 08/58] i386/tdx: Adjust the supported CPUID based on TDX restrictions

2023-10-10 Thread Tina Zhang
Hi, On 8/18/23 17:49, Xiaoyao Li wrote: According to Chapter "CPUID Virtualization" in TDX module spec, CPUID bits of TD can be classified into 6 types: 1 | As configured | configurable by VMM, independent of native

Re: [PATCH v2] hw/virtio/virtio-iommu: Enforce power-of-two notify for both MAP and UNMAP

2022-07-20 Thread tina . zhang
it will attempt to split that mapping. Ensure MAP and UNMAP notifications are consistent. Fixes: dde3f08b5cab ("virtio-iommu: Handle non power of 2 range invalidations") Reported-by: Tina Zhang Signed-off-by: Jean-Philippe Brucker Tested-by: Tina Zhang Regards, -Tina --- v

[Qemu-devel] [RFC PATCH 3/3] vfio/display: Refresh display depending on vGPU page flip events

2019-06-04 Thread Tina Zhang
Use vGPU plane page flip events to refresh display. Signed-off-by: Tina Zhang --- hw/vfio/display.c | 249 +- include/hw/vfio/vfio-common.h | 8 ++ 2 files changed, 225 insertions(+), 32 deletions(-) diff --git a/hw/vfio/display.c b/hw/vfio

[Qemu-devel] [RFC PATCH 0/3] hw/display: Refresh UI depending on vGPU page flip events

2019-06-04 Thread Tina Zhang
This series shows the idea to refresh UI console depending on vGPU page flip events. Tina Zhang (3): vfio: Add a funtion to return a specific irq capabilities ui/console: Introduce two new APIs vfio/display: Refresh display depending on vGPU page flip events hw/vfio/common.c

[Qemu-devel] [RFC PATCH 1/3] vfio: Add a funtion to return a specific irq capabilities

2019-06-04 Thread Tina Zhang
vfio_get_dev_irq_info is introduced to return a specific irq capabilities. Signed-off-by: Tina Zhang --- hw/vfio/common.c | 78 +++ include/hw/vfio/vfio-common.h | 3 ++ 2 files changed, 81 insertions(+) diff --git a/hw/vfio/common.c b/hw/vfio

[Qemu-devel] [RFC PATCH 2/3] ui/console: Introduce two new APIs

2019-06-04 Thread Tina Zhang
graphic_hw_refresh is used by display to invoke console refresh. dpy_update_interval is used by display to update gui timer interval. Signed-off-by: Tina Zhang --- include/ui/console.h | 2 ++ ui/console.c | 35 +++ 2 files changed, 37 insertions

[Qemu-devel] [PATCH v4 1/2] console: introduce dpy_gfx_update_full

2018-04-27 Thread Tina Zhang
dpy_gfx_update_full is used to do the whole display surface update. This function is proposed by Gerd Hoffmann. Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- include/ui/console.h | 1 + ui/console.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/incl

[Qemu-devel] [PATCH v4 2/2] ui: introduce vfio_display_reset

2018-04-27 Thread Tina Zhang
Limit vfio_display_reset to dma-buf based vfio display. (Gerd) Changes v1->v2: - Use dpy_gfx_update_full() update screen after reset. (Gerd) - Remove dpy_gfx_switch_surface(). (Gerd) Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- hw/vfio/display.c | 11 +++ hw/vfio/pci.c

[Qemu-devel] [PATCH v4 0/2] Add vfio dma-buf based display reset handling

2018-04-27 Thread Tina Zhang
>v3: - Limit vfio_display_reset to dma-buf based vfio display. (Gerd) v1->v2: - remove dpy_gfx_switch_surface. (Gerd) - add dpy_gfx_update_full. (Gerd) Tina Zhang (2): console: introduce dpy_gfx_update_full ui: introduce vfio_display_reset hw/vfio/display.c| 11 +++ hw/v

[Qemu-devel] [PATCH v3 2/2] ui: introduce vfio_display_reset

2018-04-26 Thread Tina Zhang
- Use dpy_gfx_update_full() update screen after reset. (Gerd) - Remove dpy_gfx_switch_surface(). (Gerd) Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- hw/vfio/display.c | 10 ++ hw/vfio/pci.c | 7 +++ hw/vfio/pci.h | 1 + 3 files changed, 18 insertions(+) diff --git a/hw/vfio

[Qemu-devel] [PATCH v3 0/2] Add vfio dma-buf based display reset handling

2018-04-26 Thread Tina Zhang
remove dpy_gfx_switch_surface. (Gerd) - add dpy_gfx_update_full. (Gerd) Tina Zhang (2): console: introduce dpy_gfx_update_full ui: introduce vfio_display_reset hw/vfio/display.c| 10 ++ hw/vfio/pci.c| 7 +++ hw/vfio/pci.h| 1 + include/ui/console.h | 1 + ui/con

[Qemu-devel] [PATCH v3 1/2] console: introduce dpy_gfx_update_full

2018-04-26 Thread Tina Zhang
dpy_gfx_update_full is used to do the whole display surface update. This function is proposed by Gerd Hoffmann. Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- include/ui/console.h | 1 + ui/console.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/incl

[Qemu-devel] [PATCH v2 2/2] ui: introduce vfio_display_reset

2018-04-25 Thread Tina Zhang
ace(). (Gerd) Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- hw/vfio/display.c | 10 ++ hw/vfio/pci.c | 4 hw/vfio/pci.h | 1 + 3 files changed, 15 insertions(+) diff --git a/hw/vfio/display.c b/hw/vfio/display.c index 7d727ce..dc4b1e9 100644 --- a/hw/vfio/display.c

[Qemu-devel] [PATCH v2 0/2] Add vfio display reset handling

2018-04-25 Thread Tina Zhang
vfio display needs to release the invalid display resource and disable the scanout mode during guest OS reboot, otherwise bugs come out. Thanks hang.y...@intel.com for helping root cause the issue. v1->v2: - remove dpy_gfx_switch_surface. (Gerd) - add dpy_gfx_update_full. (Gerd) Tina Zhang

[Qemu-devel] [PATCH v2 1/2] console: introduce dpy_gfx_update_full

2018-04-25 Thread Tina Zhang
dpy_gfx_update_full is used to do the whole display surface update. This function is proposed by Gerd Hoffmann. Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- include/ui/console.h | 1 + ui/console.c | 10 ++ 2 files changed, 11 insertions(+) diff --git a/incl

[Qemu-devel] [PATCH 1/2] console: introduce dpy_gfx_switch_surface

2018-04-23 Thread Tina Zhang
dpy_gfx_switch_surface is used to ask each valid DisplayChangeListener of a QemuConsole to switch to another DisplaySurface. Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- include/ui/console.h | 2 ++ ui/console.c | 16 2 files changed, 18 insertions(+)

[Qemu-devel] [PATCH 2/2] ui: introduce vfio_display_reset

2018-04-23 Thread Tina Zhang
resource, disable scanout mode and replace the invalid surface with QemuConsole's DisplaySurafce. This patch can fix the GPU hang issue caused by gd_egl_draw during guest OS reboot. Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- hw/vfio/display.c | 20 hw/vfio/pci.c

[Qemu-devel] [PATCH 0/2] Add vfio display reset handling

2018-04-23 Thread Tina Zhang
vfio display needs to release the invalid display resource and disable the scanout mode during guest OS reboot, otherwise bugs come out. Thanks hang.y...@intel.com for helping root cause the issue. Tina Zhang (2): console: introduce dpy_gfx_switch_surface ui: introduce vfio_display_reset

[Qemu-devel] [Rfc PATCH] ui: Enable SDL to use dma-buf for direct guest framebuffer rendering

2017-12-08 Thread Tina Zhang
This RFC patch is based on Qemu UI on-going work of rendering guest framebuffer through dma-buf interface, to show a protype of SDL with dma-buf interface. Against branch: work/intel-vgpu Signed-off-by: Tina Zhang <tina.zh...@intel.com> --- include/ui/sdl2.h | 11 ui/sdl

[Qemu-devel] [PATCH] ui: Add enabled field to egl_fb struct

2017-12-06 Thread Tina Zhang
intel-vgpu Signed-off-by: Tina Zhang <tina.zh...@intel.com> Cc: Gerd Hoffmann <kra...@redhat.com> --- hw/vfio/display.c| 5 + include/ui/egl-helpers.h | 1 + ui/egl-headless.c| 12 ui/gtk-egl.c | 11 --- 4 files changed, 22 inse