From: Steffen Eiden Move mcck_volatile_info from asm/kvm_host_s390_types.h to asm/kvm_host_types.h such that both KVMs can use the machine check information to be able to handle machine checks while the CPU is in the guest mode. Signed-off-by: Steffen Eiden Signed-off-by: Andreas Grapentin --- arch/s390/include/asm/kvm_host_s390_types.h | 14 -------------- arch/s390/include/asm/kvm_host_types.h | 14 ++++++++++++++ 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/arch/s390/include/asm/kvm_host_s390_types.h b/arch/s390/include/asm/kvm_host_s390_types.h index 9e348a530421..d7a5eecf0444 100644 --- a/arch/s390/include/asm/kvm_host_s390_types.h +++ b/arch/s390/include/asm/kvm_host_s390_types.h @@ -88,20 +88,6 @@ struct esca_block { struct esca_entry cpu[KVM_S390_ESCA_CPU_SLOTS]; }; -/* - * This struct is used to store some machine check info from lowcore - * for machine checks that happen while the guest is running. - * This info in host's lowcore might be overwritten by a second machine - * check from host when host is in the machine check's high-level handling. - * The size is 24 bytes. - */ -struct mcck_volatile_info { - __u64 mcic; - __u64 failing_storage_address; - __u32 ext_damage_code; - __u32 reserved; -}; - #define CR0_INITIAL_MASK (CR0_UNUSED_56 | CR0_INTERRUPT_KEY_SUBMASK | \ CR0_MEASUREMENT_ALERT_SUBMASK) #define CR14_INITIAL_MASK (CR14_UNUSED_32 | CR14_UNUSED_33 | \ diff --git a/arch/s390/include/asm/kvm_host_types.h b/arch/s390/include/asm/kvm_host_types.h index d308739ebcf5..4cb7c35f11d4 100644 --- a/arch/s390/include/asm/kvm_host_types.h +++ b/arch/s390/include/asm/kvm_host_types.h @@ -3,6 +3,20 @@ #ifndef ASM_KVM_HOST_TYPES_H #define ASM_KVM_HOST_TYPES_H +#include + +/* + * Stores machine check info from the lowcore for machine checks that occur + * while a guest is running. The lowcore fields may be overwritten by a + * subsequent host machine check before high-level handling runs. + */ +struct mcck_volatile_info { + __u64 mcic; + __u64 failing_storage_address; + __u32 ext_damage_code; + __u32 reserved; +}; + #ifdef KVM_S390_ARM64 #include #else -- 2.55.0