qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [5753] kvm: de-register mem region for MMIO (Glauber Costa)
@ 2008-11-19 15:09 Anthony Liguori
  0 siblings, 0 replies; only message in thread
From: Anthony Liguori @ 2008-11-19 15:09 UTC (permalink / raw)
  To: qemu-devel

Revision: 5753
          http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5753
Author:   aliguori
Date:     2008-11-19 15:09:54 +0000 (Wed, 19 Nov 2008)

Log Message:
-----------
kvm: de-register mem region for MMIO (Glauber Costa)

Besides unassigned memory, we also don't care about MMIO.
So if we're giving an MMIO area that is already registered,
wipe it out.

Signed-off-by: Glauber Costa <glommer@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>

Modified Paths:
--------------
    trunk/kvm-all.c

Modified: trunk/kvm-all.c
===================================================================
--- trunk/kvm-all.c	2008-11-19 15:03:36 UTC (rev 5752)
+++ trunk/kvm-all.c	2008-11-19 15:09:54 UTC (rev 5753)
@@ -322,7 +322,7 @@
 
     mem = kvm_lookup_slot(s, start_addr);
     if (mem) {
-        if (flags == IO_MEM_UNASSIGNED) {
+        if ((flags == IO_MEM_UNASSIGNED) || (flags >= TLB_MMIO)) {
             mem->memory_size = 0;
             mem->guest_phys_addr = start_addr;
             mem->userspace_addr = 0;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-11-19 15:09 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 15:09 [Qemu-devel] [5753] kvm: de-register mem region for MMIO (Glauber Costa) Anthony Liguori

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).