]> git.proxmox.com Git - mirror_qemu.git/commit
Fix wrong region_offset when overlaying a page with another
authorAvi Kivity <avi@redhat.com>
Sun, 1 Jan 2012 16:24:24 +0000 (18:24 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 4 Jan 2012 11:34:49 +0000 (13:34 +0200)
commit2774c6d0ae20d32d75f77e7ed063ddbb854ca4c5
tree1c27a99dec9f809af6530c3014c81b3c057e9caf
parent26a83ad0e793465b74a8b06a65f2f6fdc5615413
Fix wrong region_offset when overlaying a page with another

cpu_register_physical_memory_log() does not update region_offset
if a page was previously registered for the same address.  This
could cause mmio accesses going to the wrong place, by using the
old region_offset.

Signed-off-by: Avi Kivity <avi@redhat.com>
Acked-by: Andreas Färber <afaerber@suse.de>
Reviewed-by: Richard Henderson <rth@twiddle.net>
exec.c