RFC SEAMCALL Wrappers
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 RFC Latest6 patches 12 repliesIn review
- v1 RFC6 patches 10 repliesSuperseded
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | x86/virt/tdx: Add SEAMCALL wrappers for TDX KeyID managementarch/ arch/ arch/ | +47 | 0 replies | |
| 2/6 | x86/virt/tdx: Add SEAMCALL wrappers for TDX TD creationarch/ arch/ arch/ | +57 | 4 replies | |
| 3/6 | x86/virt/tdx: Add SEAMCALL wrappers for TDX vCPU creationarch/ arch/ arch/ | +79 | 0 replies | |
| 4/6 | x86/virt/tdx: Add SEAMCALL wrappers for TDX page cache managementarch/ arch/ arch/ | +49 | 4 replies | |
| 5/6 | x86/virt/tdx: Add SEAMCALL wrappers for TDX VM/vCPU field accessarch/ arch/ arch/ | +53 | 2 replies | |
| 6/6 | x86/virt/tdx: Add SEAMCALL wrappers for TDX flush operationsarch/ arch/ arch/ | +24 | 0 replies |
Reviews trailers per patch
All 6 patches have a Reviewed-by or Acked-by.
| Patch | Binbin Wu | Yuan Yao | Dave Hansen |
|---|---|---|---|
| 1/6 | R-b | R-b | |
| 2/6 | R-b | R-b | |
| 3/6 | R-b | R-b | |
| 4/6 | R-b | R-b | |
| 5/6 | R-b | R-b | A-b |
| 6/6 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.
Cover letter [RFC PATCH v2 0/6] SEAMCALL Wrappers
Hi,
This is a followup to the "SEAMCALL Wrappers" RFC[0] that spun out of Dave’s comments on the SEAMCALL wrappers in the “TDX vCPU/VM creation” series [1]. To try to summarize Dave’s comments, he noted that the SEAMCALL wrappers were very thin, not even using proper types for things where types exist.
The last discussion was to use struct pages instead of u64. It is pretty much what Dave suggested with a minor tweak to instead include the tdcx page count in the TD struct instead of the vCPU one.
This is because it will not vary between vCPUs. Doing it that way basically preserves the existing data duplication, but these counts are basically "global metadata". The global metadata patches export them as a size, but KVM wants to use them as a page count. So we should not be including these counts in each TD scoped structure as is currently done. To address the duplication we need to change the "global metadata patches" to export the count instead of size.
Otherwise, in the spirit of looking to find better types for the other raw u64's, I played around again with the out params of tdh_phymem_page_reclaim(). In the end I opted for better names and a comment rather than anything fancier.
Here is the branch with the VM/vCPU caller adjustments as the last commit:
https://github.com/intel/tdx/tree/seamcall-rfc-v2
Thanks,
Rick
[0]
https://lore.kernel.org/kvm/[email protected]/
[1]
https://lore.kernel.org/kvm/[email protected]/
Rick Edgecombe (6):
x86/virt/tdx: Add SEAMCALL wrappers for TDX KeyID management x86/virt/tdx: Add SEAMCALL wrappers for TDX TD creation x86/virt/tdx: Add SEAMCALL wrappers for TDX vCPU creation x86/virt/tdx: Add SEAMCALL wrappers for TDX page cache management x86/virt/tdx: Add SEAMCALL wrappers for TDX VM/vCPU field access x86/virt/tdx: Add SEAMCALL wrappers for TDX flush operations
arch/x86/include/asm/tdx.h | 38 ++++++ arch/x86/virt/vmx/tdx/tdx.c | 240 ++++++++++++++++++++++++++++++++++++ arch/x86/virt/vmx/tdx/tdx.h | 38 ++++-- 3 files changed, 309 insertions(+), 7 deletions(-)
Signature · 1 line
2.47.1