summaryrefslogtreecommitdiff
path: root/kvm-all.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-11-06 19:39:24 +0100
committerAnthony Liguori <aliguori@us.ibm.com>2009-11-17 08:49:37 -0600
commit801ab6d94d2b8ce49a65258b8507e904499a3578 (patch)
treee0971cfe7f512a77388a525e388cfee8f48be66f /kvm-all.c
parent94c1e580dc3b29a94cf8900f009aa80936bc87d5 (diff)
downloadqemu-801ab6d94d2b8ce49a65258b8507e904499a3578.tar.gz
qemu-801ab6d94d2b8ce49a65258b8507e904499a3578.tar.bz2
qemu-801ab6d94d2b8ce49a65258b8507e904499a3578.zip
kvm: Add arch reset handler
Will be required by succeeding changes. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'kvm-all.c')
-rw-r--r--kvm-all.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/kvm-all.c b/kvm-all.c
index 1916ec604a..b605caaef4 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -150,6 +150,7 @@ static void kvm_reset_vcpu(void *opaque)
{
CPUState *env = opaque;
+ kvm_arch_reset_vcpu(env);
if (kvm_arch_put_registers(env)) {
fprintf(stderr, "Fatal: kvm vcpu reset failed\n");
abort();
@@ -201,6 +202,7 @@ int kvm_init_vcpu(CPUState *env)
ret = kvm_arch_init_vcpu(env);
if (ret == 0) {
qemu_register_reset(kvm_reset_vcpu, env);
+ kvm_arch_reset_vcpu(env);
ret = kvm_arch_put_registers(env);
}
err: