On Thu, 27 Jul 2023 at 08:31, Akihiko Odaki <akihiko.odaki@xxxxxxxxxx> wrote: > > On MIPS, kvm_arch_get_default_type() returns a negative value when an > error occurred so handle the case. Also, let other machines return > negative values when errors occur and declare returning a negative > value as the correct way to propagate an error that happened when > determining KVM type. > > Signed-off-by: Akihiko Odaki <akihiko.odaki@xxxxxxxxxx> > --- > accel/kvm/kvm-all.c | 5 +++++ > hw/arm/virt.c | 2 +- > hw/ppc/spapr.c | 2 +- > 3 files changed, 7 insertions(+), 2 deletions(-) I might have put this earlier in the series, but we get to the same place in the end whichever way around we do it. Reviewed-by: Peter Maydell <peter.maydell@xxxxxxxxxx> thanks -- PMM