[Intel-gfx] [PATCH V5] drm/i915: Disable stolen memory when i915 runs on qemu

Gerd Hoffmann kraxel at redhat.com
Tue Apr 18 11:26:17 UTC 2017


  Hi,

> [Zhang, Xiong Y] Thanks for your teach and propose.
> For smbios, could you teach me which type and field could be used ?

qemu adds a specific subsystem id to all virtual devices, so you can use
that to figure you are running on qemu.  One good candidate to check is
the host bridge (easy to find due to fixed pci address), another one is
the isa bridge aka lpc (igd already searches for that one for other
reasons).  In fact there already is a check for qemu in
intel_detect_pch() ...

cheers,
  Gerd


More information about the Intel-gfx mailing list