qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/2] kvm: Improve register failure reports for migration
@ 2024-09-27 10:47 Julia Suvorova
  2024-09-27 10:47 ` [PATCH v2 1/2] kvm: Allow kvm_arch_get/put_registers to accept Error** Julia Suvorova
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Julia Suvorova @ 2024-09-27 10:47 UTC (permalink / raw)
  To: qemu-devel
  Cc: Paolo Bonzini, Peter Xu, Marcelo Tosatti, Peter Maydell, Song Gao,
	Alistair Francis, Daniel Henrique Barboza, Christian Borntraeger,
	Philippe Mathieu-Daudé, Julia Suvorova

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2024-10-02 11:07 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-09-27 10:47 [PATCH v2 0/2] kvm: Improve register failure reports for migration Julia Suvorova
2024-09-27 10:47 ` [PATCH v2 1/2] kvm: Allow kvm_arch_get/put_registers to accept Error** Julia Suvorova
2024-09-27 10:47 ` [PATCH v2 2/2] target/i386/kvm: Report which action failed in kvm_arch_put/get_registers Julia Suvorova
2024-10-02 11:06 ` [PATCH v2 0/2] kvm: Improve register failure reports for migration Paolo Bonzini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).