From: Steffen Eiden This change is a preparation for introducing CIF_MCCK_SAE as a new type of guest for which MCCKs can be forwarded, so specify the guest type explicitly in the name. Signed-off-by: Steffen Eiden Signed-off-by: Andreas Grapentin Acked-by: Heiko Carstens --- arch/s390/include/asm/processor.h | 4 ++-- arch/s390/kernel/entry.S | 2 +- arch/s390/kernel/nmi.c | 14 +++++++------- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/arch/s390/include/asm/processor.h b/arch/s390/include/asm/processor.h index 9434c76c25b8..757b0b56d50c 100644 --- a/arch/s390/include/asm/processor.h +++ b/arch/s390/include/asm/processor.h @@ -15,11 +15,11 @@ #include #define CIF_ENABLED_WAIT 5 /* in enabled wait state */ -#define CIF_MCCK_GUEST 6 /* machine check happening in guest */ +#define CIF_MCCK_SIE 6 /* machine check happening in SIE guest */ #define CIF_DEDICATED_CPU 7 /* this CPU is dedicated */ #define _CIF_ENABLED_WAIT BIT(CIF_ENABLED_WAIT) -#define _CIF_MCCK_GUEST BIT(CIF_MCCK_GUEST) +#define _CIF_MCCK_SIE BIT(CIF_MCCK_SIE) #define _CIF_DEDICATED_CPU BIT(CIF_DEDICATED_CPU) #define RESTART_FLAG_CTLREGS _AC(1 << 0, U) diff --git a/arch/s390/kernel/entry.S b/arch/s390/kernel/entry.S index bee1083ff214..b53193deff93 100644 --- a/arch/s390/kernel/entry.S +++ b/arch/s390/kernel/entry.S @@ -545,7 +545,7 @@ SYM_CODE_START(mcck_int_handler) larl %r14,.Lsie_leave clgrjhe %r9,%r14, 4f lg %r10,__LC_PCPU(%r13) - oi __PCPU_FLAGS+7(%r10), _CIF_MCCK_GUEST + oi __PCPU_FLAGS+7(%r10),_CIF_MCCK_SIE 4: BPENTER __SF_SIE_FLAGS(%r15),_TIF_ISOLATE_BP_GUEST SIEEXIT __SF_SIE_CONTROL(%r15),%r13 #endif diff --git a/arch/s390/kernel/nmi.c b/arch/s390/kernel/nmi.c index 56a15edc65d7..5ff85bb01d94 100644 --- a/arch/s390/kernel/nmi.c +++ b/arch/s390/kernel/nmi.c @@ -302,7 +302,7 @@ static bool notrace nmi_registers_valid(union mci mci) * appropriate actions. The host vector or FPU values have been * saved by KVM and will be restored by KVM. */ - if (!mci.vr && !test_cpu_flag(CIF_MCCK_GUEST)) + if (!mci.vr && !test_cpu_flag(CIF_MCCK_SIE)) return false; if (!mci.ar) return false; @@ -319,7 +319,7 @@ static bool notrace nmi_registers_valid(union mci mci) * KVM and are not affected. */ cr2.reg = get_lowcore()->cregs_save_area[2]; - if (cr2.gse && !mci.gs && !test_cpu_flag(CIF_MCCK_GUEST)) + if (cr2.gse && !mci.gs && !test_cpu_flag(CIF_MCCK_SIE)) return false; if (!mci.ms || !mci.pm || !mci.ia) return false; @@ -386,7 +386,7 @@ void notrace s390_do_machine_check(struct pt_regs *regs) * including Delayed Access Exception into the guest * instead of damaging the host if they happen in the guest. */ - if (mci.pd && !test_cpu_flag(CIF_MCCK_GUEST)) { + if (mci.pd && !test_cpu_flag(CIF_MCCK_SIE)) { if (mci.b) { /* Processing backup -> verify if we can survive this */ u64 z_mcic, o_mcic, t_mcic; @@ -437,7 +437,7 @@ void notrace s390_do_machine_check(struct pt_regs *regs) * Backup the machine check's info if it happens when the guest * is running. */ - if (test_cpu_flag(CIF_MCCK_GUEST)) + if (test_cpu_flag(CIF_MCCK_SIE)) s390_backup_mcck_info(regs); if (mci.cd) { @@ -456,7 +456,7 @@ void notrace s390_do_machine_check(struct pt_regs *regs) * Reinject storage related machine checks into the guest if they * happen when the guest is running. */ - if (!test_cpu_flag(CIF_MCCK_GUEST)) { + if (!test_cpu_flag(CIF_MCCK_SIE)) { /* Storage error uncorrected */ if (mci.se) s390_handle_damage(); @@ -484,12 +484,12 @@ void notrace s390_do_machine_check(struct pt_regs *regs) * because they refer to host conditions only. */ mcck_dam_code = (mci.val & MCIC_SUBCLASS_MASK); - if (test_cpu_flag(CIF_MCCK_GUEST) && + if (test_cpu_flag(CIF_MCCK_SIE) && (mcck_dam_code & MCCK_CODE_NO_GUEST) != mcck_dam_code) { /* Set sie return code for host's later handling */ ((struct stack_frame *)regs->gprs[15])->sie_return = SIE64_RETURN_MCCK; } - clear_cpu_flag(CIF_MCCK_GUEST); + clear_cpu_flag(CIF_MCCK_SIE); if (mcck_pending) schedule_mcck_handler(); -- 2.55.0