There were a few bugs with silent cpu failures during migrations [1]. The failures are no longer silent thanks to [2], but still indistinguishable, making diagnostics difficult.
This patchset reworks kvm_arch_get/put_registers to handle Error** and return a correct message, with x86_64 as a start. [1] https://issues.redhat.com/browse/RHEL-7558 [2] 7191f24c7fcf "accel/kvm/kvm-all: Handle register access errors" -- v2: * made all reports as error_reportf_err() and fixed prefixes [Peter] Julia Suvorova (2): kvm: Allow kvm_arch_get/put_registers to accept Error** target/i386/kvm: Report which action failed in kvm_arch_put/get_registers accel/kvm/kvm-all.c | 41 +++++++++++++++++++++++++++++--------- include/sysemu/kvm.h | 4 ++-- target/arm/kvm.c | 4 ++-- target/i386/kvm/kvm.c | 27 +++++++++++++++++++++++-- target/loongarch/kvm/kvm.c | 4 ++-- target/mips/kvm.c | 4 ++-- target/ppc/kvm.c | 2 +- target/riscv/kvm/kvm-cpu.c | 4 ++-- target/s390x/kvm/kvm.c | 4 ++-- 9 files changed, 70 insertions(+), 24 deletions(-) -- 2.45.0