]> xenbits.xensource.com Git - xen.git/commit
tools/libxl/libxl_pci.c: Judge igd through class code instead of device ID
authorXiong Zhang <xiong.y.zhang@intel.com>
Sun, 2 Jul 2017 19:25:53 +0000 (03:25 +0800)
committerWei Liu <wei.liu2@citrix.com>
Tue, 4 Jul 2017 13:04:09 +0000 (14:04 +0100)
commit5e6e39a1d66bcdcb178ab40423b0943ee151948e
treeebc169134c2a926283bcf01d9b66b121cd4e16e6
parent447c1f1735f286a1c26f69909d62a39d9dcbe3da
tools/libxl/libxl_pci.c: Judge igd through class code instead of device ID

IGD passthrough couldn't work on Skylake and Kabylake, because their
Device ID aren't in fixup_ids[]. Currently we need to add every intel
graphic ID into fixup_ids[], it is hard to maintain.

This patch judge intel graphics through vendor id (0x8086) and class
code(0x030000), this could support both the old and new intel graphics,
and reduce maintain work in future.

Signed-off-by: Xiong Zhang <xiong.y.zhang@intel.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_pci.c