Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146503
b: refs/heads/master
c: 61c50ed
h: refs/heads/master
i:
  146501: 8f1b736
  146499: b6dd3b2
  146495: 3a9e2ad
v: v3
  • Loading branch information
Gleb Natapov authored and Avi Kivity committed Jun 10, 2009
1 parent 82aa016 commit 094541c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 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: 7fe29e0faacb650d31b9e9f538203a157bec821d
refs/heads/master: 61c50edfcd40be9126579f9cec68c789b6089998
10 changes: 1 addition & 9 deletions trunk/arch/x86/kvm/svm.c
Original file line number Diff line number Diff line change
Expand Up @@ -2346,15 +2346,7 @@ static void kvm_reput_irq(struct vcpu_svm *svm)

static void svm_do_inject_vector(struct vcpu_svm *svm)
{
struct kvm_vcpu *vcpu = &svm->vcpu;
int word_index = __ffs(vcpu->arch.irq_summary);
int bit_index = __ffs(vcpu->arch.irq_pending[word_index]);
int irq = word_index * BITS_PER_LONG + bit_index;

clear_bit(bit_index, &vcpu->arch.irq_pending[word_index]);
if (!vcpu->arch.irq_pending[word_index])
clear_bit(word_index, &vcpu->arch.irq_summary);
svm_inject_irq(svm, irq);
svm_inject_irq(svm, pop_irq(&svm->vcpu));
}

static void do_interrupt_requests(struct kvm_vcpu *vcpu,
Expand Down

0 comments on commit 094541c

Please sign in to comment.