[GIT PULL] KVM fixes for Linux 5.4-rc2

From: Paolo Bonzini
Date: Fri Oct 04 2019 - 08:04:01 EST


Linus,

The following changes since commit fd3edd4a9066f28de99a16685a586d68a9f551f8:

KVM: nVMX: cleanup and fix host 64-bit mode checks (2019-09-25 19:22:33 +0200)

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 cf05a67b68b8d9d6469bedb63ee461f8c7de62e6:

KVM: x86: omit "impossible" pmu MSRs from MSR list (2019-10-04 14:01:28 +0200)

----------------------------------------------------------------
ARM and x86 bugfixes of all kinds. The most visible one is that migrating
a nested hypervisor has always been busted on Broadwell and newer processors,
and that has finally been fixed.

----------------------------------------------------------------
Jim Mattson (5):
kvm: x86: Fix a spurious -E2BIG in __do_cpuid_func
kvm: x86: Improve emulation of CPUID leaves 0BH and 1FH
kvm: x86: Use AMD CPUID semantics for AMD vCPUs
kvm: x86: Enumerate support for CLZERO instruction
kvm: vmx: Limit guest PMCs to those supported on the host

Marc Zyngier (3):
arm64: KVM: Drop hyp_alternate_select for checking for ARM64_WORKAROUND_834220
arm64: KVM: Replace hyp_alternate_select with has_vhe()
arm64: KVM: Kill hyp_alternate_select()

Paolo Bonzini (7):
KVM: x86: assign two bits to track SPTE kinds
KVM: x86: fix nested guest live migration with PML
selftests: kvm: add test for dirty logging inside nested guests
kvm: x86, powerpc: do not allow clearing largepages debugfs entry
KVM: x86: omit absent pmu MSRs from MSR list
Merge tag 'kvmarm-fixes-5.4-1' of git://git.kernel.org/.../kvmarm/kvmarm into HEAD
KVM: x86: omit "impossible" pmu MSRs from MSR list

Sean Christopherson (1):
KVM: nVMX: Fix consistency check on injected exception error code

Sebastian Andrzej Siewior (1):
KVM: x86: Expose XSAVEERPTR to the guest

Shuah Khan (1):
selftests: kvm: Fix libkvm build error

Vitaly Kuznetsov (1):
KVM: selftests: x86: clarify what is reported on KVM_GET_MSRS failure

Waiman Long (1):
KVM: VMX: Set VMENTER_L1D_FLUSH_NOT_REQUIRED if !X86_BUG_L1TF

Wanpeng Li (2):
KVM: LAPIC: Loosen filter for adaptive tuning of lapic_timer_advance_ns
KVM: X86: Fix userspace set invalid CR4

Zenghui Yu (1):
KVM: arm/arm64: vgic: Use the appropriate TRACE_INCLUDE_PATH

arch/arm64/include/asm/kvm_hyp.h | 24 ---
arch/arm64/kvm/hyp/switch.c | 17 +-
arch/arm64/kvm/hyp/tlb.c | 36 ++--
arch/powerpc/kvm/book3s.c | 8 +-
arch/x86/include/asm/kvm_host.h | 7 -
arch/x86/kvm/cpuid.c | 102 ++++++-----
arch/x86/kvm/lapic.c | 13 +-
arch/x86/kvm/mmu.c | 65 +++++--
arch/x86/kvm/vmx/nested.c | 2 +-
arch/x86/kvm/vmx/pmu_intel.c | 7 +-
arch/x86/kvm/vmx/vmx.c | 15 +-
arch/x86/kvm/x86.c | 72 ++++----
include/linux/kvm_host.h | 2 +
tools/testing/selftests/kvm/Makefile | 3 +-
.../selftests/kvm/include/x86_64/processor.h | 3 +
tools/testing/selftests/kvm/include/x86_64/vmx.h | 14 ++
tools/testing/selftests/kvm/lib/kvm_util.c | 2 +-
.../testing/selftests/kvm/lib/kvm_util_internal.h | 3 +
tools/testing/selftests/kvm/lib/x86_64/processor.c | 2 +-
tools/testing/selftests/kvm/lib/x86_64/vmx.c | 201 ++++++++++++++++++++-
.../selftests/kvm/x86_64/vmx_dirty_log_test.c | 156 ++++++++++++++++
virt/kvm/arm/vgic/trace.h | 2 +-
virt/kvm/kvm_main.c | 10 +-
23 files changed, 584 insertions(+), 182 deletions(-)
create mode 100644 tools/testing/selftests/kvm/x86_64/vmx_dirty_log_test.c