From 797b412763487dcd9a5332865a25cdeb0f57d2ae Mon Sep 17 00:00:00 2001 From: Jean Guyader Date: Wed, 15 Oct 2008 18:01:52 +0100 Subject: [PATCH] - Map the legacy monocrome VGA ioport (vista needs it). --- hw/pass-through.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/hw/pass-through.c b/hw/pass-through.c index 9bb13fe2..a3b8319d 100644 --- a/hw/pass-through.c +++ b/hw/pass-through.c @@ -2995,6 +2995,8 @@ struct pt_dev * register_real_device(PCIBus *e_bus, { PT_LOG("add an intel graphic card\n"); + rc = xc_domain_ioport_mapping(xc_handle, domid, 0x3B0, 0x3B0, 0xb, + DPCI_ADD_MAPPING); rc = xc_domain_ioport_mapping(xc_handle, domid, 0x3C0, 0x3C0, 32, DPCI_ADD_MAPPING); rc |= xc_domain_memory_mapping(xc_handle, domid, 0xa0, 0xa0, 32, @@ -3072,6 +3074,8 @@ int unregister_real_device(int php_slot) { PT_LOG("remove an intel graphic card\n"); + rc = xc_domain_ioport_mapping(xc_handle, domid, 0x3B0, 0x3B0, 0xb, + DPCI_REMOVE_MAPPING); rc = xc_domain_ioport_mapping(xc_handle, domid, 0x3C0, 0x3C0, 32, DPCI_REMOVE_MAPPING); rc |= xc_domain_memory_mapping(xc_handle, domid, 0xa0, 0xa0, 32, -- 2.39.5