aboutsummaryrefslogtreecommitdiff
path: root/target-i386/kvm.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2011-01-21 21:48:11 +0100
committerMarcelo Tosatti <mtosatti@redhat.com>2011-01-23 02:27:21 -0200
commit3390e7f79784cbc75df408740cda4edbcf57ac58 (patch)
treef154c8081b5c1ffd08b17816efc496fa344c3faf /target-i386/kvm.c
parentc14750e8ad4a9d8d7621e2594abda34df19a6eff (diff)
downloadqemu-3390e7f79784cbc75df408740cda4edbcf57ac58.zip
qemu-3390e7f79784cbc75df408740cda4edbcf57ac58.tar.gz
qemu-3390e7f79784cbc75df408740cda4edbcf57ac58.tar.bz2
kvm: x86: Remove redundant mp_state initialization
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> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'target-i386/kvm.c')
-rw-r--r--target-i386/kvm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/target-i386/kvm.c b/target-i386/kvm.c
index 531b69e..07c75c0 100644
--- a/target-i386/kvm.c
+++ b/target-i386/kvm.c
@@ -321,8 +321,6 @@ int kvm_arch_init_vcpu(CPUState *env)
uint32_t signature[3];
#endif
- env->mp_state = KVM_MP_STATE_RUNNABLE;
-
env->cpuid_features &= kvm_arch_get_supported_cpuid(env, 1, 0, R_EDX);
i = env->cpuid_ext_features & CPUID_EXT_HYPERVISOR;