accel/kvm/kvm-all: Handle register access errors
authorAkihiko Odaki <akihiko.odaki@daynix.com>
Thu, 1 Dec 2022 10:27:28 +0000 (19:27 +0900)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 29 Sep 2023 07:33:10 +0000 (09:33 +0200)
commit7191f24c7fcfbc1216d09214122582f4f9d699db
treef247b2c1ca2f54b083217105f6af81c64263417f
parent35ed01ba5448208695ada5fa20a13c0a4689a1c1
accel/kvm/kvm-all: Handle register access errors

A register access error typically means something seriously wrong
happened so that anything bad can happen after that and recovery is
impossible.
Even failing one register access is catastorophic as
architecture-specific code are not written so that it torelates such
failures.

Make sure the VM stop and nothing worse happens if such an error occurs.

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Message-ID: <20221201102728.69751-1-akihiko.odaki@daynix.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
accel/kvm/kvm-all.c