Skip to contentSkip to conversation

KVM/arm64 fixes for 7.1, take #4

GIT PULL Marc Zyngier 2 participants 2 messages May 29

Subsystems (2)
lore
Share & tools
lore

Marc Zyngier

author maintainer
#0 lore raw

Paolo,

This is hopefully the last round of fixes for 7.1 on the KVM/arm64 front.

We have yet another batch of fixes for the newly introduced tracing code (memory leaks), a fix for a config symbol misspelled in the source code (therefore being permanently disabled), a fix for an embarrassing bug in the PMU emulation (write any value as long as it is zero), and an SVE sanitisation bug in nested virt resulting in a guest being able to access more than it really should.

I've purposely refrained from adding another lot of fixes for more benign issues since His Majesty has announced he'd be picky about that. Fear not, they'll be in the 7.2 pull request.

Please pull,

	M.

The following changes since commit 1702da76e017ae0fbe1a92b07bc332972c293e89:

KVM: arm64: Fix nVHE/pKVM hyp tracing error on invalid desc (2026-05-20 08:08:37 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-7.1-4

for you to fetch changes up to 83726330748981372bde86ed5411d7b306612991:

KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor (2026-05-29 10:04:00 +0100)

----------------------------------------------------------------
KVM/arm64 fixes for 7.1, take #4

- Restore CONFIG_PKVM_DISABLE_STAGE2_ON_PANIC to its former glory by making sure the config symbol is correctly spelled out in the code

- Don't reset the AArch32 view of the PMU counters to zero when the guest is writing to them

- Fix an assorted collection of memory leaks in the newly added tracing code

- Fix the capping of ZCR_EL2 which could be used in an unsanitised way by an L2 guest

----------------------------------------------------------------
Mark Brown (1):
KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor

Qiang Ma (1):
KVM: arm64: PMU: Preserve AArch32 counter low bits

Vincent Donnefort (4):
KVM: arm64: Fix CONFIG_PKVM_DISABLE_STAGE2_ON_PANIC
KVM: arm64: Fix meta-page unsharing in pKVM hyp tracing
KVM: arm64: Fix rollback in hyp_trace_buffer_share_hyp()
KVM: arm64: Fix memory leak in hyp_trace_unload()

 arch/arm64/include/asm/kvm_host.h       |  2 +-
 arch/arm64/kvm/hyp/include/hyp/switch.h | 16 ++++++++++------
 arch/arm64/kvm/hyp/nvhe/host.S          |  2 +-
 arch/arm64/kvm/hyp_trace.c              |  9 ++++++---
 arch/arm64/kvm/nested.c                 |  5 +++++
 arch/arm64/kvm/pmu-emul.c               |  4 ++--
 arch/arm64/kvm/sys_regs.c               | 11 +++--------
 7 files changed, 28 insertions(+), 21 deletions(-)
maintainer
#1 lore raw
Quoted 13 lines · Marc Zyngier

Paolo,

This is hopefully the last round of fixes for 7.1 on the KVM/arm64 front.

We have yet another batch of fixes for the newly introduced tracing code (memory leaks), a fix for a config symbol misspelled in the source code (therefore being permanently disabled), a fix for an embarrassing bug in the PMU emulation (write any value as long as it is zero), and an SVE sanitisation bug in nested virt resulting in a guest being able to access more than it really should.

Quoted 3 lines

I've purposely refrained from adding another lot of fixes for more benign issues since His Majesty has announced he'd be picky about that. Fear not, they'll be in the 7.2 pull request.

I'm afraid I'll already have enough reasons to be shouted at this week. :) Pulled, thanks.

Paolo

Quoted 53 lines

Please pull,

        M.

The following changes since commit 1702da76e017ae0fbe1a92b07bc332972c293e89:

KVM: arm64: Fix nVHE/pKVM hyp tracing error on invalid desc (2026-05-20 08:08:37 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-7.1-4

for you to fetch changes up to 83726330748981372bde86ed5411d7b306612991:

KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor (2026-05-29 10:04:00 +0100)

----------------------------------------------------------------
KVM/arm64 fixes for 7.1, take #4

- Restore CONFIG_PKVM_DISABLE_STAGE2_ON_PANIC to its former glory by making sure the config symbol is correctly spelled out in the code

- Don't reset the AArch32 view of the PMU counters to zero when the guest is writing to them

- Fix an assorted collection of memory leaks in the newly added tracing code

- Fix the capping of ZCR_EL2 which could be used in an unsanitised way by an L2 guest

----------------------------------------------------------------
Mark Brown (1):
KVM: arm64: Correctly cap ZCR_EL2 provided by a guest hypervisor

Qiang Ma (1):
KVM: arm64: PMU: Preserve AArch32 counter low bits

Vincent Donnefort (4):
KVM: arm64: Fix CONFIG_PKVM_DISABLE_STAGE2_ON_PANIC
KVM: arm64: Fix meta-page unsharing in pKVM hyp tracing
KVM: arm64: Fix rollback in hyp_trace_buffer_share_hyp()
KVM: arm64: Fix memory leak in hyp_trace_unload()

 arch/arm64/include/asm/kvm_host.h       |  2 +-
 arch/arm64/kvm/hyp/include/hyp/switch.h | 16 ++++++++++------
 arch/arm64/kvm/hyp/nvhe/host.S          |  2 +-
 arch/arm64/kvm/hyp_trace.c              |  9 ++++++---
 arch/arm64/kvm/nested.c                 |  5 +++++
 arch/arm64/kvm/pmu-emul.c               |  4 ++--
 arch/arm64/kvm/sys_regs.c               | 11 +++--------
 7 files changed, 28 insertions(+), 21 deletions(-)