Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 373039
b: refs/heads/master
c: e8457c6
h: refs/heads/master
i:
  373037: 326ea96
  373035: 152ebd4
  373031: a10f7ac
  373023: 1203115
v: v3
  • Loading branch information
Jan Kiszka authored and Gleb Natapov committed Apr 14, 2013
1 parent 8018feb commit 071de94
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5f3d5799974b89100268ba813cec8db7bd0693fb
refs/heads/master: e8457c67a4ec1268ec616bd8be1d9f1cc20f1493
20 changes: 12 additions & 8 deletions trunk/arch/x86/kvm/vmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -4325,16 +4325,20 @@ static void vmx_set_nmi_mask(struct kvm_vcpu *vcpu, bool masked)

static int vmx_interrupt_allowed(struct kvm_vcpu *vcpu)
{
if (is_guest_mode(vcpu) && nested_exit_on_intr(vcpu)) {
if (is_guest_mode(vcpu)) {
struct vmcs12 *vmcs12 = get_vmcs12(vcpu);
if (to_vmx(vcpu)->nested.nested_run_pending ||
(vmcs12->idt_vectoring_info_field &
VECTORING_INFO_VALID_MASK))

if (to_vmx(vcpu)->nested.nested_run_pending)
return 0;
nested_vmx_vmexit(vcpu);
vmcs12->vm_exit_reason = EXIT_REASON_EXTERNAL_INTERRUPT;
vmcs12->vm_exit_intr_info = 0;
/* fall through to normal code, but now in L1, not L2 */
if (nested_exit_on_intr(vcpu)) {
nested_vmx_vmexit(vcpu);
vmcs12->vm_exit_reason =
EXIT_REASON_EXTERNAL_INTERRUPT;
vmcs12->vm_exit_intr_info = 0;
/*
* fall through to normal code, but now in L1, not L2
*/
}
}

return (vmcs_readl(GUEST_RFLAGS) & X86_EFLAGS_IF) &&
Expand Down

0 comments on commit 071de94

Please sign in to comment.