summary refs log tree commit diff stats
path: root/rust/qemu-api
diff options
context:
space:
mode:
authorTomita Moeko <tomitamoeko@gmail.com>2025-03-07 02:01:22 +0800
committerCédric Le Goater <clg@redhat.com>2025-03-11 17:01:14 +0100
commit5faec6a5e2202d3460b6b0550ec4ad897be3c76f (patch)
tree6842dbb897b6b1286bfe869dc075e35df99ed241 /rust/qemu-api
parent5aed8b0f0be25d2554f8bd76211e43b51e58f736 (diff)
downloadfocaccia-qemu-5faec6a5e2202d3460b6b0550ec4ad897be3c76f.tar.gz
focaccia-qemu-5faec6a5e2202d3460b6b0550ec4ad897be3c76f.zip
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 'rust/qemu-api')
0 files changed, 0 insertions, 0 deletions