diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2007-12-12 11:08:21 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2007-12-12 11:08:21 +0000 |
commit | 73f67c0d9a0a3dff0fe27e977706492316126a1e (patch) | |
tree | e8b4b68fc318471f7721edd62de4b8ecf0b61f4c /xen/arch/x86/hvm/vioapic.c | |
parent | ba25075759a192b3ec87ece653801af25f2ebee1 (diff) | |
download | xen-73f67c0d9a0a3dff0fe27e977706492316126a1e.tar.gz xen-73f67c0d9a0a3dff0fe27e977706492316126a1e.tar.bz2 xen-73f67c0d9a0a3dff0fe27e977706492316126a1e.zip |
hvm: Fix destroy_periodic_time() to not race destruction of one-shot timers.
This bug was tracked down by Dexuan Cui <dexuan.cui@intel.com>
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/vioapic.c')
-rw-r--r-- | xen/arch/x86/hvm/vioapic.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/vioapic.c b/xen/arch/x86/hvm/vioapic.c index 670cdf5979..cfc80c5aa1 100644 --- a/xen/arch/x86/hvm/vioapic.c +++ b/xen/arch/x86/hvm/vioapic.c @@ -300,7 +300,7 @@ static uint32_t ioapic_get_delivery_bitmask( static inline int pit_channel0_enabled(void) { PITState *pit = ¤t->domain->arch.hvm_domain.pl_time.vpit; - return pit->pt0.enabled; + return pt_active(&pit->pt0); } static void vioapic_deliver(struct hvm_hw_vioapic *vioapic, int irq) |