KVM: arm64: PMU: Preserve vPMC registers properly on migration
Status from this message: Applied to kvmarm/fixes, thanks!
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest2 patches 3 repliesApplied
- v12 patches 6 repliesSuperseded
Changes in v2 from the cover letter
- Collect Marc's r-b tags (Thank you!)
- Added "Fixes:" tags
- Added Cc: to stable
- Cosmetics change (remove one line break in kvm_pmu_handle_pmcr())
Patches in v2 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | KVM: arm64: PMU: Fix GET_ONE_REG for vPMC regs to return the current valuearch/ | +19 | 1 reply | |
| 2/2 | KVM: arm64: PMU: Don't save PMCR_EL0.{C,P} for the vCPUarch/ | +2 | 1 reply |
Reviews trailers per patch
All 2 patches have a Reviewed-by or Acked-by.
| Patch | Marc Zyngier |
|---|---|
| 1/2 | R-b |
| 2/2 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/2] KVM: arm64: PMU: Preserve vPMC registers properly on migration
The series fixes two problems in preserving vPMU counter (vPMC) registers (PMCCNTR_EL0/PMEVCNTR<n>_EL0) during migration.
One of the problems is that KVM may not return the current values of the vPMC registers for KVM_GET_ONE_REG.
The other one might cause KVM to reset the vPMC registers on the first KVM_RUN on the destination. This is because userspace might save PMCR_EL0 with PMCR_EL0.{C,P} bits set on the source, and restore it on the destination.
See patch-1 and patch-2 for details on these issues respectively.
The series is based on v6.3-rc2.
v2:
- Collect Marc's r-b tags (Thank you!)
- Added "Fixes:" tags
- Added Cc: to stable
- Cosmetics change (remove one line break in kvm_pmu_handle_pmcr())
v1: https://lore.kernel.org/all/[email protected]/
Reiji Watanabe (2):
KVM: arm64: PMU: Fix GET_ONE_REG for vPMC regs to return the current
value
KVM: arm64: PMU: Don't save PMCR_EL0.{C,P} for the vCPU
arch/arm64/kvm/pmu-emul.c | 3 ++- arch/arm64/kvm/sys_regs.c | 21 +++++++++++++++++++-- 2 files changed, 21 insertions(+), 3 deletions(-)
base-commit: eeac8ede17557680855031c6f305ece2378af326
Signature · 1 line
2.40.0.rc1.284.g88254d51c5-goog