[GIT PULL] KVM fixes for Linux 6.4-rc3

From: Paolo Bonzini
Date: Sun May 21 2023 - 08:28:37 EST


Linus,

The following changes since commit f1fcbaa18b28dec10281551dfe6ed3a3ed80e3d6:

Linux 6.4-rc2 (2023-05-14 12:51:40 -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 b9846a698c9aff4eb2214a06ac83638ad098f33f:

KVM: VMX: add MSR_IA32_TSX_CTRL into msrs_to_save (2023-05-21 04:05:51 -0400)

----------------------------------------------------------------
ARM:
* Plug a race in the stage-2 mapping code where the IPA and the PA
would end up being out of sync

* Make better use of the bitmap API (bitmap_zero, bitmap_zalloc...)

* FP/SVE/SME documentation update, in the hope that this field
becomes clearer...

* Add workaround for Apple SEIS brokenness to a new SoC

* Random comment fixes

x86:

* add MSR_IA32_TSX_CTRL into msrs_to_save

* fixes for XCR0 handling in SGX enclaves

Generic:

* Fix vcpu_array[0] races

* Fix race between starting a VM and "reboot -f"

----------------------------------------------------------------
Christophe JAILLET (2):
KVM: arm64: Slightly optimize flush_context()
KVM: arm64: Use the bitmap API to allocate bitmaps

Jacob Xu (1):
KVM: VMX: Fix header file dependency of asm/vmx.h

Jingyu Wang (1):
KVM: arm64: Fix repeated words in comments

Marc Zyngier (4):
KVM: arm64: Constify start/end/phys fields of the pgtable walker data
KVM: arm64: vgic: Add Apple M2 PRO/MAX cpus to the list of broken SEIS implementations
Merge branch kvm-arm64/misc-6.4 into kvmarm-master/fixes
Merge branch kvm-arm64/pgtable-fixes-6.4 into kvmarm-master/fixes

Mark Brown (3):
KVM: arm64: Document check for TIF_FOREIGN_FPSTATE
KVM: arm64: Restructure check for SVE support in FP trap handler
KVM: arm64: Clarify host SME state management

Michal Luczaj (1):
KVM: Fix vcpu_array[0] races

Mingwei Zhang (1):
KVM: VMX: add MSR_IA32_TSX_CTRL into msrs_to_save

Oliver Upton (2):
KVM: arm64: Infer the PA offset from IPA in stage-2 map walker
KVM: arm64: Infer PA offset from VA in hyp map walker

Paolo Bonzini (1):
Merge tag 'kvmarm-fixes-6.4-1' of git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm into HEAD

Sean Christopherson (4):
KVM: Use syscore_ops instead of reboot_notifier to hook restart/shutdown
KVM: Don't enable hardware after a restart/shutdown is initiated
KVM: VMX: Don't rely _only_ on CPUID to enforce XCR0 restrictions for ECREATE
KVM: x86: Don't adjust guest's CPUID.0x12.1 (allowed SGX enclave XFRM)

arch/arm64/include/asm/cputype.h | 8 +++++
arch/arm64/include/asm/kvm_pgtable.h | 1 +
arch/arm64/kvm/fpsimd.c | 26 ++++++++++-----
arch/arm64/kvm/hyp/include/hyp/switch.h | 12 +++++--
arch/arm64/kvm/hyp/pgtable.c | 41 ++++++++++++++++++-----
arch/arm64/kvm/inject_fault.c | 2 +-
arch/arm64/kvm/vgic/vgic-v3.c | 4 +++
arch/arm64/kvm/vmid.c | 7 ++--
arch/x86/include/asm/vmx.h | 2 ++
arch/x86/kvm/cpuid.c | 16 ---------
arch/x86/kvm/vmx/sgx.c | 11 ++++--
arch/x86/kvm/x86.c | 6 +++-
virt/kvm/kvm_main.c | 59 +++++++++++++++++++++------------
13 files changed, 129 insertions(+), 66 deletions(-)