Message ID | 20241118083737.174219-3-clg@redhat.com (mailing list archive) |
---|---|
State | New |
Headers | show |
Series | [PULL,1/3] vfio/igd: add pci id for Coffee Lake | expand |
diff --git a/hw/vfio/igd.c b/hw/vfio/igd.c index c5282827ec9112be3c53fbef953abed0bac64298..4047f4f0717f82f48f8e255873f9895a157e210a 100644 --- a/hw/vfio/igd.c +++ b/hw/vfio/igd.c @@ -501,7 +501,7 @@ static int igd_get_stolen_mb(int gen, uint32_t gmch) if (gms < 0xf0) return gms * 32; else - return gms * 4 + 4; + return (gms - 0xf0) * 4 + 4; } }