aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/hvm/vioapic.c
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2007-12-12 11:08:21 +0000
committerKeir Fraser <keir.fraser@citrix.com>2007-12-12 11:08:21 +0000
commit73f67c0d9a0a3dff0fe27e977706492316126a1e (patch)
treee8b4b68fc318471f7721edd62de4b8ecf0b61f4c /xen/arch/x86/hvm/vioapic.c
parentba25075759a192b3ec87ece653801af25f2ebee1 (diff)
downloadxen-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.c2
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 = &current->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)