diff options
author | Avi Kivity <avi@redhat.com> | 2010-04-19 05:52:53 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:17:58 -0400 |
commit | 9beeaa2d689842f7760aa16c512e6bb8182d38b6 (patch) | |
tree | 62cea0772127c4b1c0b476e46dec6830d36809c1 /arch/x86/kvm/vmx.c | |
parent | 3246af0ece6c61689847417977733f0b12dc4b6f (diff) | |
parent | a1645ce12adb6c9cc9e19d7695466204e3f017fe (diff) |
Merge branch 'perf'
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/vmx.c')
-rw-r--r-- | arch/x86/kvm/vmx.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/x86/kvm/vmx.c b/arch/x86/kvm/vmx.c index 6e5e75e0d7d3..0b896ac7e4bb 100644 --- a/arch/x86/kvm/vmx.c +++ b/arch/x86/kvm/vmx.c | |||
@@ -3652,8 +3652,11 @@ static void vmx_complete_interrupts(struct vcpu_vmx *vmx) | |||
3652 | 3652 | ||
3653 | /* We need to handle NMIs before interrupts are enabled */ | 3653 | /* We need to handle NMIs before interrupts are enabled */ |
3654 | if ((exit_intr_info & INTR_INFO_INTR_TYPE_MASK) == INTR_TYPE_NMI_INTR && | 3654 | if ((exit_intr_info & INTR_INFO_INTR_TYPE_MASK) == INTR_TYPE_NMI_INTR && |
3655 | (exit_intr_info & INTR_INFO_VALID_MASK)) | 3655 | (exit_intr_info & INTR_INFO_VALID_MASK)) { |
3656 | kvm_before_handle_nmi(&vmx->vcpu); | ||
3656 | asm("int $2"); | 3657 | asm("int $2"); |
3658 | kvm_after_handle_nmi(&vmx->vcpu); | ||
3659 | } | ||
3657 | 3660 | ||
3658 | idtv_info_valid = idt_vectoring_info & VECTORING_INFO_VALID_MASK; | 3661 | idtv_info_valid = idt_vectoring_info & VECTORING_INFO_VALID_MASK; |
3659 | 3662 | ||