Skip to content

kvm: sev: Fix issues reported by Sashiko

Jörg Rödel kvm linux-coco lkml sashiko-reviews 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4kvm: sev: Fix user-space triggerable WARN_ON on snp_launch_update patharch/x86/kvm/svm/sev.c+7 -03 replies
2/4kvm: sev: Unmap pages in correct order in sev_gmem_post_populate()arch/x86/kvm/svm/sev.c+1 -12 replies
3/4KVM: guest_memfd: Add `write` parameter to kvm_gmem_populate()arch/x86/kvm/svm/sev.c arch/x86/kvm/vmx/tdx.c include/linux/kvm_host.h +1 more+7 -51 reply
4/4kvm: sev: Acquire a writeable page reference for CPUID pagesarch/x86/kvm/svm/sev.c+5 -11 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/4] kvm: sev: Fix issues reported by Sashiko

From: Joerg Roedel <[email protected]>

Hi,

On the post of my direct-VMSA patch-set Sashiko reported a few real pre-existing issues in the SEV-SNP launch_update code. This patch-set addresses three of them:

* Fix user-triggerable WARN_ON on LAUNCH_UPDATE path.

* Check that CPUID pages are writable before writing error information to it.

* Fix kunmap_local() order.

Please review.

-Joerg

Joerg Roedel (4):
kvm: sev: Fix user-space triggerable WARN_ON on snp_launch_update path
kvm: sev: Unmap pages in correct order in sev_gmem_post_populate()
KVM: guest_memfd: Add write parameter to kvm_gmem_populate()
kvm: sev: Acquire a writeable page reference for CPUID pages

 arch/x86/kvm/svm/sev.c   | 15 +++++++++++++--
 arch/x86/kvm/vmx/tdx.c   |  2 +-
 include/linux/kvm_host.h |  4 +++-
 virt/kvm/guest_memfd.c   |  4 ++--
 4 files changed, 19 insertions(+), 6 deletions(-)
Signature · 1 line
2.53.0