[GIT PULL] KVM fixes for Linux 6.0-rc4

From: Paolo Bonzini
Date: Sun Sep 04 2022 - 05:56:28 EST


Linus,

The following changes since commit b90cb1053190353cc30f0fef0ef1f378ccc063c5:

Linux 6.0-rc3 (2022-08-28 15:05:29 -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 29250ba51bc1cbe8a87e923f76978b87c3247a8c:

Merge tag 'kvm-s390-master-6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD (2022-09-01 19:21:27 -0400)

----------------------------------------------------------------
s390:

* PCI interpretation compile fixes

RISC-V:

* Fix unused variable warnings in vcpu_timer.c

* Move extern sbi_ext declarations to a header

x86:

* check validity of argument to KVM_SET_MP_STATE

* use guest's global_ctrl to completely disable guest PEBS

* fix a memory leak on memory allocation failure

* mask off unsupported and unknown bits of IA32_ARCH_CAPABILITIES

* fix build failure with Clang integrated assembler

* fix MSR interception

* Always flush TLBs when enabling dirty logging

----------------------------------------------------------------
Conor Dooley (2):
riscv: kvm: vcpu_timer: fix unused variable warnings
riscv: kvm: move extern sbi_ext declarations to a header

David Matlack (2):
KVM: selftests: Fix KVM_EXCEPTION_MAGIC build with Clang
KVM: selftests: Fix ambiguous mov in KVM_ASM_SAFE()

Jim Mattson (2):
KVM: VMX: Heed the 'msr' argument in msr_write_intercepted()
KVM: x86: Mask off unsupported and unknown bits of IA32_ARCH_CAPABILITIES

Junaid Shahid (2):
kvm: x86: mmu: Drop the need_remote_flush() function
kvm: x86: mmu: Always flush TLBs when enabling dirty logging

Like Xu (1):
perf/x86/core: Completely disable guest PEBS via guest's global_ctrl

Miaohe Lin (1):
KVM: x86: fix memoryleak in kvm_arch_vcpu_create()

Paolo Bonzini (3):
KVM: x86: check validity of argument to KVM_SET_MP_STATE
Merge tag 'kvm-riscv-fixes-6.0-1' of https://github.com/kvm-riscv/linux into HEAD
Merge tag 'kvm-s390-master-6.0-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvms390/linux into HEAD

Pierre Morel (1):
KVM: s390: pci: Hook to access KVM lowlevel from VFIO

arch/riscv/include/asm/kvm_vcpu_sbi.h | 12 +++
arch/riscv/kvm/vcpu_sbi.c | 12 +--
arch/riscv/kvm/vcpu_timer.c | 4 -
arch/s390/include/asm/kvm_host.h | 17 ++--
arch/s390/kvm/pci.c | 12 ++-
arch/s390/pci/Makefile | 2 +-
arch/s390/pci/pci_kvm_hook.c | 11 +++
arch/x86/events/intel/core.c | 3 +-
arch/x86/kvm/mmu/mmu.c | 60 ++------------
arch/x86/kvm/mmu/spte.h | 14 +++-
arch/x86/kvm/vmx/vmx.c | 3 +-
arch/x86/kvm/x86.c | 92 +++++++++++++++++++---
drivers/vfio/pci/vfio_pci_zdev.c | 8 +-
.../selftests/kvm/include/x86_64/processor.h | 4 +-
14 files changed, 151 insertions(+), 103 deletions(-)
create mode 100644 arch/s390/pci/pci_kvm_hook.c