Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96917
b: refs/heads/master
c: eedaa4e
h: refs/heads/master
i:
  96915: 79b641a
v: v3
  • Loading branch information
Marcelo Tosatti authored and Avi Kivity committed May 18, 2008
1 parent 7abecb7 commit 8d4a814
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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: 5ca9fd54e3d75489ff9c70d7af6e0b9a390dd656
refs/heads/master: eedaa4e2af681a266c084c410238855bdfbc2787
2 changes: 1 addition & 1 deletion trunk/arch/x86/kvm/i8254.c
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ int pit_has_pending_timer(struct kvm_vcpu *vcpu)
{
struct kvm_pit *pit = vcpu->kvm->arch.vpit;

if (pit && vcpu->vcpu_id == 0)
if (pit && vcpu->vcpu_id == 0 && pit->pit_state.inject_pending)
return atomic_read(&pit->pit_state.pit_timer.pending);

return 0;
Expand Down

0 comments on commit 8d4a814

Please sign in to comment.