Patchwork [07/11] Don't call kvm cpu reset on initialization

login
register
mail settings
Submitter Glauber Costa
Date Dec. 2, 2009, 1:48 p.m.
Message ID <1259761702-4041-8-git-send-email-glommer@redhat.com>
Download mbox | patch
Permalink /patch/40075/
State New
Headers show

Comments

Glauber Costa - Dec. 2, 2009, 1:48 p.m.
All reset functions are called from the same place, and this was a leftover

Signed-off-by: Glauber Costa <glommer@redhat.com>
---
 kvm-all.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/kvm-all.c b/kvm-all.c
index 596416a..1072d63 100644
--- a/kvm-all.c
+++ b/kvm-all.c
@@ -204,8 +204,6 @@  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:
     return ret;