Skip to content

Commit

Permalink
xen: add wc_sec_hi to struct shared_info
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
dwmw2 committed Feb 4, 2021
1 parent 13ffb97 commit 4238704
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
3 changes: 3 additions & 0 deletions arch/x86/include/asm/xen/interface.h
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,9 @@ struct arch_shared_info {
unsigned long p2m_cr3; /* cr3 value of the p2m address space */
unsigned long p2m_vaddr; /* virtual address of the p2m list */
unsigned long p2m_generation; /* generation count of p2m mapping */
#ifdef CONFIG_X86_32
uint32_t wc_sec_hi;
#endif
};
#endif /* !__ASSEMBLY__ */

Expand Down
4 changes: 3 additions & 1 deletion include/xen/interface/xen.h
Original file line number Diff line number Diff line change
Expand Up @@ -598,7 +598,9 @@ struct shared_info {
* their gettimeofday() syscall on this wallclock-base value.
*/
struct pvclock_wall_clock wc;

#ifndef CONFIG_X86_32
uint32_t wc_sec_hi;
#endif
struct arch_shared_info arch;

};
Expand Down

0 comments on commit 4238704

Please sign in to comment.