aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/kvm/vmx.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@qumranet.com>2007-06-05 08:53:05 -0400
committerAvi Kivity <avi@qumranet.com>2007-07-16 05:05:46 -0400
commitd3bef15f84f91c73a5515ad4c6a1749f8f63afcf (patch)
tree3349c121f16a5fe0e1c30d4370573c2a9ed88bb9 /drivers/kvm/vmx.c
parentef9254df0b3aeba729e26a062803ee7d90437b5e (diff)
KVM: Move duplicate halt handling code into kvm_main.c
Will soon have a thid user. Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r--drivers/kvm/vmx.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c
index a534e6fe8184..90abd3c58c65 100644
--- a/drivers/kvm/vmx.c
+++ b/drivers/kvm/vmx.c
@@ -1896,12 +1896,7 @@ static int handle_interrupt_window(struct kvm_vcpu *vcpu,
1896static int handle_halt(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) 1896static int handle_halt(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)
1897{ 1897{
1898 skip_emulated_instruction(vcpu); 1898 skip_emulated_instruction(vcpu);
1899 if (vcpu->irq_summary) 1899 return kvm_emulate_halt(vcpu);
1900 return 1;
1901
1902 kvm_run->exit_reason = KVM_EXIT_HLT;
1903 ++vcpu->stat.halt_exits;
1904 return 0;
1905} 1900}
1906 1901
1907static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) 1902static int handle_vmcall(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run)