]> xenbits.xen.org Git - xenclient/ioemu-pq.git/commitdiff
Temporarily hide MSI capability for iGfx device.
authorKamala Narasimhan <kamala.narasimhan@citrix.com>
Wed, 2 Dec 2009 16:41:01 +0000 (11:41 -0500)
committerKamala Narasimhan <kamala.narasimhan@citrix.com>
Wed, 2 Dec 2009 16:41:01 +0000 (11:41 -0500)
master/hide-msi-capability-for-igfx [new file with mode: 0644]
master/series

diff --git a/master/hide-msi-capability-for-igfx b/master/hide-msi-capability-for-igfx
new file mode 100644 (file)
index 0000000..3ffbe43
--- /dev/null
@@ -0,0 +1,14 @@
+diff --git a/hw/pci.c b/hw/pci.c
+index ec8b0c4..5a65d4c 100644
+--- a/hw/pci.c
++++ b/hw/pci.c
+@@ -636,7 +636,8 @@ uint32_t pci_data_read(void *opaque, uint32_t addr, int len)
+               val = pt_pci_host_read_word(0, 0, 0, 0xa0);
+     }
+     else if (vga_passthrough && pci_dev->devfn == 0x10 && // intel graphic card
+-          config_addr == 0xfc) // OpRegion address
++          ( config_addr == 0xfc /* OpRegion address */ ||
++              config_addr == 0x90 /*temporarily disable msi capabilities for iGfx*/ ))
+       val = 0; // force to fall back to SMI mode
+     else
+       val = pci_dev->config_read(pci_dev, config_addr, len);
index 3b80369432f0aac0f231951522b7d421ae60cdcd..78dabca07a5b387cf65a867fa58f01f2abf89f77 100644 (file)
@@ -30,3 +30,4 @@ atapi-succeed-on-lock-door
 pv_driver_throttling_disabled
 dont-carp-about-a-missing-battery
 vga-clear-hw-fb-on-resize
+hide-msi-capability-for-igfx