diff options
Diffstat (limited to 'drivers/kvm/vmx.c')
-rw-r--r-- | drivers/kvm/vmx.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/drivers/kvm/vmx.c b/drivers/kvm/vmx.c index 90abd3c58c65..a1f51b9d482d 100644 --- a/drivers/kvm/vmx.c +++ b/drivers/kvm/vmx.c | |||
@@ -1608,8 +1608,13 @@ static int handle_exception(struct kvm_vcpu *vcpu, struct kvm_run *kvm_run) | |||
1608 | 1608 | ||
1609 | if (vcpu->rmode.active && | 1609 | if (vcpu->rmode.active && |
1610 | handle_rmode_exception(vcpu, intr_info & INTR_INFO_VECTOR_MASK, | 1610 | handle_rmode_exception(vcpu, intr_info & INTR_INFO_VECTOR_MASK, |
1611 | error_code)) | 1611 | error_code)) { |
1612 | if (vcpu->halt_request) { | ||
1613 | vcpu->halt_request = 0; | ||
1614 | return kvm_emulate_halt(vcpu); | ||
1615 | } | ||
1612 | return 1; | 1616 | return 1; |
1617 | } | ||
1613 | 1618 | ||
1614 | if ((intr_info & (INTR_INFO_INTR_TYPE_MASK | INTR_INFO_VECTOR_MASK)) == (INTR_TYPE_EXCEPTION | 1)) { | 1619 | if ((intr_info & (INTR_INFO_INTR_TYPE_MASK | INTR_INFO_VECTOR_MASK)) == (INTR_TYPE_EXCEPTION | 1)) { |
1615 | kvm_run->exit_reason = KVM_EXIT_DEBUG; | 1620 | kvm_run->exit_reason = KVM_EXIT_DEBUG; |