kvm: user: ppc: fix threading bugs in main-ppc.c
commitd72caa7a8e39621131209b21c864d9bcaaabad25
authorHollis Blanchard <hollisb@us.ibm.com>
Tue, 28 Oct 2008 15:52:30 +0000 (28 16:52 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 29 Oct 2008 12:43:17 +0000 (29 14:43 +0200)
tree01850e964fcf17e048da5f0b0b6c11e7f4bdeafa
parente9491066200a0f1fe27bed069a3640f699d0c024
kvm: user: ppc: fix threading bugs in main-ppc.c

- call io_table_register() before any vcpus have started
- wait for all vcpus to exit before exiting the parent thread

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Signed-off-by: Christian Ehrhardt <ehrhardt@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
user/main-ppc.c