For VM save/restore in nested virt scenarios, to be triaged later.

Signed-off-by: Mohamed Mediouni <[email protected]>
---
 target/arm/hvf/hvf.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/target/arm/hvf/hvf.c b/target/arm/hvf/hvf.c
index 8d537b6201..4f3c322776 100644
--- a/target/arm/hvf/hvf.c
+++ b/target/arm/hvf/hvf.c
@@ -653,7 +653,12 @@ int hvf_arch_get_registers(CPUState *cpu)
 
         arm_cpu->cpreg_values[i] = val;
     }
-    assert(write_list_to_cpustate(arm_cpu));
+
+    /* Don't make this fatal for now. */
+    if (write_list_to_cpustate(arm_cpu)) {
+        warn_report("hvf_arch_get_registers: not all registers are matching");
+    }
+
 
     aarch64_restore_sp(env, arm_current_el(env));
 
-- 
2.50.1 (Apple Git-155)


Reply via email to