public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH kernel v2 0/3] KVM: SEV: Enable AMD SEV-ES DebugSwap
@ 2022-12-09  4:38 Alexey Kardashevskiy
  2022-12-09  4:38 ` [PATCH kernel v2 1/3] x86/amd: Cache values in percpu variables Alexey Kardashevskiy
                   ` (4 more replies)
  0 siblings, 5 replies; 15+ messages in thread
From: Alexey Kardashevskiy @ 2022-12-09  4:38 UTC (permalink / raw)
  To: kvm
  Cc: x86, linux-kernel, Venu Busireddy, Tony Luck, Tom Lendacky,
	Thomas Gleixner, Sean Christopherson, Sandipan Das,
	Peter Zijlstra, Pawan Gupta, Paolo Bonzini, Michael Roth,
	Mario Limonciello, Jan Kara, Ingo Molnar, Huang Rui, Dave Hansen,
	Daniel Sneddon, Brijesh Singh, Borislav Petkov,
	Arnaldo Carvalho de Melo, Andrew Cooper, Alexander Shishkin,
	Adrian Hunter, Jason A. Donenfeld, H. Peter Anvin,
	Alexey Kardashevskiy

This is to use another AMD SEV-ES hardware assisted register swap,
more detail in 2/3. The patches are fairly independend but required in
this order.

This is based on sha1 0d1409e4ff08 and requires something like this
for X86_FEATURE_NO_NESTED_DATA_BP:
https://lkml.org/lkml/2022/11/29/1229

This patchset is pushed out at
https://github.com/aik/linux/commits/debugswap


Please comment. Thanks.

btw the enormous cc: list came from get_maintainer.pl, keep it like
this or tell the script something to reduce the list?


Alexey Kardashevskiy (3):
  x86/amd: Cache values in percpu variables
  KVM: SEV: Enable data breakpoints in SEV-ES
  x86/sev: Do not handle #VC for DR7 read/write

 arch/x86/include/asm/debugreg.h        |  9 +++-
 arch/x86/include/asm/msr-index.h       |  1 +
 arch/x86/include/asm/svm.h             |  1 +
 arch/x86/kvm/svm/svm.h                 | 16 +++++--
 tools/arch/x86/include/asm/msr-index.h |  1 +
 arch/x86/kernel/cpu/amd.c              | 45 ++++++++++++++------
 arch/x86/kernel/sev.c                  |  6 +++
 arch/x86/kvm/svm/sev.c                 | 29 +++++++++++++
 arch/x86/kvm/svm/svm.c                 |  3 +-
 9 files changed, 90 insertions(+), 21 deletions(-)

-- 
2.38.1


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

end of thread, other threads:[~2023-01-12 14:45 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-12-09  4:38 [PATCH kernel v2 0/3] KVM: SEV: Enable AMD SEV-ES DebugSwap Alexey Kardashevskiy
2022-12-09  4:38 ` [PATCH kernel v2 1/3] x86/amd: Cache values in percpu variables Alexey Kardashevskiy
2023-01-10 16:05   ` Borislav Petkov
2023-01-12  5:21     ` Alexey Kardashevskiy
2023-01-12 11:12       ` Borislav Petkov
2022-12-09  4:38 ` [PATCH kernel v2 2/3] KVM: SEV: Enable data breakpoints in SEV-ES Alexey Kardashevskiy
2023-01-10 18:00   ` Borislav Petkov
2023-01-10 19:06     ` Tom Lendacky
2023-01-12  5:45     ` Alexey Kardashevskiy
2023-01-12 11:28       ` Borislav Petkov
2023-01-12 14:32         ` Tom Lendacky
2022-12-09  4:38 ` [PATCH kernel v2 3/3] x86/sev: Do not handle #VC for DR7 read/write Alexey Kardashevskiy
2023-01-10 20:04   ` Borislav Petkov
2023-01-09  5:20 ` [PATCH kernel v2 0/3] KVM: SEV: Enable AMD SEV-ES DebugSwap Alexey Kardashevskiy
2023-01-10 17:41 ` Borislav Petkov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox