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

x86: pvclock: Add flag to indicate that a vm was stopped by the host

This flag will be used to check if the vm was stopped by the host when a soft
lockup was detected. The host will set the flag when it stops the guest. On
resume, the guest will check this flag if a soft lockup is detected and skip
issuing the warning.

Signed-off-by: Eric B Munson <emunson@mgebm.net>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>

authored by

Eric B Munson and committed by
Avi Kivity
eae3ee7d 2246f8b5

+1
+1
arch/x86/include/asm/pvclock-abi.h
··· 40 40 } __attribute__((__packed__)); 41 41 42 42 #define PVCLOCK_TSC_STABLE_BIT (1 << 0) 43 + #define PVCLOCK_GUEST_STOPPED (1 << 1) 43 44 #endif /* __ASSEMBLY__ */ 44 45 #endif /* _ASM_X86_PVCLOCK_ABI_H */