KVM/arm64 fixes for 6.5, part #1
A message that is not in the archive (sent off-list or not yet received): ZLYnolPWJubKLZY8@thinky-boi
+cc lists, because I'm an idiot.
Quoted 87 lines · Oliver Upton
Hi Paolo,
Quite a pile of fixes for the first batch. The most noteworthy here is the BTI + pKVM finalization fixes, which address an early boot failure when using the split hypervisor on systems that support BTI and make the overall pKVM flow more robust to failures.
Otherwise, we have a respectable collection of one-offs described in the tag message.
Please pull.
--
Thanks,
OliverThe following changes since commit
06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5:Linux 6.5-rc1 (2023-07-09 13:53:13 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.gittags/kvmarm-fixes-6.5-1for you to fetch changes up to
9d2a55b403eea26cab7c831d8e1c00ef1e6a6850:KVM: arm64: Fix the name of
sys_reg_descrelated to PMU (2023-07-14 23:34:05 +0000)----------------------------------------------------------------
KVM/arm64 fixes for 6.5, part #1- Avoid pKVM finalization if KVM initialization fails
- Add missing BTI instructions in the hypervisor, fixing an early boot failure on BTI systems
- Handle MMU notifiers correctly for non hugepage-aligned memslots
- Work around a bug in the architecture where hypervisor timer controls have UNKNOWN behavior under nested virt.
- Disable preemption in
kvm_arch_hardware_enable(), fixing a kernel BUG in cpu hotplug resulting from per-CPU accessor sanity checking.- Make WFI emulation on GICv4 systems robust w.r.t. preemption, consistently requesting a doorbell interrupt on
vcpu_put()- Uphold RES0 sysreg behavior when emulating older PMU versions
- Avoid macro expansion when initializing PMU register names, ensuring the tracepoints pretty-print the sysreg.
----------------------------------------------------------------
Marc Zyngier (3):
KVM: arm64: timers: UseCNTHCTL_EL2when setting non-CNTKCTL_EL1 bits
KVM: arm64: Disable preemption inkvm_arch_hardware_enable()
KVM: arm64: vgic-v4: Make the doorbell request robust w.r.t preemptionMostafa Saleh (1):
KVM: arm64: Add missing BTI instructionsOliver Upton (2):
KVM: arm64: Correctly handle page aging notifiers for unaligned memslot
KVM: arm64: Correctly handle RES0 bits PMEVTYPER<n>_EL0.evtCountSudeep Holla (1):
KVM: arm64: Handlekvm_arm_initfailure correctly infinalize_pkvmXiang Chen (1):
KVM: arm64: Fix the name ofsys_reg_descrelated to PMUarch/arm64/include/asm/kvm_host.h | 2 ++ arch/arm64/include/asm/kvm_pgtable.h | 26 +++++++------------- arch/arm64/include/asm/virt.h | 1 + arch/arm64/kvm/arch_timer.c | 6 ++--- arch/arm64/kvm/arm.c | 28 ++++++++++++++++++--- arch/arm64/kvm/hyp/hyp-entry.S | 8 ++++++ arch/arm64/kvm/hyp/nvhe/host.S | 10 ++++++++ arch/arm64/kvm/hyp/nvhe/psci-relay.c | 2 +- arch/arm64/kvm/hyp/pgtable.c | 47 +++++++++++++++++++++++++++++------- arch/arm64/kvm/mmu.c | 18 ++++++-------- arch/arm64/kvm/pkvm.c | 2 +- arch/arm64/kvm/sys_regs.c | 42 ++++++++++++++++---------------- arch/arm64/kvm/vgic/vgic-v3.c | 2 +- arch/arm64/kvm/vgic/vgic-v4.c | 7 ++++-- include/kvm/arm_vgic.h | 2 +- 15 files changed, 133 insertions(+), 70 deletions(-)
Paolo Bonzini
maintainerQuoted 15 lines · Oliver Upton
+cc lists, because I'm an idiot.
Quoted 11 lines · Oliver Upton
Hi Paolo,
Quite a pile of fixes for the first batch. The most noteworthy here is the BTI + pKVM finalization fixes, which address an early boot failure when using the split hypervisor on systems that support BTI and make the overall pKVM flow more robust to failures.
Otherwise, we have a respectable collection of one-offs described in the tag message.
Please pull.
Pulled, thanks. Should be in time for -rc3.
Paolo
Quoted 77 lines
Quoted 76 lines
--
Thanks,
OliverThe following changes since commit
06c2afb862f9da8dc5efa4b6076a0e48c3fbaaa5:Linux 6.5-rc1 (2023-07-09 13:53:13 -0700)
are available in the Git repository at:
git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.gittags/kvmarm-fixes-6.5-1for you to fetch changes up to
9d2a55b403eea26cab7c831d8e1c00ef1e6a6850:KVM: arm64: Fix the name of
sys_reg_descrelated to PMU (2023-07-14 23:34:05 +0000)----------------------------------------------------------------
KVM/arm64 fixes for 6.5, part #1- Avoid pKVM finalization if KVM initialization fails
- Add missing BTI instructions in the hypervisor, fixing an early boot failure on BTI systems
- Handle MMU notifiers correctly for non hugepage-aligned memslots
- Work around a bug in the architecture where hypervisor timer controls have UNKNOWN behavior under nested virt.
- Disable preemption in
kvm_arch_hardware_enable(), fixing a kernel BUG in cpu hotplug resulting from per-CPU accessor sanity checking.- Make WFI emulation on GICv4 systems robust w.r.t. preemption, consistently requesting a doorbell interrupt on
vcpu_put()- Uphold RES0 sysreg behavior when emulating older PMU versions
- Avoid macro expansion when initializing PMU register names, ensuring the tracepoints pretty-print the sysreg.
----------------------------------------------------------------
Marc Zyngier (3):
KVM: arm64: timers: UseCNTHCTL_EL2when setting non-CNTKCTL_EL1 bits
KVM: arm64: Disable preemption inkvm_arch_hardware_enable()
KVM: arm64: vgic-v4: Make the doorbell request robust w.r.t preemptionMostafa Saleh (1):
KVM: arm64: Add missing BTI instructionsOliver Upton (2):
KVM: arm64: Correctly handle page aging notifiers for unaligned memslot
KVM: arm64: Correctly handle RES0 bits PMEVTYPER<n>_EL0.evtCountSudeep Holla (1):
KVM: arm64: Handlekvm_arm_initfailure correctly infinalize_pkvmXiang Chen (1):
KVM: arm64: Fix the name ofsys_reg_descrelated to PMUarch/arm64/include/asm/kvm_host.h | 2 ++ arch/arm64/include/asm/kvm_pgtable.h | 26 +++++++------------- arch/arm64/include/asm/virt.h | 1 + arch/arm64/kvm/arch_timer.c | 6 ++--- arch/arm64/kvm/arm.c | 28 ++++++++++++++++++--- arch/arm64/kvm/hyp/hyp-entry.S | 8 ++++++ arch/arm64/kvm/hyp/nvhe/host.S | 10 ++++++++ arch/arm64/kvm/hyp/nvhe/psci-relay.c | 2 +- arch/arm64/kvm/hyp/pgtable.c | 47 +++++++++++++++++++++++++++++------- arch/arm64/kvm/mmu.c | 18 ++++++-------- arch/arm64/kvm/pkvm.c | 2 +- arch/arm64/kvm/sys_regs.c | 42 ++++++++++++++++---------------- arch/arm64/kvm/vgic/vgic-v3.c | 2 +- arch/arm64/kvm/vgic/vgic-v4.c | 7 ++++-- include/kvm/arm_vgic.h | 2 +- 15 files changed, 133 insertions(+), 70 deletions(-)