Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 96923
b: refs/heads/master
c: 54aaace
h: refs/heads/master
i:
  96921: 04c5d0d
  96919: 3ec9341
v: v3
  • Loading branch information
Marcelo Tosatti authored and Avi Kivity committed May 18, 2008
1 parent 4d5382f commit a811aae
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: 1fc9d2bf75bbe5482cc503681dae0935df29b6b0
refs/heads/master: 54aaacee35afd594bba3244c20b02cc98d80a961
2 changes: 1 addition & 1 deletion trunk/arch/x86/kvm/lapic.c
Original file line number Diff line number Diff line change
Expand Up @@ -957,7 +957,7 @@ int apic_has_pending_timer(struct kvm_vcpu *vcpu)
{
struct kvm_lapic *lapic = vcpu->arch.apic;

if (lapic)
if (lapic && apic_enabled(lapic) && apic_lvt_enabled(lapic, APIC_LVTT))
return atomic_read(&lapic->timer.pending);

return 0;
Expand Down

0 comments on commit a811aae

Please sign in to comment.