KVM: arm64: Fix handling of ID_PFR1_EL1.GIC
Status from this message: Applied to fixes, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest3 patches 9 repliesApplied
- v13 patches 4 repliesSuperseded
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | KVM: arm64: Make all 32bit ID registers fully writablearch/ | +31 | 0 replies | |
| 2/3 | KVM: arm64: Set ID_{AA64PFR0,PFR1}_EL1.GIC when GICv3 is configuredarch/ | +12 | 0 replies | |
| 3/3 | KVM: arm64: Limit clearing of ID_{AA64PFR0,PFR1}_EL1.GIC to userspace irqchiparch/ | +7 | 5 replies |
Reviews trailers per patch
None of the 3 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Oliver Upton |
|---|---|
| Series | R-b |
| 1/3 | |
| 2/3 | |
| 3/3 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] KVM: arm64: Fix handling of ID_PFR1_EL1.GIC
Peter reported[0] that restoring a GICv2 VM fails badly, and correctly points out that ID_PFR1_EL1.GIC isn't writable, while its 64bit equivalent is. I broke that in 6.12.
The other thing is that fixing the ID regs at runtime isn't great. specially when we could adjust them at the point where the GIC gets created.
This small series aims at fixing these issues. I've only tagged the first one as a stable candidate. With these fixes, I can happily save/restore a GICv2 VM (both 32 and 64bit) on my trusty Synquacer.
* From v1 [1]:
- Make all 32bit ID regs writable
- Use official accessors to manipulate ID regs
- Rebased on 6.18-rc3
[0] https://lore.kernel.org/r/CAFEAcA8TpQduexT=8rdRYC=yxm_073COjzgWJAvc26_T+-F5vA@mail.gmail.com
[3] https://lore.kernel.org/r/[email protected]
Marc Zyngier (3):
KVM: arm64: Make all 32bit ID registers fully writable
KVM: arm64: Set ID_{AA64PFR0,PFR1}_EL1.GIC when GICv3 is configured
KVM: arm64: Limit clearing of ID_{AA64PFR0,PFR1}_EL1.GIC to userspace
irqchip
arch/arm64/kvm/sys_regs.c | 71 ++++++++++++++++++--------------- arch/arm64/kvm/vgic/vgic-init.c | 14 ++++++- 2 files changed, 50 insertions(+), 35 deletions(-)
Signature · 1 line
2.47.3