Skip to content

Commit

Permalink
One more place to extend IGD check
Browse files Browse the repository at this point in the history
The VGA class is checked in two places. The second one is related to
allowing opregion access - needed to access VBT.

QubesOS/qubes-issues#8561
  • Loading branch information
marmarek committed Feb 22, 2025
1 parent 1b97425 commit bbe3cab
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
10 changes: 10 additions & 0 deletions 0654-libxl-extend-IGD-check.patch
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,16 @@ index 35e3e1360423..5be9b8239567 100644
return true;
}

@@ -2721,7 +2721,8 @@ int libxl__grant_vga_iomem_permission(libxl__gc *gc, const uint32_t domid,

if (sysfs_dev_get_class(gc, pci, &pci_device_class))
continue;
- if (pci_device_class != 0x030000) /* VGA class */
+ if (pci_device_class != 0x030000 && /* VGA class */
+ pci_device_class != 0x038000) /* Display class */
continue;

stubdom_domid = libxl_get_stubdom_id(CTX, domid);
--
2.46.0

2 changes: 1 addition & 1 deletion 1017-Fix-IGD-passthrough-with-linux-stubdomain.patch
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ index 0302b5990f06..35e3e1360423 100644
unsigned long pci_device_class;

@@ -2613,30 +2724,19 @@ int libxl__grant_vga_iomem_permission(libxl__gc *gc, const uint32_t domid,
if (pci_device_class != 0x030000) /* VGA class */
pci_device_class != 0x038000) /* Display class */
continue;

- stubdom_domid = libxl_get_stubdom_id(CTX, domid);
Expand Down

0 comments on commit bbe3cab

Please sign in to comment.