Skip to content

Commit 6a16546

Browse files
committed
xen_pt: hack identification of video adapter
1 parent 1076f3b commit 6a16546

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

hw/xen/xen_pt.c

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -817,8 +817,11 @@ static void xen_pt_realize(PCIDevice *d, Error **errp)
817817
s->io_listener = xen_pt_io_listener;
818818

819819
/* Setup VGA bios for passthrough GFX */
820-
if ((s->real_device.domain == 0) && (s->real_device.bus == 0) &&
821-
(s->real_device.dev == 2) && (s->real_device.func == 0)) {
820+
if (((s->real_device.domain == 0) && (s->real_device.bus == 0) &&
821+
(s->real_device.dev == 2) && (s->real_device.func == 0)) ||
822+
((s->real_device.domain == 0) && (s->real_device.bus == 7) &&
823+
(s->real_device.dev == 0) && (s->real_device.func == 0))
824+
) {
822825
XEN_PT_LOG(d, "Assigning VGA (passthru=%d)...\n",
823826
is_igd_vga_passthrough(&s->real_device));
824827
if (!is_igd_vga_passthrough(&s->real_device)) {

0 commit comments

Comments
 (0)