linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v7 0/2] x86/sev: Fixes for SEV-ES Guest Support
@ 2021-06-18 11:54 Joerg Roedel
  2021-06-18 11:54 ` [PATCH v7 1/2] x86/sev: Make sure IRQs are disabled while GHCB is active Joerg Roedel
                   ` (2 more replies)
  0 siblings, 3 replies; 8+ messages in thread
From: Joerg Roedel @ 2021-06-18 11:54 UTC (permalink / raw)
  To: x86
  Cc: Joerg Roedel, Joerg Roedel, hpa, Andy Lutomirski, Dave Hansen,
	Peter Zijlstra, Jiri Slaby, Dan Williams, Tom Lendacky,
	Juergen Gross, Kees Cook, David Rientjes, Cfir Cohen,
	Erdem Aktas, Masami Hiramatsu, Mike Stunes, Sean Christopherson,
	Martin Radev, Arvind Sankar, linux-coco, linux-kernel, kvm,
	virtualization

From: Joerg Roedel <jroedel@suse.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


^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-06-21 15:52 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-18 11:54 [PATCH v7 0/2] x86/sev: Fixes for SEV-ES Guest Support Joerg Roedel
2021-06-18 11:54 ` [PATCH v7 1/2] x86/sev: Make sure IRQs are disabled while GHCB is active Joerg Roedel
2021-06-21 12:40   ` Borislav Petkov
2021-06-21 14:42   ` [tip: x86/sev] " tip-bot2 for Joerg Roedel
2021-06-18 11:54 ` [PATCH v7 2/2] x86/sev: Split up runtime #VC handler for correct state tracking Joerg Roedel
2021-06-21 14:42   ` [tip: x86/sev] " tip-bot2 for Joerg Roedel
2021-06-21 13:13 ` [PATCH v7 0/2] x86/sev: Fixes for SEV-ES Guest Support Peter Zijlstra
2021-06-21 15:52   ` Joerg Roedel

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).