diff options
author | Alexander Graf <agraf@suse.de> | 2010-08-05 06:24:40 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-10-24 04:52:14 -0400 |
commit | 9ee18b1e08e6a5648aeaaf998eabc72b5304cc17 (patch) | |
tree | 8d474d9652d47e5287386e0c6ee6482554ad94a0 /arch/powerpc/kvm/book3s.c | |
parent | 512ba59ed9c580b5e5575beda0041bb19a641127 (diff) |
KVM: PPC: Update int_pending also on dequeue
When having a decrementor interrupt pending, the dequeuing happens manually
through an mtdec instruction. This instruction simply calls dequeue on that
interrupt, so the int_pending hint doesn't get updated.
This patch enables updating the int_pending hint also on dequeue, thus
correctly enabling guests to stay in guest contexts more often.
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/powerpc/kvm/book3s.c')
-rw-r--r-- | arch/powerpc/kvm/book3s.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/powerpc/kvm/book3s.c b/arch/powerpc/kvm/book3s.c index 02a9cb165d53..7adea6320654 100644 --- a/arch/powerpc/kvm/book3s.c +++ b/arch/powerpc/kvm/book3s.c | |||
@@ -201,6 +201,9 @@ static void kvmppc_book3s_dequeue_irqprio(struct kvm_vcpu *vcpu, | |||
201 | { | 201 | { |
202 | clear_bit(kvmppc_book3s_vec2irqprio(vec), | 202 | clear_bit(kvmppc_book3s_vec2irqprio(vec), |
203 | &vcpu->arch.pending_exceptions); | 203 | &vcpu->arch.pending_exceptions); |
204 | |||
205 | if (!vcpu->arch.pending_exceptions) | ||
206 | vcpu->arch.shared->int_pending = 0; | ||
204 | } | 207 | } |
205 | 208 | ||
206 | void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec) | 209 | void kvmppc_book3s_queue_irqprio(struct kvm_vcpu *vcpu, unsigned int vec) |