/openbmc/linux/arch/x86/mm/ |
H A D | mem_encrypt.c | 22 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in force_dma_unencrypted() 30 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { in force_dma_unencrypted() 54 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { in print_mem_encrypt_feature_info() 64 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in print_mem_encrypt_feature_info() 68 if (cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in print_mem_encrypt_feature_info() 72 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in print_mem_encrypt_feature_info() 81 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in mem_encrypt_init()
|
H A D | mem_encrypt_amd.c | 132 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) { in __sme_early_enc_dec() 184 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in sme_unmap_bootdata() 204 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in sme_map_bootdata() 224 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in sev_setup_arch() 328 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP) && !enc) in amd_enc_status_change_prepare() 341 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP) && enc) in amd_enc_status_change_finish() 344 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in amd_enc_status_change_finish()
|
H A D | ioremap.c | 96 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in __ioremap_check_encrypted() 116 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in __ioremap_check_other() 578 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in memremap_should_map_decrypted() 761 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in arch_memremap_can_ram_remap() 770 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { in arch_memremap_can_ram_remap() 791 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in early_memremap_pgprot_adjust() 796 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) { in early_memremap_pgprot_adjust()
|
H A D | cpu_entry_area.c | 160 if (cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) { in percpu_setup_exception_stacks()
|
/openbmc/linux/arch/powerpc/platforms/pseries/ |
H A D | cc_platform.c | 16 bool cc_platform_has(enum cc_attr attr) in cc_platform_has() function 26 EXPORT_SYMBOL_GPL(cc_platform_has);
|
H A D | svm.c | 42 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in set_memory_encrypted() 55 if (!cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in set_memory_decrypted()
|
/openbmc/linux/include/linux/ |
H A D | cc_platform.h | 109 bool cc_platform_has(enum cc_attr attr); 113 static inline bool cc_platform_has(enum cc_attr attr) { return false; } in cc_platform_has() function
|
/openbmc/linux/arch/x86/coco/ |
H A D | core.c | 104 bool noinstr cc_platform_has(enum cc_attr attr) in cc_platform_has() function 115 EXPORT_SYMBOL_GPL(cc_platform_has); 165 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in cc_random_init()
|
/openbmc/linux/arch/x86/lib/ |
H A D | iomem.c | 98 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) in memcpy_fromio() 107 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) in memcpy_toio() 116 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { in memset_io()
|
/openbmc/linux/arch/x86/realmode/ |
H A D | init.c | 73 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in sme_sev_setup_real_mode() 76 if (cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) { in sme_sev_setup_real_mode() 111 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in setup_real_mode()
|
/openbmc/linux/arch/x86/include/asm/ |
H A D | sev.h | 149 cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in sev_es_ist_enter() 155 cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in sev_es_ist_exit() 163 cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in sev_es_nmi_complete()
|
H A D | unaccepted_memory.h | 14 } else if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) { in arch_accept_memory()
|
H A D | io.h | 261 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \ 277 if (cc_platform_has(CC_ATTR_GUEST_UNROLL_STRING_IO)) { \
|
/openbmc/linux/drivers/ptp/ |
H A D | ptp_kvm_x86.c | 31 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in kvm_arch_ptp_init() 70 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in kvm_arch_ptp_exit()
|
/openbmc/linux/arch/x86/kernel/ |
H A D | pci-dma.c | 54 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in pci_swiotlb_detect() 62 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in pci_swiotlb_detect()
|
H A D | machine_kexec_64.c | 198 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in init_transition_pgtable() 238 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in init_pgtable() 336 host_mem_enc_active = cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT); in machine_kexec() 604 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in arch_kexec_post_alloc_pages() 617 if (!cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in arch_kexec_pre_free_pages()
|
H A D | eisa.c | 16 if ((xen_pv_domain() && !xen_initial_domain()) || cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in eisa_bus_probe()
|
H A D | sev.c | 661 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in get_jump_table_addr() 870 if (!cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in snp_set_memory_shared() 878 if (!cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in snp_set_memory_private() 888 if (!cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in snp_accept_memory() 1108 if (!cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in snp_set_wakeup_secondary_cpu() 1166 if (!cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in sev_es_efi_map_ghcbs() 1222 if (!cc_platform_has(CC_ATTR_GUEST_STATE_ENCRYPT)) in setup_ghcb() 1233 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in setup_ghcb() 1258 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) in setup_ghcb() 1366 if (cc_platform_has(CC_ATTR_GUEST_SEV_SNP)) { in sev_es_init_vc_handling() [all …]
|
H A D | crash_dump_64.c | 63 cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)); in elfcorehdr_read()
|
H A D | kvm.c | 437 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in sev_map_percpu_data() 581 if (!cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) || in setup_efi_kvm_sev_migration() 933 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) && in kvm_init_platform()
|
H A D | kvmclock.c | 227 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in kvmclock_init_mem()
|
/openbmc/linux/arch/x86/platform/efi/ |
H A D | efi_64.c | 295 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT) && in __map_region() 407 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in efi_update_mem_attr() 456 if (cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) in efi_runtime_update_mappings()
|
/openbmc/linux/drivers/crypto/ccp/ |
H A D | psp-dev.c | 79 cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) in psp_get_capability()
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_cache.c | 204 if (cc_platform_has(CC_ATTR_MEM_ENCRYPT)) in drm_need_swiotlb()
|
/openbmc/linux/drivers/gpu/drm/ttm/ |
H A D | ttm_tt.c | 93 if (bdev->pool.use_dma_alloc && cc_platform_has(CC_ATTR_GUEST_MEM_ENCRYPT)) { in ttm_tt_create()
|