From 34bef0e6d5f4db553c68bd482e5e0f9487dea300 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Fri, 15 Jun 2007 15:30:49 +0100 Subject: hvm: Add locking to platform timers. Handy for correctness. Signed-off-by: Keir Fraser --- xen/include/asm-x86/hvm/vcpu.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xen/include/asm-x86/hvm/vcpu.h') diff --git a/xen/include/asm-x86/hvm/vcpu.h b/xen/include/asm-x86/hvm/vcpu.h index 75aae07b1c..b0a6956120 100644 --- a/xen/include/asm-x86/hvm/vcpu.h +++ b/xen/include/asm-x86/hvm/vcpu.h @@ -35,6 +35,9 @@ struct hvm_vcpu { struct vlapic vlapic; s64 cache_tsc_offset; u64 guest_time; + + /* Lock and list for virtual platform timers. */ + spinlock_t tm_lock; struct list_head tm_list; /* For AP startup */ -- cgit v1.2.3