[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v5 29/36] ppc/xics: remove abort() in icp_kvm_init()
From: |
Cédric Le Goater |
Subject: |
[Qemu-ppc] [PATCH v5 29/36] ppc/xics: remove abort() in icp_kvm_init() |
Date: |
Fri, 16 Nov 2018 11:57:22 +0100 |
Replace the abort with an error report which will be handled by the
caller.
Signed-off-by: Cédric Le Goater <address@hidden>
---
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
[Qemu-ppc] [PATCH v5 32/36] spapr/rtas: modify spapr_rtas_register() to remove RTAS handlers, Cédric Le Goater, 2018/11/16
[Qemu-ppc] [PATCH v5 31/36] spapr/xive: export the spapr_xive_kvm_init() routine, Cédric Le Goater, 2018/11/16