Home
last modified time | relevance | path

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

/linux-6.12.1/arch/x86/coco/
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-6.12.1/arch/x86/boot/compressed/
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()
Didt_64.c71 if (sev_status & BIT(1)) in load_stage2_idt()
Dmem_encrypt.S261 movl (sev_status - 0b)(%ebp), %eax
312 SYM_DATA(sev_status, .quad 0)
Dhead_64.S196 movl $1, rva(sev_status)(%ebp)
/linux-6.12.1/arch/x86/include/asm/
Dmem_encrypt.h32 extern u64 sev_status;
72 #define sev_status 0ULL macro
/linux-6.12.1/arch/x86/mm/
Dmem_encrypt_amd.c45 u64 sev_status __section(".data") = 0;
483 if (sev_status & MSR_AMD64_SEV_ES_ENABLED) in sme_early_init()
493 if (sev_status & MSR_AMD64_SEV_ENABLED) in sme_early_init()
500 if (sev_status & MSR_AMD64_SEV_SNP_ENABLED) { in sme_early_init()
Dmem_encrypt_identity.c305 RIP_REL_REF(sev_status) & MSR_AMD64_SEV_ENABLED) in sme_encrypt_kernel()
531 RIP_REL_REF(sev_status) = msr = __rdmsr(MSR_AMD64_SEV); in sme_enable()
/linux-6.12.1/arch/x86/kernel/
Dsev_verify_cbit.S30 movq sev_status(%rip), %rsi
/linux-6.12.1/arch/x86/hyperv/
Divm.c339 vmsa->sev_features = sev_status >> 2; in hv_snp_boot_ap()
644 sev_status = MSR_AMD64_SNP_VTOM; in hv_vtom_init()
/linux-6.12.1/arch/x86/coco/sev/
Dcore.c870 if (!(RIP_REL_REF(sev_status) & MSR_AMD64_SEV_SNP_ENABLED)) in early_snp_set_memory_private()
889 if (!(RIP_REL_REF(sev_status) & MSR_AMD64_SEV_SNP_ENABLED)) in early_snp_set_memory_shared()
1202 vmsa->sev_features = sev_status >> 2; in wakeup_cpu_via_vmgexit()
1797 if (sev_status & MSR_AMD64_SNP_DEBUG_SWAP) in vc_handle_dr7_write()
1837 if (sev_status & MSR_AMD64_SNP_DEBUG_SWAP) in vc_handle_dr7_read()
2543 if (sev_status & BIT_ULL(i)) { in sev_show_status()