[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210527042356.3983284-1-sathyanarayanan.kuppuswamy@linux.intel.com>
Date: Wed, 26 May 2021 21:23:53 -0700
From: Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@...ux.intel.com>
To: Peter Zijlstra <peterz@...radead.org>,
Andy Lutomirski <luto@...nel.org>,
Dave Hansen <dave.hansen@...el.com>,
Tony Luck <tony.luck@...el.com>,
Dan Williams <dan.j.williams@...el.com>
Cc: Andi Kleen <ak@...ux.intel.com>,
Kirill Shutemov <kirill.shutemov@...ux.intel.com>,
Kuppuswamy Sathyanarayanan <knsathya@...nel.org>,
Raj Ashok <ashok.raj@...el.com>,
Sean Christopherson <seanjc@...gle.com>,
Kuppuswamy Sathyanarayanan
<sathyanarayanan.kuppuswamy@...ux.intel.com>,
linux-kernel@...r.kernel.org
Subject: [RFC v2-fix-v1 0/3] x86/tdx: Handle port I/O
This patchset addresses the review comments in the patch titled
"[RFC v2 14/32] x86/tdx: Handle port I/O". Since it requires
patch split, sending these together.
Changes since RFC v2:
* Removed assembly implementation of port IO emulation code
and modified __in/__out IO helpers to directly call C function
for in/out instruction emulation in decompression code.
* Added helper function tdx_get_iosize() to make it easier for
calling tdg_out/tdg_int() C functions from decompression code.
* Added support for early exception handler to support IO
instruction emulation in early boot kernel code.
* Removed alternative_ usage and made kernel only use #VE based
IO instruction emulation support outside the decompression module.
* Added support for protection_guest_has() API to generalize
AMD SEV/TDX specific initialization code in common drivers.
* Fixed commit log and comments as per review comments.
Andi Kleen (1):
x86/tdx: Handle early IO operations
Kirill A. Shutemov (1):
x86/tdx: Handle port I/O
Kuppuswamy Sathyanarayanan (1):
tdx: Introduce generic protected_guest abstraction
arch/Kconfig | 3 +
arch/x86/Kconfig | 1 +
arch/x86/boot/compressed/Makefile | 1 +
arch/x86/boot/compressed/tdcall.S | 3 +
arch/x86/boot/compressed/tdx.c | 28 ++++++
arch/x86/include/asm/io.h | 7 +-
arch/x86/include/asm/protected_guest.h | 24 +++++
arch/x86/include/asm/tdx.h | 60 ++++++++++++-
arch/x86/kernel/head64.c | 4 +
arch/x86/kernel/tdx.c | 116 +++++++++++++++++++++++++
include/linux/protected_guest.h | 23 +++++
11 files changed, 267 insertions(+), 3 deletions(-)
create mode 100644 arch/x86/boot/compressed/tdcall.S
create mode 100644 arch/x86/include/asm/protected_guest.h
create mode 100644 include/linux/protected_guest.h
--
2.25.1
Powered by blists - more mailing lists