From 5579c7f37ebba03f6732b4353cc7dc9fa497b7c2 Mon Sep 17 00:00:00 2001 From: pbrook Date: Sat, 11 Apr 2009 14:47:08 +0000 Subject: Remove code phys_ram_base uses. Signed-off-by: Paul Brook git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@7085 c046a42c-6fe2-441c-8c8c-71466251a162 --- kvm-all.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'kvm-all.c') diff --git a/kvm-all.c b/kvm-all.c index 3cfc7b5d8b..7198b32697 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -101,7 +101,7 @@ static int kvm_set_user_memory_region(KVMState *s, KVMSlot *slot) mem.slot = slot->slot; mem.guest_phys_addr = slot->start_addr; mem.memory_size = slot->memory_size; - mem.userspace_addr = (unsigned long)phys_ram_base + slot->phys_offset; + mem.userspace_addr = (unsigned long)qemu_get_ram_ptr(slot->phys_offset); mem.flags = slot->flags; return kvm_vm_ioctl(s, KVM_SET_USER_MEMORY_REGION, &mem); @@ -329,7 +329,7 @@ int kvm_init(int smp_cpus) /* initially, KVM allocated its own memory and we had to jump through * hooks to make phys_ram_base point to this. Modern versions of KVM - * just use a user allocated buffer so we can use phys_ram_base + * just use a user allocated buffer so we can use regular pages * unmodified. Make sure we have a sufficiently modern version of KVM. */ ret = kvm_ioctl(s, KVM_CHECK_EXTENSION, KVM_CAP_USER_MEMORY); -- cgit v1.2.3