Skip to content

Commit

Permalink
KVM: VMX: remove hack that disables emulation on vcpu reset/init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gleb Natapov authored and Marcelo Tosatti committed Jan 24, 2013
1 parent c5e97c8 commit 286da41
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 286da41

Please sign in to comment.