summaryrefslogtreecommitdiff
path: root/arch/x86/Kconfig
diff options
context:
space:
mode:
authorKai Huang <kai.huang@intel.com>2023-12-08 20:07:22 +0300
committerDave Hansen <dave.hansen@linux.intel.com>2023-12-08 20:12:00 +0300
commitd623704bb23901a25bf6d6a40aa16b43a17622eb (patch)
tree034c57941999bb5878474451c213f94aca91f324 /arch/x86/Kconfig
parent765a0542fdc7aad7cbc1da3bd19bed6297b54e2c (diff)
downloadlinux-d623704bb23901a25bf6d6a40aa16b43a17622eb.tar.xz
x86/virt/tdx: Define TDX supported page sizes as macros
TDX supports 4K, 2M and 1G page sizes. The corresponding values are defined by the TDX module spec and used as TDX module ABI. Currently, they are used in try_accept_one() when the TDX guest tries to accept a page. However currently try_accept_one() uses hard-coded magic values. Define TDX supported page sizes as macros and get rid of the hard-coded values in try_accept_one(). TDX host support will need to use them too. Signed-off-by: Kai Huang <kai.huang@intel.com> Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com> Reviewed-by: Dave Hansen <dave.hansen@linux.intel.com> Reviewed-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/all/20231208170740.53979-2-dave.hansen%40intel.com
Diffstat (limited to 'arch/x86/Kconfig')
0 files changed, 0 insertions, 0 deletions