Re: [PATCH 6/8] vfio/igd: emulate GGC register in mmio bar0

2024-12-02 Thread Corvin Köhne
On Mon, 2024-12-02 at 00:09 +0800, Tomita Moeko wrote: > CAUTION: External Email!! > The GGC register at 0x50 of pci config space is a mirror of the same > register at 0x108040 of mmio bar0 [1]. i915 driver also reads that > register from mmio bar0 instead of config space. As GGC is programmed > a

Re: [PATCH 6/8] vfio/igd: emulate GGC register in mmio bar0

2024-12-02 Thread Tomita Moeko
On 12/2/24 17:39, Corvin Köhne wrote: > On Mon, 2024-12-02 at 00:09 +0800, Tomita Moeko wrote: >> CAUTION: External Email!! >> The GGC register at 0x50 of pci config space is a mirror of the same >> register at 0x108040 of mmio bar0 [1]. i915 driver also reads that >> register from mmio bar0 inste

[PATCH 6/8] vfio/igd: emulate GGC register in mmio bar0

2024-12-01 Thread Tomita Moeko
The GGC register at 0x50 of pci config space is a mirror of the same register at 0x108040 of mmio bar0 [1]. i915 driver also reads that register from mmio bar0 instead of config space. As GGC is programmed and emulated by qemu, the mmio address should also be emulated, in the same way of BDSM regis