[PATCH 0/2] vfio/igd: Legacy mode fixes after introduction of

Tomita Moeko posted 2 patches 3 months, 3 weeks ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250723160906.44941-1-tomitamoeko@gmail.com
Maintainers: Alex Williamson <alex.williamson@redhat.com>, "Cédric Le Goater" <clg@redhat.com>, Tomita Moeko <tomitamoeko@gmail.com>
docs/igd-assign.txt |  1 +
hw/vfio/igd.c       | 19 ++++++++++++-------
hw/vfio/pci.c       | 13 ++++++++++---
hw/vfio/pci.h       |  1 +
4 files changed, 24 insertions(+), 10 deletions(-)
[PATCH 0/2] vfio/igd: Legacy mode fixes after introduction of
Posted by Tomita Moeko 3 months, 3 weeks ago
This patchset aims to fix 2 bugs on legacy mode brought by commit
a59d06305fff ("vfio/pci: Introduce x-pci-class-code option").

1. QEMU tries to enable VGA access on device emulated to VGA controller.
2. pci_register_vga() is not called after calling vfio_populate_vga().


Tomita Moeko (2):
  vfio/igd: Require host VGA decode for legacy mode
  vfio/igd: Fix VGA regions are not exposed in legacy mode

 docs/igd-assign.txt |  1 +
 hw/vfio/igd.c       | 19 ++++++++++++-------
 hw/vfio/pci.c       | 13 ++++++++++---
 hw/vfio/pci.h       |  1 +
 4 files changed, 24 insertions(+), 10 deletions(-)

-- 
2.47.2
Re: [PATCH 0/2] vfio/igd: Legacy mode fixes after introduction of
Posted by Cédric Le Goater 3 months, 2 weeks ago
On 7/23/25 18:09, Tomita Moeko wrote:
> This patchset aims to fix 2 bugs on legacy mode brought by commit
> a59d06305fff ("vfio/pci: Introduce x-pci-class-code option").
> 
> 1. QEMU tries to enable VGA access on device emulated to VGA controller.
> 2. pci_register_vga() is not called after calling vfio_populate_vga().
> 
> 
> Tomita Moeko (2):
>    vfio/igd: Require host VGA decode for legacy mode
>    vfio/igd: Fix VGA regions are not exposed in legacy mode
> 
>   docs/igd-assign.txt |  1 +
>   hw/vfio/igd.c       | 19 ++++++++++++-------
>   hw/vfio/pci.c       | 13 ++++++++++---
>   hw/vfio/pci.h       |  1 +
>   4 files changed, 24 insertions(+), 10 deletions(-)
> 


Applied to vfio-next.

Thanks,

C.
Re: [PATCH 0/2] vfio/igd: Legacy mode fixes after introduction of
Posted by Alex Williamson 3 months, 2 weeks ago
On Thu, 24 Jul 2025 00:09:04 +0800
Tomita Moeko <tomitamoeko@gmail.com> wrote:

> This patchset aims to fix 2 bugs on legacy mode brought by commit
> a59d06305fff ("vfio/pci: Introduce x-pci-class-code option").
> 
> 1. QEMU tries to enable VGA access on device emulated to VGA controller.
> 2. pci_register_vga() is not called after calling vfio_populate_vga().
> 
> 
> Tomita Moeko (2):
>   vfio/igd: Require host VGA decode for legacy mode
>   vfio/igd: Fix VGA regions are not exposed in legacy mode
> 
>  docs/igd-assign.txt |  1 +
>  hw/vfio/igd.c       | 19 ++++++++++++-------
>  hw/vfio/pci.c       | 13 ++++++++++---
>  hw/vfio/pci.h       |  1 +
>  4 files changed, 24 insertions(+), 10 deletions(-)
> 

Reviewed-by: Alex Williamson <alex.williamson@redhat.com>