linux/arch/x86/coco/tdx
Kai Huang d623704bb2 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
2023-12-08 09:12:00 -08:00
..
Makefile x86/tdx: Add unaccepted memory support 2023-06-06 18:25:57 +02:00
tdcall.S x86/tdx: Reimplement __tdx_hypercall() using TDX_MODULE_CALL asm 2023-09-12 16:30:14 -07:00
tdx-shared.c x86/virt/tdx: Define TDX supported page sizes as macros 2023-12-08 09:12:00 -08:00
tdx.c configfs-tsm for v6.7 2023-11-04 15:58:13 -10:00