From: Gleb Natapov Date: Mon, 21 Jan 2013 13:36:44 +0000 (+0200) Subject: KVM: VMX: remove hack that disables emulation on vcpu reset/init X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=286da4156dc65c8a054580fdd96b7709132dce8d;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Marcelo Tosatti --- diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index f942b201b345..20409bd5eb4a 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; }