]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commitdiff
libxl: extend IGD check
authorMarek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Mon, 2 Dec 2024 08:52:05 +0000 (09:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 2 Dec 2024 08:52:05 +0000 (09:52 +0100)
Consider also "Display controller" an IGD, not only "VGA compatible
controller". Specifically, IGD on Raptor Lake has 0x038000 class, not
0x030000.

Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Acked-by: Anthony PERARD <anthony.perard@vates.tech>
tools/libs/light/libxl_pci.c

index 8ef6a7b5fe3a0e6b04c4f42259034c7671f969d1..1647fd6f47563a34e82758d12e86381419229f7e 100644 (file)
@@ -633,7 +633,7 @@ bool libxl__is_igd_vga_passthru(libxl__gc *gc,
 
         if (sysfs_dev_get_class(gc, pci, &class))
             continue;
-        if (class == 0x030000)
+        if (class == 0x030000 || class == 0x038000)
             return true;
     }