]> www.infradead.org Git - users/dwmw2/qemu.git/commit
vfio/igd: don't set stolen memory size to zero
authorCorvin Köhne <corvin.koehne@gmail.com>
Wed, 28 Aug 2024 13:43:27 +0000 (15:43 +0200)
committerCédric Le Goater <clg@redhat.com>
Tue, 17 Sep 2024 08:37:55 +0000 (10:37 +0200)
commit971ca22f041b8a1e67314a777caf3ce6f2832034
tree59b666f12dbc13f1b44b8b2fd5f0f10dd67bc113
parent9c86b9fb43cf724c4adcf234dc4c6d20d83ee370
vfio/igd: don't set stolen memory size to zero

The stolen memory is required for the GOP (EFI) driver and the Windows
driver. While the GOP driver seems to work with any stolen memory size,
the Windows driver will crash if the size doesn't match the size
allocated by the host BIOS. For that reason, it doesn't make sense to
overwrite the stolen memory size. It's true that this wastes some VM
memory. In the worst case, the stolen memory can take up more than a GB.
However, that's uncommon. Additionally, it's likely that a bunch of RAM
is assigned to VMs making use of GPU passthrough.

Signed-off-by: Corvin Köhne <c.koehne@beckhoff.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/igd.c