Replace the abort with an error report which will be handled by the
caller.

Signed-off-by: Cédric Le Goater <c...@kaod.org>
---
 hw/intc/xics_kvm.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/hw/intc/xics_kvm.c b/hw/intc/xics_kvm.c
index efad1b19d821..9662e208fa81 100644
--- a/hw/intc/xics_kvm.c
+++ b/hw/intc/xics_kvm.c
@@ -131,7 +131,8 @@ static void icp_kvm_init(ICPState *icp, Error **errp)
     int ret;
 
     if (kernel_xics_fd == -1) {
-        abort();
+        error_setg(errp, "KVM XICS device is not initialized");
+        return;
     }
 
     cs = icp->cs;
-- 
2.17.2


Reply via email to