summaryrefslogtreecommitdiff
path: root/target-ppc/kvm.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2012-09-12 16:57:11 +0000
committerAlexander Graf <agraf@suse.de>2012-10-04 15:54:17 +0200
commitc8787ad477f3be5a971b877dcb1bae5752c5796a (patch)
tree94b61634a740c5798a4275975eaac4bb844d676a /target-ppc/kvm.c
parent048706d971c1830d7813052ca027ae00c519e894 (diff)
downloadqemu-c8787ad477f3be5a971b877dcb1bae5752c5796a.tar.gz
pseries: Use new method to correct reset sequence
A number of things need to occur during reset of the PAPR paravirtualized platform in a specific order. For example, the hash table needs to be cleared before the CPUs are reset, so that they initialize their register state correctly, and the CPUs need to have their main reset called before we set up the entry point state on the boot cpu. We also need to have the main qdev reset happen before the creation and installation of the device tree for the new boot, because we need the state of the devices settled to correctly construct the device tree. We currently do the pseries once-per-reset initializations done from a reset handler. However we can't adequately control when this handler is called during the reset - in particular we can't guarantee it happens after all the qdev resets (since qdevs might be registered after the machine init function has executed). This patch uses the new QEMUMachine reset method to to fix this problem, ensuring the various order dependent reset steps happen in the correct order. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Andreas Färber <afaerber@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc/kvm.c')
0 files changed, 0 insertions, 0 deletions