|
|
Log in / Subscribe / Register

Add TDX Guest Support (Debug support)

From:  Kuppuswamy Sathyanarayanan <sathyanarayanan.kuppuswamy-AT-linux.intel.com>
To:  Thomas Gleixner <tglx-AT-linutronix.de>, Ingo Molnar <mingo-AT-redhat.com>, Borislav Petkov <bp-AT-alien8.de>, Peter Zijlstra <peterz-AT-infradead.org>, Andy Lutomirski <luto-AT-kernel.org>
Subject:  [PATCH v1 0/4] Add TDX Guest Support (Debug support)
Date:  Sat, 26 Jun 2021 07:32:40 -0700
Message-ID:  <cover.1624717684.git.sathyanarayanan.kuppuswamy@linux.intel.com>
Cc:  Peter H Anvin <hpa-AT-zytor.com>, Dave Hansen <dave.hansen-AT-intel.com>, Tony Luck <tony.luck-AT-intel.com>, Dan Williams <dan.j.williams-AT-intel.com>, Andi Kleen <ak-AT-linux.intel.com>, Kirill Shutemov <kirill.shutemov-AT-linux.intel.com>, Sean Christopherson <seanjc-AT-google.com>, Kuppuswamy Sathyanarayanan <knsathya-AT-kernel.org>, x86-AT-kernel.org, linux-kernel-AT-vger.kernel.org
Archive-link:  Article

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/?seri...
[set 2] - https://lore.kernel.org/patchwork/project/lkml/list/?seri...
[set 3] - https://lore.kernel.org/patchwork/project/lkml/list/?seri...
[set 4] - https://lore.kernel.org/patchwork/project/lkml/list/?seri...

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



Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds