aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/domain.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@novell.com>2011-07-19 14:10:53 +0100
committerJan Beulich <jbeulich@novell.com>2011-07-19 14:10:53 +0100
commit876895c30294a8caead2386dcb7d17af88ed7cfd (patch)
tree4b6d42f576de3c67bdecb94276f718387badb0de /xen/include/asm-x86/domain.h
parente4c3755d4dd746511a87b9f7da7199fcd3ee0333 (diff)
downloadxen-876895c30294a8caead2386dcb7d17af88ed7cfd.tar.gz
xen-876895c30294a8caead2386dcb7d17af88ed7cfd.tar.bz2
xen-876895c30294a8caead2386dcb7d17af88ed7cfd.zip
x86: consistently serialize CMOS/RTC accesses on rtc_lock
Since RTC/CMOS accesses aren't atomic, there are possible races between code paths setting the index register and subsequently reading/writing the data register. This is supposed to be dealt with by acquiring rtc_lock, but two places up to now lacked respective synchronization: Accesses to the EFI time functions and smpboot_{setup,restore}_warm_reset_vector(). This in turn requires no longer directly passing through guest writes to the index register, but instead using a machanism similar to that for PCI config space method 1 accesses. Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/asm-x86/domain.h')
-rw-r--r--xen/include/asm-x86/domain.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h
index 382e2dbcb2..3e4408a0b9 100644
--- a/xen/include/asm-x86/domain.h
+++ b/xen/include/asm-x86/domain.h
@@ -258,6 +258,7 @@ struct arch_domain
/* I/O-port admin-specified access capabilities. */
struct rangeset *ioport_caps;
uint32_t pci_cf8;
+ uint8_t cmos_idx;
struct list_head pdev_list;