Linus, The following changes since commit b2d229d4ddb17db541098b83524d901257e93845: Linux 5.18-rc3 (2022-04-17 13:57:31 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/virt/kvm/kvm.git tags/for-linus for you to fetch changes up to e852be8b148e117e25be1c98cf72ee489b05919e: kvm: selftests: introduce and use more page size-related constants (2022-04-21 15:41:01 -0400) The main and larger change here is a workaround for AMD's lack of cache coherency for encrypted-memory guests. I have another patch pending, but it's waiting for review from the architecture maintainers. ---------------------------------------------------------------- RISC-V: * Remove 's' & 'u' as valid ISA extension * Do not allow disabling the base extensions 'i'/'m'/'a'/'c' x86: * Fix NMI watchdog in guests on AMD * Fix for SEV cache incoherency issues * Don't re-acquire SRCU lock in complete_emulated_io() * Avoid NULL pointer deref if VM creation fails * Fix race conditions between APICv disabling and vCPU creation * Bugfixes for disabling of APICv * Preserve BSP MSR_KVM_POLL_CONTROL across suspend/resume selftests: * Do not use bitfields larger than 32-bits, they differ between GCC and clang ---------------------------------------------------------------- Atish Patra (2): RISC-V: KVM: Remove 's' & 'u' as valid ISA extension RISC-V: KVM: Restrict the extensions that can be disabled Like Xu (1): KVM: x86/pmu: Update AMD PMC sample period to fix guest NMI-watchdog Mingwei Zhang (2): KVM: SVM: Flush when freeing encrypted pages even on SME_COHERENT CPUs KVM: SEV: add cache flush to solve SEV cache incoherency issues Paolo Bonzini (3): Merge tag 'kvm-riscv-fixes-5.18-2' of https://github.com/kvm-riscv/linux into HEAD kvm: selftests: do not use bitfields larger than 32-bits for PTEs kvm: selftests: introduce and use more page size-related constants Sean Christopherson (9): KVM: x86: Don't re-acquire SRCU lock in complete_emulated_io() KVM: RISC-V: Use kvm_vcpu.srcu_idx, drop RISC-V's unnecessary copy KVM: Add helpers to wrap vcpu->srcu_idx and yell if it's abused KVM: Initialize debugfs_dentry when a VM is created to avoid NULL deref KVM: x86: Tag APICv DISABLE inhibit, not ABSENT, if APICv is disabled KVM: nVMX: Defer APICv updates while L2 is active until L1 is active KVM: x86: Pend KVM_REQ_APICV_UPDATE during vCPU creation to fix a race KVM: x86: Skip KVM_GUESTDBG_BLOCKIRQ APICv update if APICv is disabled KVM: SVM: Simplify and harden helper to flush SEV guest page(s) Thomas Huth (1): KVM: selftests: Silence compiler warning in the kvm_page_table_test Tom Rix (1): KVM: SPDX style and spelling fixes Wanpeng Li (1): x86/kvm: Preserve BSP MSR_KVM_POLL_CONTROL across suspend/resume arch/powerpc/kvm/book3s_64_mmu_radix.c | 9 +- arch/powerpc/kvm/book3s_hv_nested.c | 16 +- arch/powerpc/kvm/book3s_rtas.c | 4 +- arch/powerpc/kvm/powerpc.c | 4 +- arch/riscv/include/asm/kvm_host.h | 3 - arch/riscv/kvm/vcpu.c | 37 ++-- arch/riscv/kvm/vcpu_exit.c | 4 +- arch/s390/kvm/interrupt.c | 4 +- arch/s390/kvm/kvm-s390.c | 8 +- arch/s390/kvm/vsie.c | 4 +- arch/x86/include/asm/kvm-x86-ops.h | 1 + arch/x86/include/asm/kvm_host.h | 1 + arch/x86/kernel/kvm.c | 13 ++ arch/x86/kvm/pmu.h | 9 + arch/x86/kvm/svm/pmu.c | 1 + arch/x86/kvm/svm/sev.c | 67 ++++--- arch/x86/kvm/svm/svm.c | 1 + arch/x86/kvm/svm/svm.h | 2 + arch/x86/kvm/vmx/nested.c | 5 + arch/x86/kvm/vmx/pmu_intel.c | 8 +- arch/x86/kvm/vmx/vmx.c | 5 + arch/x86/kvm/vmx/vmx.h | 1 + arch/x86/kvm/x86.c | 60 +++--- include/linux/kvm_host.h | 26 ++- .../selftests/kvm/include/x86_64/processor.h | 17 ++ tools/testing/selftests/kvm/kvm_page_table_test.c | 2 +- tools/testing/selftests/kvm/lib/x86_64/processor.c | 202 +++++++++------------ tools/testing/selftests/kvm/x86_64/amx_test.c | 1 - .../selftests/kvm/x86_64/emulator_error_test.c | 1 - tools/testing/selftests/kvm/x86_64/smm_test.c | 2 - .../selftests/kvm/x86_64/vmx_tsc_adjust_test.c | 1 - .../testing/selftests/kvm/x86_64/xen_shinfo_test.c | 1 - .../testing/selftests/kvm/x86_64/xen_vmcall_test.c | 1 - virt/kvm/dirty_ring.c | 2 +- virt/kvm/kvm_main.c | 43 +++-- virt/kvm/kvm_mm.h | 2 +- 36 files changed, 316 insertions(+), 252 deletions(-)