[PATCH v1 0/4] Add TDX Guest Support (Debug support)

From: Kuppuswamy Sathyanarayanan
Date: Sat Jun 26 2021 - 10:32:55 EST


Hi All,

Intel's Trust Domain Extensions (TDX) protect guest VMs from malicious
hosts and some physical attacks.

Following patches adds tracepoint support for TDX Guest TDCALL requests
and #VE exceptions. It also includes helper function to detect TD-DEBUG
mode which will be used by patches in other TDX series to add TD-DEBUG
mode specific features support.

This series is the continuation of the following TDX guest related patches.

[set 1] - https://lore.kernel.org/patchwork/project/lkml/list/?series=505232
[set 2] - https://lore.kernel.org/patchwork/project/lkml/list/?series=506230
[set 3] - https://lore.kernel.org/patchwork/project/lkml/list/?series=506231
[set 4] - https://lore.kernel.org/patchwork/project/lkml/list/?series=506232

Also please note that this series alone is not necessarily fully
functional. You need to apply all the above 4 patch series to get
a fully functional TDX guest.



Kuppuswamy Sathyanarayanan (3):
x86/tdx: Add TDCALL tracepoint
x86/tdx: Expose TDX Guest #VE count in /proc/interrupts
x86/tdx: Add tdg_debug_enabled() interface

Sean Christopherson (1):
x86/tdx: Add #VE tracepoint

arch/x86/include/asm/hardirq.h | 3 +
arch/x86/include/asm/tdx.h | 1 +
arch/x86/include/asm/trace/tdx.h | 150 +++++++++++++++++++++++++++++++
arch/x86/kernel/irq.c | 6 ++
arch/x86/kernel/tdx.c | 71 ++++++++++++---
arch/x86/kernel/traps.c | 2 +
6 files changed, 220 insertions(+), 13 deletions(-)
create mode 100644 arch/x86/include/asm/trace/tdx.h

--
2.25.1