]> git.proxmox.com Git - qemu.git/commit - exec.c
exec.c: Fix subpage memory access to RAM MemoryRegion
authorAndreas Färber <afaerber@suse.de>
Wed, 30 Nov 2011 15:26:21 +0000 (16:26 +0100)
committerAnthony Liguori <aliguori@us.ibm.com>
Thu, 15 Dec 2011 15:27:23 +0000 (09:27 -0600)
commit56384e8b1eebac750e6186f5041af710433ddc9e
tree978f8b20d21e626cd5b94a76ce4b701381098988
parent15d37e709fa809f1b64d3ad81965f3d8200e828a
exec.c: Fix subpage memory access to RAM MemoryRegion

Commit 95c318f5e1f88d7e5bcc6deac17330fd4806a2d3 (Fix segfault in mmio
subpage handling code.) prevented a segfault by making all subpage
registrations over an existing memory page perform an unassigned access.
Symptoms were writes not taking effect and reads returning zero.

Very small page sizes are not currently supported either,
so subpage memory areas cannot fully be avoided.

Therefore change the previous fix to use a new IO_MEM_SUBPAGE_RAM
instead of IO_MEM_UNASSIGNED. Suggested by Avi.

Reviewed-by: Avi Kivity <avi@redhat.com>
Signed-off-by: Andreas Färber <afaerber@suse.de>
Cc: Avi Kivity <avi@redhat.com>
Cc: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
cpu-common.h
exec.c