![]() |
|
|||
0001 // SPDX-License-Identifier: GPL-2.0-only 0002 /* 0003 * Confidential Computing Platform Capability checks 0004 * 0005 * Copyright (C) 2021 Advanced Micro Devices, Inc. 0006 * 0007 * Author: Tom Lendacky <thomas.lendacky@amd.com> 0008 */ 0009 0010 #include <linux/export.h> 0011 #include <linux/cc_platform.h> 0012 0013 #include <asm/machdep.h> 0014 #include <asm/svm.h> 0015 0016 bool cc_platform_has(enum cc_attr attr) 0017 { 0018 switch (attr) { 0019 case CC_ATTR_MEM_ENCRYPT: 0020 return is_secure_guest(); 0021 0022 default: 0023 return false; 0024 } 0025 } 0026 EXPORT_SYMBOL_GPL(cc_platform_has);
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |