summaryrefslogtreecommitdiff
path: root/hw/wm8750.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2011-11-13 17:18:57 +0000
committerAlexander Graf <agraf@suse.de>2011-11-18 14:22:45 +0100
commit92c93a816a8c04071264f9fb47cbc90a5e1ae5d8 (patch)
tree7f0d3f492a2991c8b1c8b44e0a620e389609450c /hw/wm8750.c
parentee2b39946312952f5aa99cf9b7bab238cd5b6329 (diff)
downloadqemu-92c93a816a8c04071264f9fb47cbc90a5e1ae5d8.tar.gz
qemu-92c93a816a8c04071264f9fb47cbc90a5e1ae5d8.tar.bz2
qemu-92c93a816a8c04071264f9fb47cbc90a5e1ae5d8.zip
pseries: Correct RAM size check for SLOF
The SLOF firmware used on the pseries machine needs a reasonable amount of (guest) RAM in order to run, so we have a check in the machine init function to check that this is available. However, SLOF runs in real mode (MMU off) which means it can only actually access the RMA (Real Mode Area), not all of RAM. In many cases the RMA is the same as all RAM, but when running with Book3S HV KVM on PowerPC 970, the RMA must be especially allocated to be (host) physically contiguous. In this case, the RMA size is determined by what the host admin allocated at boot time, and will usually be less than the whole guest RAM size. This patch corrects the test to see if SLOF has enough memory for this case. In addition, more recent versions of SLOF that were committed earlier don't need quite as much memory as earlier versions. Therefore, this patch also reduces the amount of RAM we require to run SLOF. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'hw/wm8750.c')
0 files changed, 0 insertions, 0 deletions