RISC-V: KVM: Exit run-loop immediately if xfer_to_guest fails
authorAnup Patel <apatel@ventanamicro.com>
Wed, 7 Dec 2022 03:46:21 +0000 (09:16 +0530)
committerAnup Patel <anup@brainfault.org>
Wed, 7 Dec 2022 03:46:21 +0000 (09:16 +0530)
commitaf934432e4a169f7252a114a6c5c7289366bd0ab
tree97490558e21e1d0fbf0638bb8c405573d7213d50
parentb3f2575a993497dde19c18db73208325e8efba60
RISC-V: KVM: Exit run-loop immediately if xfer_to_guest fails

If xfer_to_guest_mode_handle_work() fails in the run-loop then exit
the run-loop immediately instead of doing it after some more work.

Signed-off-by: Anup Patel <apatel@ventanamicro.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Anup Patel <anup@brainfault.org>
arch/riscv/kvm/vcpu.c