[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/3] vfio/igd: VFIOConfigMirrorQuirk for igd mirrored registers
From: |
Tomita Moeko |
Subject: |
[PATCH 0/3] vfio/igd: VFIOConfigMirrorQuirk for igd mirrored registers |
Date: |
Tue, 31 Dec 2024 23:19:50 +0800 |
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
- [PATCH 0/3] vfio/igd: VFIOConfigMirrorQuirk for igd mirrored registers,
Tomita Moeko <=