[PATCH 0/3] vfio/igd: VFIOConfigMirrorQuirk for igd mirrored registers

Tomita Moeko posted 3 patches 11 months, 3 weeks ago
Failed in applying to current master (apply log)
There is a newer version of this series
hw/vfio/igd.c        | 128 ++++++++++++-------------------------------
hw/vfio/pci-quirks.c |  64 ++++------------------
hw/vfio/pci-quirks.h |  72 ++++++++++++++++++++++++
3 files changed, 119 insertions(+), 145 deletions(-)
create mode 100644 hw/vfio/pci-quirks.h
[PATCH 0/3] vfio/igd: VFIOConfigMirrorQuirk for igd mirrored registers
Posted by Tomita Moeko 11 months, 3 weeks ago
In commit 1a2623b5c9e7 ("vfio/igd: add macro for declaring mirrored
registers"), I introduced a macro to handle mirrored registers in igd
bar0. However, using the existing VFIOConfigMirrorQuirk should be a
better approach I think after going through the vfio code.

This patch set introduces a new header file, pci-quirks.h, to hold
generic quirk declarations, and extends VFIOConfigMirrorQuirk to
support offsets in PCI config space. This eliminates the need for
the previously introduced macro.

Happy new year :)

Tomita Moeko (3):
  vfio/pci: declare generic quirks in a new header file
  vfio/pci: introduce config_offset field in VFIOConfigMirrorQuirk
  vfio/igd: use VFIOConfigMirrorQuirk for mirrored registers

 hw/vfio/igd.c        | 128 ++++++++++++-------------------------------
 hw/vfio/pci-quirks.c |  64 ++++------------------
 hw/vfio/pci-quirks.h |  72 ++++++++++++++++++++++++
 3 files changed, 119 insertions(+), 145 deletions(-)
 create mode 100644 hw/vfio/pci-quirks.h

-- 
2.45.2