Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202295
b: refs/heads/master
c: 9fb2d2b
h: refs/heads/master
i:
  202293: 38226f9
  202291: 77ee4ca
  202287: d402902
v: v3
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed Aug 1, 2010
1 parent 6ade834 commit b982e06
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: f78978aa3a8222f7822f15fba5dbaea990ef0887
refs/heads/master: 9fb2d2b4ff292a01ae30da003d1dc097917b0988
6 changes: 3 additions & 3 deletions trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2917,9 +2917,6 @@ static inline void svm_inject_irq(struct vcpu_svm *svm, int irq)
{
struct vmcb_control_area *control;

trace_kvm_inj_virq(irq);

++svm->vcpu.stat.irq_injections;
control = &svm->vmcb->control;
control->int_vector = irq;
control->int_ctl &= ~V_INTR_PRIO_MASK;
Expand All @@ -2933,6 +2930,9 @@ static void svm_set_irq(struct kvm_vcpu *vcpu)

BUG_ON(!(gif_set(svm)));

trace_kvm_inj_virq(vcpu->arch.interrupt.nr);
++vcpu->stat.irq_injections;

svm->vmcb->control.event_inj = vcpu->arch.interrupt.nr |
SVM_EVTINJ_VALID | SVM_EVTINJ_TYPE_INTR;
}
Expand Down

0 comments on commit b982e06

Please sign in to comment.