diff options
author | Tomita Moeko <tomitamoeko@gmail.com> | 2025-03-07 02:01:22 +0800 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2025-03-11 17:01:14 +0100 |
commit | 5faec6a5e2202d3460b6b0550ec4ad897be3c76f (patch) | |
tree | 6842dbb897b6b1286bfe869dc075e35df99ed241 /hw/vfio/pci.h | |
parent | 5aed8b0f0be25d2554f8bd76211e43b51e58f736 (diff) | |
download | qemu-5faec6a5e2202d3460b6b0550ec4ad897be3c76f.zip qemu-5faec6a5e2202d3460b6b0550ec4ad897be3c76f.tar.gz qemu-5faec6a5e2202d3460b6b0550ec4ad897be3c76f.tar.bz2 |
vfio/igd: Do not include GTT stolen size in etc/igd-bdsm-size
Though GTT Stolen Memory (GSM) is right below Data Stolen Memory (DSM)
in host address space, direct access to GSM is prohibited, and it is
not mapped to guest address space. Both host and guest accesses GSM
indirectly through the second half of MMIO BAR0 (GTTMMADR).
Guest firmware only need to reserve a memory region for DSM and program
the BDSM register with the base address of that region, that's actually
what both SeaBIOS[1] and IgdAssignmentDxe does now.
[1] https://gitlab.com/qemu-project/seabios/-/blob/1.12-stable/src/fw/pciinit.c#L319-332
Signed-off-by: Tomita Moeko <tomitamoeko@gmail.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Tested-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Corvin Köhne <c.koehne@beckhoff.com>
Link: https://lore.kernel.org/qemu-devel/20250306180131.32970-3-tomitamoeko@gmail.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'hw/vfio/pci.h')
0 files changed, 0 insertions, 0 deletions