Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

xen: add wc_sec_hi to struct shared_info

Xen added this in 2015 (Xen 4.6). On x86_64 and Arm it fills what was
previously a 32-bit hole in the generic shared_info structure; on
i386 it had to go at the end of struct arch_shared_info.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>

+6 -1
+3
arch/x86/include/asm/xen/interface.h
··· 182 182 unsigned long p2m_cr3; /* cr3 value of the p2m address space */ 183 183 unsigned long p2m_vaddr; /* virtual address of the p2m list */ 184 184 unsigned long p2m_generation; /* generation count of p2m mapping */ 185 + #ifdef CONFIG_X86_32 186 + uint32_t wc_sec_hi; 187 + #endif 185 188 }; 186 189 #endif /* !__ASSEMBLY__ */ 187 190
+3 -1
include/xen/interface/xen.h
··· 598 598 * their gettimeofday() syscall on this wallclock-base value. 599 599 */ 600 600 struct pvclock_wall_clock wc; 601 - 601 + #ifndef CONFIG_X86_32 602 + uint32_t wc_sec_hi; 603 + #endif 602 604 struct arch_shared_info arch; 603 605 604 606 };