public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] i440fx: do change ISA mappings under KVM
@ 2008-09-10 19:34 Jan Kiszka
  2008-09-11 10:06 ` Avi Kivity
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kiszka @ 2008-09-10 19:34 UTC (permalink / raw)
  To: kvm-devel

As long as KVM does not support remapping or protection state changes of
guest memory, do not fiddle with the ISA mappings that QEMU see,
confusing both the monitor and the gdbstub.

Signed-off-by: Jan Kiszka <jan.kiszka@web.de>
---
 qemu/hw/piix_pci.c |    6 ++++++
 1 file changed, 6 insertions(+)

Index: b/qemu/hw/piix_pci.c
===================================================================
--- a/qemu/hw/piix_pci.c
+++ b/qemu/hw/piix_pci.c
@@ -26,6 +26,8 @@
 #include "pc.h"
 #include "pci.h"
 
+#include "qemu-kvm.h"
+
 typedef uint32_t pci_addr_t;
 #include "pci_host.h"
 
@@ -91,6 +93,10 @@ static void i440fx_update_memory_mapping
     int i, r;
     uint32_t smram, addr;
 
+    if (kvm_enabled()) {
+        /* FIXME: Support remappings and protection changes. */
+        return;
+    }
     update_pam(d, 0xf0000, 0x100000, (d->config[0x59] >> 4) & 3);
     for(i = 0; i < 12; i++) {
         r = (d->config[(i >> 1) + 0x5a] >> ((i & 1) * 4)) & 3;

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-11 10:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-10 19:34 [PATCH] i440fx: do change ISA mappings under KVM Jan Kiszka
2008-09-11 10:06 ` Avi Kivity
2008-09-11 10:57   ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox