After the previous patches, this patch is pretty straight forward.
Signed-off-by: Anthony Liguori <[EMAIL PROTECTED]>
diff --git a/qemu/hw/vmware_vga.c b/qemu/hw/vmware_vga.c
index ec7b1cd..f2a298e 100644
--- a/qemu/hw/vmware_vga.c
+++ b/qemu/hw/vmware_vga.c
@@ -36,6 +36,9 @@
# include "vga_int.h"
#endif
+#include "qemu-kvm.h"
+#include "pc.h"
+
struct vmsvga_state_s {
#ifdef EMBED_STDVGA
VGA_STATE_COMMON
@@ -1155,6 +1158,8 @@ static void pci_vmsvga_map(PCIDevice *pci_dev, int
region_num,
} else {
cpu_register_physical_memory(addr, s->vram_size, s->iomemtype);
s->vram_addr = addr;
+ if (kvm_enabled())
+ vga_update_vram_mapping((VGAState *)s, addr, addr + VGA_RAM_SIZE);
s->vram = s->vram_ptr;
}
}
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
kvm-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/kvm-devel