Mitigation of "failed to load cpu:cpreg_vmstate_array_len" migration failures
Status from this message: Applied to target-arm.next, thanks (with an edit to the
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v10 Latest7 patches 6 repliesApplied
- v96 patches 9 repliesSuperseded
- v86 patches 10 repliesSuperseded
Earlier versions · 8
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v7 | 7 patches | 1 reply | Superseded | |
| v6 | 11 patches | 20 replies | Superseded | |
| v5 | 11 patches | 2 replies | Superseded | |
| v4 | 10 patches | 6 replies | Superseded | |
| v3 | 11 patches | 14 replies | Superseded | |
| v2 | 8 patches | 4 replies | Superseded | |
| v1 posting 2/2 | 7 patches | 14 replies | Superseded | |
| v1 posting 1/2 | 6 of 7 patches | 1 reply | Superseded |
Changes in v10 from the cover letter
- main functional change consists in the introduction of a new ToleranceOnlySrcTestValue migration tolerance type to handle KVM_REG_ARM_VENDOR_HYP_BMAP_2
- See individual patch diff logs for more details
Patches in v10 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | target/arm/cpu: Introduce the infrastructure for cpreg migration tolerancestarget/ target/ target/ | +137 | 1 reply | |
| 2/7 | target/arm/machine: Handle ToleranceNotOnBothEnds migration tolerancestarget/ target/ | +17 | 0 replies | |
| 3/7 | target/arm/machine: Handle ToleranceOnlySrcTestValue migration tolerancetarget/ | +10 | 1 reply | |
| 4/7 | target/arm/cpu64: Mitigate migration failures due to spurious TCR_EL1, PIRE0_EL1 and PIR_EL1target/ | +28 | 0 replies | |
| 5/7 | target/arm/cpu64: Define cpreg migration tolerance for KVM_REG_ARM_VENDOR_HYP_BMAP_2target/ | +11 | 1 reply | |
| 6/7 | target/arm/helper: Define cpreg migration tolerance for DGBDTR_EL0target/ | +15 | 1 reply | |
| 7/7 | Revert "target/arm: Reinstate bogus AArch32 DBGDTRTX register for migration compat"target/ | +0 | 0 replies |
Reviews trailers per patch
All 7 patches have a Reviewed-by or Acked-by.
| Patch | Peter Maydell | Sebastian Ott |
|---|---|---|
| 1/7 | R-b | |
| 2/7 | R-b | |
| 3/7 | R-b | |
| 4/7 | R-b | R-b |
| 5/7 | R-b | |
| 6/7 | R-b | R-b |
| 7/7 | R-b | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v10 0/7] Mitigation of "failed to load cpu:cpreg_vmstate_array_len" migration failures
This series introduces an infrastructure to explicitly tolerate some mismatches between cpu cpreg indexes/values on migration.
We especially handle failures due to an attempt to migrate more registers than exposed on the destination.
Once the infrastructure is in place we can handle the following known issues:
KVM:
- removal of unconditionnal exposure of TCR2_EL1, PIRE0_EL1, PIR_EL1 from v6.13 onwards. Causes forward migration failure.
- unconditionnal exposure of KVM_REG_ARM_VENDOR_HYP_BMAP_2 FW pseudo register from v6.16 onwards. Causes backward migration failure.
TCG:
- We can eventually remove AArch32 DBGDTRTX register which was erroneously defined.
The series can be found at:
https://github.com/eauger/qemu/tree/x-kernel-mig-v10
History:
v9 -> v10:
- main functional change consists in the introduction of a new ToleranceOnlySrcTestValue migration tolerance type to handle KVM_REG_ARM_VENDOR_HYP_BMAP_2
- See individual patch diff logs for more details
v8 -> v9:
- took into account Seb's comments (fixed ->type check, rename one function)
- collected R-bs
v7 -> v8:
- rebase on top of v3 dep
- removal of target/arm/machine: Fix detection of unknown incoming cpregs which is integrated in prerequisite series
v6 -> v7
- complete rework after Peter's comments in
(https://lore.kernel.org/all/[email protected]/)
Especially it does not use properties at all. Do not feature hidden regs Also the initial series was split into 2.
Eric Auger (7):
target/arm/cpu: Introduce the infrastructure for cpreg migration
tolerances
target/arm/machine: Handle ToleranceNotOnBothEnds migration tolerances target/arm/machine: Handle ToleranceOnlySrcTestValue migration
tolerance
target/arm/cpu64: Mitigate migration failures due to spurious TCR_EL1,
PIRE0_EL1 and PIR_EL1
target/arm/cpu64: Define cpreg migration tolerance for
KVM_REG_ARM_VENDOR_HYP_BMAP_2
target/arm/helper: Define cpreg migration tolerance for DGBDTR_EL0 Revert "target/arm: Reinstate bogus AArch32 DBGDTRTX register for
migration compat"
target/arm/cpu.h | 1 + target/arm/internals.h | 54 ++++++++++++++++++++++++++ target/arm/cpu.c | 82 +++++++++++++++++++++++++++++++++++++++ target/arm/cpu64.c | 39 +++++++++++++++++++ target/arm/debug_helper.c | 29 -------------- target/arm/helper.c | 15 +++++++ target/arm/machine.c | 33 +++++++++++----- target/arm/trace-events | 2 + 8 files changed, 217 insertions(+), 38 deletions(-)
Signature · 1 line
2.53.0