Home
last modified time | relevance | path

Searched refs:sev_status (Results 1 – 10 of 10) sorted by relevance

/linux/arch/x86/coco/
H A Dcore.c73 if (sev_status & MSR_AMD64_SNP_VTOM) in amd_cc_platform_has()
81 return sme_me_mask && !(sev_status & MSR_AMD64_SEV_ENABLED); in amd_cc_platform_has()
84 return sev_status & MSR_AMD64_SEV_ENABLED; in amd_cc_platform_has()
87 return sev_status & MSR_AMD64_SEV_ES_ENABLED; in amd_cc_platform_has()
94 return (sev_status & MSR_AMD64_SEV_ENABLED) && in amd_cc_platform_has()
95 !(sev_status & MSR_AMD64_SEV_ES_ENABLED); in amd_cc_platform_has()
98 return sev_status & MSR_AMD64_SEV_SNP_ENABLED; in amd_cc_platform_has()
135 if (sev_status & MSR_AMD64_SNP_VTOM) in cc_mkenc()
151 if (sev_status & MSR_AMD64_SNP_VTOM) in cc_mkdec()
/linux/arch/x86/boot/compressed/
H A Dsev.c162 return sev_status & MSR_AMD64_SEV_SNP_ENABLED; in sev_snp_enabled()
424 unsupported = snp_get_unsupported_features(sev_status); in snp_check_features()
598 sev_status = m.q; in sev_enable()
599 if (!(sev_status & MSR_AMD64_SEV_ENABLED)) in sev_enable()
603 if (sev_status & MSR_AMD64_SEV_ES_ENABLED) { in sev_enable()
612 if (sev_status & MSR_AMD64_SEV_SNP_ENABLED) { in sev_enable()
641 if (snp && !(sev_status & MSR_AMD64_SEV_SNP_ENABLED)) in sev_enable()
H A Didt_64.c71 if (sev_status & BIT(1)) in load_stage2_idt()
H A Dmem_encrypt.S261 movl (sev_status - 0b)(%ebp), %eax
312 SYM_DATA(sev_status, .quad 0)
H A Dmisc.c397 if (sev_status & MSR_AMD64_SEV_ES_ENABLED) in early_sev_detect()
H A Dhead_64.S196 movl $1, rva(sev_status)(%ebp)
/linux/arch/x86/include/asm/
H A Dmem_encrypt.h32 extern u64 sev_status;
72 #define sev_status 0ULL macro
/linux/arch/x86/kernel/
H A Dsev_verify_cbit.S30 movq sev_status(%rip), %rsi
/linux/arch/x86/coco/sev/
H A Dcore.c814 if (!(RIP_REL_REF(sev_status) & MSR_AMD64_SEV_SNP_ENABLED)) in early_snp_set_memory_private()
833 if (!(RIP_REL_REF(sev_status) & MSR_AMD64_SEV_SNP_ENABLED)) in early_snp_set_memory_shared()
1277 vmsa->sev_features = sev_status >> 2; in wakeup_cpu_via_vmgexit()
1876 if (sev_status & MSR_AMD64_SNP_DEBUG_SWAP) in vc_handle_dr7_write()
1916 if (sev_status & MSR_AMD64_SNP_DEBUG_SWAP) in vc_handle_dr7_read()
2606 if (sev_status & BIT_ULL(i)) { in sev_show_status()
/linux/arch/x86/hyperv/
H A Divm.c339 vmsa->sev_features = sev_status >> 2; in hv_snp_boot_ap()
644 sev_status = MSR_AMD64_SNP_VTOM; in hv_vtom_init()