[PATCH v1 0/2] MMIO mask fix for AMD memory encryption support

From: Tom Lendacky
Date: Wed Dec 18 2019 - 14:46:04 EST


This patch series ensures that a valid MMIO SPTE mask can be generated
under SVM when memory encryption is enabled.

The patchset includes:
- Add an optional callback to return a reserved bit(s) mask
- Implement the callback in SVM

---

Patches based on https://git.kernel.org/pub/scm/virt/kvm/kvm.git next
commit:
7d73710d9ca2 ("kvm: vmx: Stop wasting a page for guest_msrs")

Tom Lendacky (2):
KVM: x86/mmu: Allow for overriding MMIO SPTE mask
KVM: SVM: Implement reserved bit callback to set MMIO SPTE mask

arch/x86/include/asm/kvm_host.h | 4 ++-
arch/x86/kvm/mmu/mmu.c | 54 +++++++++++++++++++++------------
arch/x86/kvm/svm.c | 42 +++++++++++++++++++++++++
arch/x86/kvm/x86.c | 2 +-
4 files changed, 80 insertions(+), 22 deletions(-)

--
2.17.1