Merge remote-tracking branch 'qemu-kvm/memory/urgent' into staging

* qemu-kvm/memory/urgent:
  exec: fix guest memory access for Xen
This commit is contained in:
Anthony Liguori 2012-03-19 13:36:18 -05:00
commit be793eb3b9

4
exec.c
View File

@ -3856,8 +3856,8 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf,
} }
} else { } else {
/* RAM case */ /* RAM case */
ptr = qemu_get_ram_ptr(section->mr->ram_addr) ptr = qemu_get_ram_ptr(section->mr->ram_addr
+ section_addr(section, addr); + section_addr(section, addr));
memcpy(buf, ptr, l); memcpy(buf, ptr, l);
qemu_put_ram_ptr(ptr); qemu_put_ram_ptr(ptr);
} }