summaryrefslogtreecommitdiff
path: root/memory.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2011-12-15 19:55:26 +0200
committerAvi Kivity <avi@redhat.com>2011-12-20 14:14:07 +0200
commit9f213ed92c5ccc3d0aa19359bb1783760d01dae9 (patch)
tree75f5fe5e181737f69de73935b20cba4405b91df7 /memory.c
parent7664e80c84700d8b7e88ae854d1d74806c63f013 (diff)
downloadqemu-9f213ed92c5ccc3d0aa19359bb1783760d01dae9.tar.gz
qemu-9f213ed92c5ccc3d0aa19359bb1783760d01dae9.tar.bz2
qemu-9f213ed92c5ccc3d0aa19359bb1783760d01dae9.zip
kvm: switch kvm slots to use host virtual address instead of ram_addr_t
This simplifies a later switch to the memory API in slot management. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'memory.c')
-rw-r--r--memory.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/memory.c b/memory.c
index 61e324bbf9..9e3f87a110 100644
--- a/memory.c
+++ b/memory.c
@@ -769,11 +769,11 @@ static void address_space_update_topology_pass(AddressSpace *as,
if (adding) {
if (frold->dirty_log_mask && !frnew->dirty_log_mask) {
- MEMORY_LISTENER_UPDATE_REGION(frold, as, log_stop);
+ MEMORY_LISTENER_UPDATE_REGION(frnew, as, log_stop);
as->ops->log_stop(as, frnew);
} else if (frnew->dirty_log_mask && !frold->dirty_log_mask) {
as->ops->log_start(as, frnew);
- MEMORY_LISTENER_UPDATE_REGION(frold, as, log_start);
+ MEMORY_LISTENER_UPDATE_REGION(frnew, as, log_start);
}
}
@@ -784,7 +784,7 @@ static void address_space_update_topology_pass(AddressSpace *as,
if (adding) {
as->ops->range_add(as, frnew);
- MEMORY_LISTENER_UPDATE_REGION(frold, as, region_add);
+ MEMORY_LISTENER_UPDATE_REGION(frnew, as, region_add);
}
++inew;