Patchwork kvm: x86: Remove redundant mp_state initialization

login
register
mail settings
Submitter Jan Kiszka
Date Dec. 31, 2010, 1:08 p.m.
Message ID <4D1DD5CE.2020907@web.de>
Download mbox | patch
Permalink /patch/77077/
State New
Headers show

Comments

Jan Kiszka - Dec. 31, 2010, 1:08 p.m.
From: Jan Kiszka <jan.kiszka@siemens.com>

kvm_arch_reset_vcpu initializes mp_state, and that function is invoked
right after kvm_arch_init_vcpu.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
---
 target-i386/kvm.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)

Patch

diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 32310fa..dcac3d8 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -381,8 +381,6 @@  int kvm_arch_init_vcpu(CPUState *env)
     uint32_t signature[3];
 #endif
 
-    env->mp_state = KVM_MP_STATE_RUNNABLE;
-
     env->cpuid_features &= kvm_x86_get_supported_cpuid(1, 0, R_EDX);
 
     i = env->cpuid_ext_features & CPUID_EXT_HYPERVISOR;