]> git.baikalelectronics.ru Git - kernel.git/commit
x86/tdx: Prepare for using "INFO" call for a second purpose
authorDave Hansen <dave.hansen@linux.intel.com>
Fri, 28 Oct 2022 14:12:19 +0000 (17:12 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 1 Nov 2022 17:07:15 +0000 (10:07 -0700)
commit7fdba75e108938f6fdc9c1b747de7eb8ccb0c1b3
tree66b7ff80d76ff066493d9fcc599683c93d356764
parent8c7b92e8bbb46af24ffb044ad88b3610949b6f5c
x86/tdx: Prepare for using "INFO" call for a second purpose

The TDG.VP.INFO TDCALL provides the guest with various details about
the TDX system that the guest needs to run.  Only one field is currently
used: 'gpa_width' which tells the guest which PTE bits mark pages shared
or private.

A second field is now needed: the guest "TD attributes" to tell if
virtualization exceptions are configured in a way that can harm the guest.

Make the naming and calling convention more generic and discrete from the
mask-centric one.

Thanks to Sathya for the inspiration here, but there's no code, comments
or changelogs left from where he started.

Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Acked-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: stable@vger.kernel.org
arch/x86/coco/tdx/tdx.c