All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: SEV: RECEIVE_UPDATE_DATA bug fixes
@ 2021-09-14 21:09 Sean Christopherson
  2021-09-14 21:09 ` [PATCH 1/2] KVM: SEV: Pin guest memory for write for RECEIVE_UPDATE_DATA Sean Christopherson
  2021-10-20 22:58   ` Ashish Kalra
  0 siblings, 2 replies; 8+ messages in thread
From: Sean Christopherson @ 2021-09-14 21:09 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Sean Christopherson, Vitaly Kuznetsov, Wanpeng Li, Jim Mattson,
	Joerg Roedel, kvm, linux-kernel, Peter Gonda, Marc Orr,
	Tom Lendacky, Brijesh Singh, Masahiro Kozuka

Patch 1 pins the target of RECEIVE_UPDATE_DATA for write instead of read.
The SEV API clearly states that the PSP writes guest memory, which makes
sense given that the guest is receiving data.

Patch 2 adds a CLFLUSH of the guest memory as there is no requirement
that the page already be in an encrypted state before RECEIVE_UPDATE_DATA,
i.e. the cache may have dirty, unencrypted data.

On my end, these patches are compile-tested only as I don't have a
userspace VMM that supports SEV live migration, nor are there tests for
any of this stuff.

Masahiro Kozuka (1):
  KVM: SEV: Flush cache on non-coherent systems before
    RECEIVE_UPDATE_DATA

Sean Christopherson (1):
  KVM: SEV: Pin guest memory for write for RECEIVE_UPDATE_DATA

 arch/x86/kvm/svm/sev.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

-- 
2.33.0.309.g3052b89438-goog


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

end of thread, other threads:[~2021-10-21 17:01 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-09-14 21:09 [PATCH 0/2] KVM: SEV: RECEIVE_UPDATE_DATA bug fixes Sean Christopherson
2021-09-14 21:09 ` [PATCH 1/2] KVM: SEV: Pin guest memory for write for RECEIVE_UPDATE_DATA Sean Christopherson
2021-09-14 22:03   ` Peter Gonda
2021-09-14 22:15   ` Brijesh Singh
2021-09-21 17:59   ` Paolo Bonzini
2021-09-14 21:09 ` [PATCH 2/2] KVM: SEV: Flush cache on non-coherent systems before RECEIVE_UPDATE_DATA Sean Christopherson
2021-10-20 22:58   ` Ashish Kalra
     [not found]   ` <61709f42.1c69fb81.3b49.ecfeSMTPIN_ADDED_BROKEN@mx.google.com>
2021-10-21 17:01     ` Paolo Bonzini

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.