exec.c: Fix subpage memory access to RAM MemoryRegion
commit2061800b85ddcc9b34b5ccbfaa87f7e8b94626a6
authorAndreas Färber <afaerber@suse.de>
Wed, 30 Nov 2011 15:26:21 +0000 (30 16:26 +0100)
committerJustin M. Forbes <jforbes@redhat.com>
Tue, 10 Jan 2012 15:22:55 +0000 (10 09:22 -0600)
tree64a9e417fcf31a479b0c8f7448985af95758fa48
parent0b23c5d40ea933cfece3b4f69427f79c8a23256d
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