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)
committerJustin M. Forbes <jforbes@redhat.com>
Tue, 10 Jan 2012 15:22:55 +0000 (09:22 -0600)
commitc6d260b736d9968cbdfc29fc56c184668361feda
tree64a9e417fcf31a479b0c8f7448985af95758fa48
parent9b87c5f8eb646f87cc2c346046fbd10e543f67af
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