Home
last modified time | relevance | path

Searched refs:sev_status (Results 1 - 14 of 14) sorted by relevance

/kernel/linux/linux-6.6/arch/x86/coco/
H A Dcore.c65 if (sev_status & MSR_AMD64_SNP_VTOM) in amd_cc_platform_has()
73 return sme_me_mask && !(sev_status & MSR_AMD64_SEV_ENABLED); in amd_cc_platform_has()
76 return sev_status & MSR_AMD64_SEV_ENABLED; in amd_cc_platform_has()
79 return sev_status & MSR_AMD64_SEV_ES_ENABLED; in amd_cc_platform_has()
86 return (sev_status & MSR_AMD64_SEV_ENABLED) && in amd_cc_platform_has()
87 !(sev_status & MSR_AMD64_SEV_ES_ENABLED); in amd_cc_platform_has()
90 return sev_status & MSR_AMD64_SEV_SNP_ENABLED; in amd_cc_platform_has()
124 if (sev_status & MSR_AMD64_SNP_VTOM) in cc_mkenc()
140 if (sev_status & MSR_AMD64_SNP_VTOM) in cc_mkdec()
/kernel/linux/linux-5.10/arch/x86/kernel/
H A Dcc_platform.c45 return sme_me_mask && !(sev_status & MSR_AMD64_SEV_ENABLED); in amd_cc_platform_has()
48 return sev_status & MSR_AMD64_SEV_ENABLED; in amd_cc_platform_has()
51 return sev_status & MSR_AMD64_SEV_ES_ENABLED; in amd_cc_platform_has()
/kernel/linux/linux-6.6/arch/x86/boot/compressed/
H A Dsev.c130 return sev_status & MSR_AMD64_SEV_SNP_ENABLED; in sev_snp_enabled()
398 unsupported = snp_get_unsupported_features(sev_status); in snp_check_features()
486 sev_status = m.q; in sev_enable()
487 if (!(sev_status & MSR_AMD64_SEV_ENABLED)) in sev_enable()
491 if (sev_status & MSR_AMD64_SEV_ES_ENABLED) { in sev_enable()
500 if (sev_status & MSR_AMD64_SEV_SNP_ENABLED) { in sev_enable()
507 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 Dhead_64.S190 * Set MSR_AMD64_SEV_ENABLED_BIT in sev_status so that
192 * initialize sev_status with all the bits reported by
196 movl $1, rva(sev_status)(%ebp)
/kernel/linux/linux-6.6/arch/x86/include/asm/
H A Dmem_encrypt.h29 extern u64 sev_status;
65 #define sev_status 0ULL macro
/kernel/linux/linux-5.10/arch/x86/mm/
H A Dmem_encrypt.c42 u64 sev_status __section(".data") = 0;
353 return sev_status & MSR_AMD64_SEV_ENABLED; in sev_active()
360 return sev_status & MSR_AMD64_SEV_ES_ENABLED; in sev_es_active()
H A Dmem_encrypt_identity.c534 sev_status = __rdmsr(MSR_AMD64_SEV); in sme_enable()
535 feature_mask = (sev_status & MSR_AMD64_SEV_ENABLED) ? AMD_SEV_BIT : AMD_SME_BIT; in sme_enable()
/kernel/linux/linux-6.6/arch/x86/mm/
H A Dmem_encrypt_amd.c47 u64 sev_status __section(".data") = 0;
519 if (sev_status & MSR_AMD64_SEV_ES_ENABLED) in sme_early_init()
529 if (sev_status & MSR_AMD64_SEV_ENABLED) in sme_early_init()
H A Dmem_encrypt_identity.c308 if (!sme_get_me_mask() || sev_status & MSR_AMD64_SEV_ENABLED) in sme_encrypt_kernel()
545 sev_status = __rdmsr(MSR_AMD64_SEV); in sme_enable()
546 feature_mask = (sev_status & MSR_AMD64_SEV_ENABLED) ? AMD_SEV_BIT : AMD_SME_BIT; in sme_enable()
549 if (snp && !(sev_status & MSR_AMD64_SEV_SNP_ENABLED)) in sme_enable()
/kernel/linux/linux-5.10/arch/x86/include/asm/
H A Dmem_encrypt.h23 extern u64 sev_status;
/kernel/linux/linux-6.6/arch/x86/hyperv/
H A Divm.c338 vmsa->sev_features = sev_status >> 2; in hv_snp_boot_ap()
584 * so SEV initialization is bypassed and sev_status isn't set. in hv_vtom_init()
587 * Note: if CONFIG_AMD_MEM_ENCRYPT is not set, sev_status is in hv_vtom_init()
592 sev_status = MSR_AMD64_SNP_VTOM; in hv_vtom_init()
/kernel/linux/linux-5.10/arch/x86/boot/compressed/
H A Dhead_64.S181 * Mark SEV as active in sev_status so that startup32_check_sev_cbit()
182 * will do a check. The sev_status memory will be fully initialized
187 movl $1, rva(sev_status)(%ebp)
844 /* Check for non-zero sev_status */
845 movl rva(sev_status)(%ebp), %eax
/kernel/linux/linux-6.6/arch/x86/kernel/
H A Dsev.c751 if (!(sev_status & MSR_AMD64_SEV_SNP_ENABLED)) in early_snp_set_memory_private()
770 if (!(sev_status & MSR_AMD64_SEV_SNP_ENABLED)) in early_snp_set_memory_shared()
1067 vmsa->sev_features = sev_status >> 2; in wakeup_cpu_via_vmgexit()
1610 if (sev_status & MSR_AMD64_SNP_DEBUG_SWAP) in vc_handle_dr7_write()
1650 if (sev_status & MSR_AMD64_SNP_DEBUG_SWAP) in vc_handle_dr7_read()

Completed in 10 milliseconds