summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGleb Natapov <gleb@redhat.com>2013-01-21 15:36:44 +0200
committerMarcelo Tosatti <mtosatti@redhat.com>2013-01-24 00:40:27 -0200
commit286da4156dc65c8a054580fdd96b7709132dce8d (patch)
tree85aa926f5c2e8e9f9f032b09760ee4a10b54ef88
parentc5e97c80b5ddd6139bdadcbd44e263c2a3e7fae6 (diff)
downloadop-kernel-dev-286da4156dc65c8a054580fdd96b7709132dce8d.zip
op-kernel-dev-286da4156dc65c8a054580fdd96b7709132dce8d.tar.gz
KVM: VMX: remove hack that disables emulation on vcpu reset/init
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>
-rw-r--r--arch/x86/kvm/vmx.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c
index f942b20..20409bd 100644
--- a/arch/x86/kvm/vmx.c
+++ b/arch/x86/kvm/vmx.c
@@ -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;
}
OpenPOWER on IntegriCloud