Skip to contentSkip to conversation

kvm: x86: Remove redundant mp_state initialization

PATCH New Jan Kiszka 1 participant 1 message Dec 31, 2010 KVM

lore
Share & tools
lore

Jan Kiszka

author
#0 lore raw

PATCH 1/1 kvm: x86: Remove redundant mp_state initialization

From: Jan Kiszka <[email protected]>

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

---
 target-i386/kvm.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
target-i386/kvm.c +0 -2
index 32310fa..dcac3d8 100644
@@ -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;
Signature · 1 line
1.7.1