From: Leonid Shatz <leonid.sh...@oracle.com>

This is necessary in order for device to raise interrupts.
Future patches will add functionality to device which will
need this ability.

Signed-off-by: Leonid Shatz <leonid.sh...@oracle.com>
Reviewed-by: Darren Kenny <darren.ke...@oracle.com>
Signed-off-by: Liran Alon <liran.a...@oracle.com>
---
 hw/display/vmware_vga.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c
index 91f990544e14..eae3f1455445 100644
--- a/hw/display/vmware_vga.c
+++ b/hw/display/vmware_vga.c
@@ -1447,6 +1447,7 @@ static void pci_vmsvga_realize(PCIDevice *dev, Error 
**errp)
     dev->config[PCI_CACHE_LINE_SIZE] = 0x08;
     dev->config[PCI_LATENCY_TIMER] = 0x40;
     dev->config[PCI_INTERRUPT_LINE] = 0xff;          /* End */
+    dev->config[PCI_INTERRUPT_PIN] = 1;  /* interrupt pin A */
 
     memory_region_init_io(&s->io_bar, NULL, &vmsvga_io_ops, &s->chip,
                           "vmsvga-io", 0x10);
-- 
1.9.1


Reply via email to