KVM: VMX: remove hack that disables emulation on vcpu reset/init
authorGleb Natapov <gleb@redhat.com>
Mon, 21 Jan 2013 13:36:44 +0000 (15:36 +0200)
committerMarcelo Tosatti <mtosatti@redhat.com>
Thu, 24 Jan 2013 02:40:27 +0000 (00:40 -0200)
There is no reason for it. If state is suitable for vmentry it
will be detected during guest entry and no emulation will happen.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/vmx.c

index f942b201b3453a91be118b9a7c755b01c81d53b4..20409bd5eb4aa3655fdd3a885b30cf087ba07858 100644 (file)
@@ -4035,9 +4035,6 @@ static int vmx_vcpu_reset(struct kvm_vcpu *vcpu)
 
        ret = 0;
 
-       /* HACK: Don't enable emulation on guest boot/reset */
-       vmx->emulation_required = 0;
-
        return ret;
 }