Skip to contentSkip to conversation

KVM/arm64 fixes for 7.2, take #1

GIT PULL Marc Zyngier 2 participants 2 messages Jun 26 – Jul 15

Subsystems (2)
lore
Share & tools
lore

Marc Zyngier

author maintainer
#0 lore raw

Paolo,

As predicted, here's another largeish set of fixes for KVM/arm64. A bunch of them are fairly benign (the PSTATE.IL stuff), but some are pretty annoying (vgic, MOPS) and are stable material.

On the bright side, Fuad has volunteered to be an official reviewer. We really need people to engage with the reviewing process instead of simply dumping patches on us, as me and Oliver really can't be stretched much further. So many thanks Fuad for offering to help.

I expect to be back next week with a similar delivery, as my Inbox keeps filling with this stuff...

Please pull,

	M.

The following changes since commit 1ee27dacbe5dc4def481794d899d67b0d4570094:

Merge branch kvm-arm64/nv-mmu-7.2 into kvmarm-master/next (2026-06-12 09:29:34 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-7.2-1

for you to fetch changes up to d098bb75d14fde2f12155f1a95ec0168160867ce:

KVM: arm64: account pKVM reclaim against the VM mm (2026-06-22 10:48:08 +0100)

----------------------------------------------------------------
KVM/arm64 fixes for 7.2, take #1

- Fix an accounting buglet when reclaiming pages from a protected guest

- Fix a bunch of architectural compliance issues when injecting a synthesised exception, most of which were missing the PSTATE.IL bit indicating a 32bit-wide instruction

- Another set of fixes addressing issues with translation of VNCR_EL2, including corner cases where the guest point that register at a RO page...

- Don't warn when trapping accesses to ZCR_EL2 from an L2 guest, as that's not unexpected at all

- Address a bunch of races with LPI migration vs LPIs being disabled

- Fix a total howler of a bug combining FEAT_MOPS and NV, resulting in exception returning in the wrong place...

- Coerce Fuad Tabba into a reviewer role, and may his Inbox catch fire!

----------------------------------------------------------------
Bradley Morgan (1):
KVM: arm64: account pKVM reclaim against the VM mm

Fuad Tabba (11):
KVM: arm64: nv: Write ESR_EL2 for injected nested SError exceptions
KVM: arm64: Sync SPSR_EL1 when injecting an exception into a pVM
KVM: arm64: nv: Fix PSTATE construction on illegal exception return
KVM: arm64: Add Fuad Tabba as a reviewer
KVM: arm64: Set ESR_ELx.IL for injected undefined exceptions at EL2
KVM: arm64: Unconditionally set IL for injected undefined exceptions
KVM: arm64: Unconditionally set IL for injected abort exceptions
KVM: arm64: Set IL for injected FPAC exceptions during ERET emulation
KVM: arm64: Set IL for emulated SError injection
KVM: arm64: Set IL for nested SError injection
KVM: arm64: Set IL in fake ESR for pKVM memory sharing exit

Hyunwoo Kim (1):
KVM: arm64: vgic: Check the interrupt is still ours before migrating it

Marc Zyngier (1):
KVM: arm64: vgic: Handle race between interrupt affinity change and LPI disabling

Oliver Upton (6):
KVM: arm64: nv: Drop bogus WARN for write to ZCR_EL2
KVM: arm64: nv: Respect read-only PFN when mapping L1 VNCR
KVM: arm64: nv: Inject SEA if kvm_translate_vncr() can't resolve PFN
KVM: arm64: nv: Re-translate VNCR before injecting abort
KVM: arm64: nv: Inject SEA if guest VNCR isn't normal memory
KVM: arm64: nv: Mark VM as bugged for unexpected VNCR abort

Weiming Shi (1):
KVM: arm64: nv: Fix SPSR_EL2 restore in kvm_hyp_handle_mops()

 MAINTAINERS                             |   1 +
 arch/arm64/include/asm/kvm_nested.h     |   8 ++
 arch/arm64/kvm/at.c                     |   8 --
 arch/arm64/kvm/emulate-nested.c         |  37 +++++--
 arch/arm64/kvm/hyp/include/hyp/switch.h |  11 ++-
 arch/arm64/kvm/hyp/nvhe/pkvm.c          |   3 +-
 arch/arm64/kvm/hyp/nvhe/sys_regs.c      |   3 +-
 arch/arm64/kvm/inject_fault.c           |  18 +---
 arch/arm64/kvm/nested.c                 | 164 ++++++++++++++++----------------
 arch/arm64/kvm/pkvm.c                   |   2 +-
 arch/arm64/kvm/vgic/vgic.c              |  20 ++--
 11 files changed, 149 insertions(+), 126 deletions(-)
maintainer
#1 lore raw
Quoted 11 lines · Marc Zyngier

Paolo,

As predicted, here's another largeish set of fixes for KVM/arm64. A bunch of them are fairly benign (the PSTATE.IL stuff), but some are pretty annoying (vgic, MOPS) and are stable material.

On the bright side, Fuad has volunteered to be an official reviewer. We really need people to engage with the reviewing process instead of simply dumping patches on us, as me and Oliver really can't be stretched much further. So many thanks Fuad for offering to help.

Indeed, thanks very much!

Quoted 2 lines

I expect to be back next week with a similar delivery, as my Inbox keeps filling with this stuff...

Pulled, thanks. Sorry for the delay (though it was known in advance).

Paolo

Quoted 88 lines

Please pull,

        M.

The following changes since commit 1ee27dacbe5dc4def481794d899d67b0d4570094:

Merge branch kvm-arm64/nv-mmu-7.2 into kvmarm-master/next (2026-06-12 09:29:34 +0100)

are available in the Git repository at:

git://git.kernel.org/pub/scm/linux/kernel/git/kvmarm/kvmarm.git tags/kvmarm-fixes-7.2-1

for you to fetch changes up to d098bb75d14fde2f12155f1a95ec0168160867ce:

KVM: arm64: account pKVM reclaim against the VM mm (2026-06-22 10:48:08 +0100)

----------------------------------------------------------------
KVM/arm64 fixes for 7.2, take #1

- Fix an accounting buglet when reclaiming pages from a protected guest

- Fix a bunch of architectural compliance issues when injecting a synthesised exception, most of which were missing the PSTATE.IL bit indicating a 32bit-wide instruction

- Another set of fixes addressing issues with translation of VNCR_EL2, including corner cases where the guest point that register at a RO page...

- Don't warn when trapping accesses to ZCR_EL2 from an L2 guest, as that's not unexpected at all

- Address a bunch of races with LPI migration vs LPIs being disabled

- Fix a total howler of a bug combining FEAT_MOPS and NV, resulting in exception returning in the wrong place...

- Coerce Fuad Tabba into a reviewer role, and may his Inbox catch fire!

----------------------------------------------------------------
Bradley Morgan (1):
KVM: arm64: account pKVM reclaim against the VM mm

Fuad Tabba (11):
KVM: arm64: nv: Write ESR_EL2 for injected nested SError exceptions
KVM: arm64: Sync SPSR_EL1 when injecting an exception into a pVM
KVM: arm64: nv: Fix PSTATE construction on illegal exception return
KVM: arm64: Add Fuad Tabba as a reviewer
KVM: arm64: Set ESR_ELx.IL for injected undefined exceptions at EL2
KVM: arm64: Unconditionally set IL for injected undefined exceptions
KVM: arm64: Unconditionally set IL for injected abort exceptions
KVM: arm64: Set IL for injected FPAC exceptions during ERET emulation
KVM: arm64: Set IL for emulated SError injection
KVM: arm64: Set IL for nested SError injection
KVM: arm64: Set IL in fake ESR for pKVM memory sharing exit

Hyunwoo Kim (1):
KVM: arm64: vgic: Check the interrupt is still ours before migrating it

Marc Zyngier (1):
KVM: arm64: vgic: Handle race between interrupt affinity change and LPI disabling

Oliver Upton (6):
KVM: arm64: nv: Drop bogus WARN for write to ZCR_EL2
KVM: arm64: nv: Respect read-only PFN when mapping L1 VNCR
KVM: arm64: nv: Inject SEA if kvm_translate_vncr() can't resolve PFN
KVM: arm64: nv: Re-translate VNCR before injecting abort
KVM: arm64: nv: Inject SEA if guest VNCR isn't normal memory
KVM: arm64: nv: Mark VM as bugged for unexpected VNCR abort

Weiming Shi (1):
KVM: arm64: nv: Fix SPSR_EL2 restore in kvm_hyp_handle_mops()

 MAINTAINERS                             |   1 +
 arch/arm64/include/asm/kvm_nested.h     |   8 ++
 arch/arm64/kvm/at.c                     |   8 --
 arch/arm64/kvm/emulate-nested.c         |  37 +++++--
 arch/arm64/kvm/hyp/include/hyp/switch.h |  11 ++-
 arch/arm64/kvm/hyp/nvhe/pkvm.c          |   3 +-
 arch/arm64/kvm/hyp/nvhe/sys_regs.c      |   3 +-
 arch/arm64/kvm/inject_fault.c           |  18 +---
 arch/arm64/kvm/nested.c                 | 164 ++++++++++++++++----------------
 arch/arm64/kvm/pkvm.c                   |   2 +-
 arch/arm64/kvm/vgic/vgic.c              |  20 ++--
 11 files changed, 149 insertions(+), 126 deletions(-)