summaryrefslogtreecommitdiffstats
path: root/qbool.h
diff options
context:
space:
mode:
authorScott Wood <scottwood@freescale.com>2011-04-11 18:34:34 -0500
committerAlexander Graf <agraf@suse.de>2011-05-09 22:31:37 +0200
commit5666ca4ae06d20497f887241151278e266947087 (patch)
tree6e4537906ba4b3c308f2a1177564b031a5855850 /qbool.h
parentd0384d1d38f3ae13909b527ba0676429472b2807 (diff)
downloadhqemu-5666ca4ae06d20497f887241151278e266947087.zip
hqemu-5666ca4ae06d20497f887241151278e266947087.tar.gz
kvm: ppc: fixes for KVM_SET_SREGS on init
Classic/server ppc has had SREGS for a while now (though I think not always?), but it's still missing for booke. Check the capability before calling KVM_SET_SREGS. Without this, booke kvm fails to boot as of commit 84b4915dd2c0eaa86c970ffc42a68ea8ba9e48b5 (kvm: Handle kvm_init_vcpu errors). Also, don't write random stack state into the non-PVR sregs fields -- have kvm fill it in first. Eventually booke will have sregs and it will have its own capability to be tested here. However, we will want a way for platform code to request to look like the actual CPU we're running on, especially if SoC devices are being directly assigned. Signed-off-by: Scott Wood <scottwood@freescale.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'qbool.h')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud