[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <cover.1709288433.git.kai.huang@intel.com>
Date: Sat, 2 Mar 2024 00:20:32 +1300
From: Kai Huang <kai.huang@...el.com>
To: linux-kernel@...r.kernel.org,
kvm@...r.kernel.org
Cc: x86@...nel.org,
dave.hansen@...el.com,
kirill.shutemov@...ux.intel.com,
peterz@...radead.org,
tglx@...utronix.de,
bp@...en8.de,
mingo@...hat.com,
hpa@...or.com,
seanjc@...gle.com,
pbonzini@...hat.com,
isaku.yamahata@...el.com,
jgross@...e.com,
kai.huang@...el.com
Subject: [PATCH 0/5] TDX host: Provide TDX module metadata reading APIs
KVM will need to read bunch of TDX module metadata fields to create and
run TDX guests. In the long term, other in-kernel TDX users, e.g., VT-d
also likely will need to read metadata. This series provides common APIs
in the TDX host code so that KVM can use.
This series has been sent out together with the v19 KVM TDX patchset, and
actually received one minor comment from Juergen [1](thanks!), which I
fixed in this series.
Now I am sending out this series separately to reduce the size of the KVM
TDX patchset. Paolo and Sean are doing similar things [2][3].
[1]: https://lore.kernel.org/kvm/cover.1708933498.git.isaku.yamahata@intel.com/T/#mbe96ac2b6560897083afdbe1db446a75a724e4e9
[2]: https://lore.kernel.org/kvm/20240227232100.478238-21-pbonzini@redhat.com/T/
[3]: https://lore.kernel.org/kvm/20240228024147.41573-16-seanjc@google.com/T/
Kai Huang (5):
x86/virt/tdx: Rename _offset to _member for TD_SYSINFO_MAP() macro
x86/virt/tdx: Move TDMR metadata fields map table to local variable
x86/virt/tdx: Unbind global metadata read with 'struct
tdx_tdmr_sysinfo'
x86/virt/tdx: Support global metadata read for all element sizes
x86/virt/tdx: Export global metadata read infrastructure
arch/x86/include/asm/tdx.h | 22 ++++++++++
arch/x86/virt/vmx/tdx/tdx.c | 84 +++++++++++++++++++++----------------
arch/x86/virt/vmx/tdx/tdx.h | 2 -
3 files changed, 71 insertions(+), 37 deletions(-)
base-commit: 5bdd181821b2c65b074cfad07d7c7d5d3cfe20bf
--
2.43.2
Powered by blists - more mailing lists