Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

One more place to extend IGD check #203

Merged
merged 1 commit into from
Feb 23, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions 0654-libxl-extend-IGD-check.patch
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,28 @@ 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);
diff --git a/tools/firmware/hvmloader/pci.c b/tools/firmware/hvmloader/pci.c
index fe5ad75e9eb4..f87b33b28257 100644
--- a/tools/firmware/hvmloader/pci.c
+++ b/tools/firmware/hvmloader/pci.c
@@ -178,6 +178,7 @@ void pci_setup(void)
switch ( class )
{
case 0x0300:
+ case 0x0380:
/* If emulated VGA is found, preserve it as primary VGA. */
if ( (vendor_id == 0x1234) && (device_id == 0x1111) )
{
--
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