[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20210618115409.22735-1-joro@8bytes.org>
Date: Fri, 18 Jun 2021 13:54:07 +0200
From: Joerg Roedel <joro@...tes.org>
To: x86@...nel.org
Cc: Joerg Roedel <joro@...tes.org>, Joerg Roedel <jroedel@...e.de>,
hpa@...or.com, Andy Lutomirski <luto@...nel.org>,
Dave Hansen <dave.hansen@...ux.intel.com>,
Peter Zijlstra <peterz@...radead.org>,
Jiri Slaby <jslaby@...e.cz>,
Dan Williams <dan.j.williams@...el.com>,
Tom Lendacky <thomas.lendacky@....com>,
Juergen Gross <jgross@...e.com>,
Kees Cook <keescook@...omium.org>,
David Rientjes <rientjes@...gle.com>,
Cfir Cohen <cfir@...gle.com>,
Erdem Aktas <erdemaktas@...gle.com>,
Masami Hiramatsu <mhiramat@...nel.org>,
Mike Stunes <mstunes@...are.com>,
Sean Christopherson <seanjc@...gle.com>,
Martin Radev <martin.b.radev@...il.com>,
Arvind Sankar <nivedita@...m.mit.edu>,
linux-coco@...ts.linux.dev, linux-kernel@...r.kernel.org,
kvm@...r.kernel.org, virtualization@...ts.linux-foundation.org
Subject: [PATCH v7 0/2] x86/sev: Fixes for SEV-ES Guest Support
From: Joerg Roedel <jroedel@...e.de>
Hi,
please find here the next iteration of my pending fixes for SEV-ES
guest support in Linux. This version addresses the comments I received
from Peter on the previous version, in particular:
- Removed IRQ disable/enable calls in the ap-hlt loop code
- Made __sev_get/put_ghcb() noinstr instead of __always_inline
and put instrumentation_begin()/end() calls around panic()
to fix an objtool warning.
- Split up #DB handling in the #VC handler into a from-user
and from-kernel part as well.
The patches are again tested with a kernel with various debugging
options enabled, running as an SEV-ES guest.
The previous version of these patches can be found here:
https://lore.kernel.org/lkml/20210616184913.13064-1-joro@8bytes.org/
Please review.
Thanks,
Joerg
Joerg Roedel (2):
x86/sev: Make sure IRQs are disabled while GHCB is active
x86/sev: Split up runtime #VC handler for correct state tracking
arch/x86/entry/entry_64.S | 4 +-
arch/x86/include/asm/idtentry.h | 29 ++---
arch/x86/kernel/sev.c | 182 ++++++++++++++++++--------------
3 files changed, 113 insertions(+), 102 deletions(-)
base-commit: 07570cef5e5c3fcec40f82a9075abb4c1da63319
--
2.31.1
Powered by blists - more mailing lists