[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-ppc] [PATCH v5 31/36] spapr/xive: export the spapr_xive_kvm_init()
From: |
Cédric Le Goater |
Subject: |
[Qemu-ppc] [PATCH v5 31/36] spapr/xive: export the spapr_xive_kvm_init() routine |
Date: |
Fri, 16 Nov 2018 11:57:24 +0100 |
We will need it to initialize the KVM XIVE device globally from the
machine when the XIVE interrupt mode is selected.
Signed-off-by: Cédric Le Goater <address@hidden>
---
include/hw/ppc/spapr_xive.h | 2 ++
hw/intc/spapr_xive_kvm.c | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/include/hw/ppc/spapr_xive.h b/include/hw/ppc/spapr_xive.h
index fa7f3d7718da..1d134a681326 100644
--- a/include/hw/ppc/spapr_xive.h
+++ b/include/hw/ppc/spapr_xive.h
@@ -107,4 +107,6 @@ void spapr_xive_mmio_map(sPAPRXive *xive);
#define TYPE_XIVE_TCTX_KVM "xive-tctx-kvm"
#define XIVE_TCTX_KVM(obj) OBJECT_CHECK(XiveTCTX, (obj), TYPE_XIVE_TCTX_KVM)
+void spapr_xive_kvm_init(sPAPRXive *xive, Error **errp);
+
#endif /* PPC_SPAPR_XIVE_H */
diff --git a/hw/intc/spapr_xive_kvm.c b/hw/intc/spapr_xive_kvm.c
index b9fee4ea240f..cb2aa6e81274 100644
--- a/hw/intc/spapr_xive_kvm.c
+++ b/hw/intc/spapr_xive_kvm.c
@@ -809,7 +809,7 @@ static void spapr_xive_kvm_instance_init(Object *obj)
NULL);
}
-static void spapr_xive_kvm_init(sPAPRXive *xive, Error **errp)
+void spapr_xive_kvm_init(sPAPRXive *xive, Error **errp)
{
Error *local_err = NULL;
size_t tima_len;
--
2.17.2
[Qemu-ppc] [PATCH v5 31/36] spapr/xive: export the spapr_xive_kvm_init() routine,
Cédric Le Goater <=
[Qemu-ppc] [PATCH v5 34/36] spapr: add KVM support to the 'dual' machine, Cédric Le Goater, 2018/11/16
[Qemu-ppc] [PATCH v5 33/36] spapr: introduce routines to delete the KVM IRQ device, Cédric Le Goater, 2018/11/16
[Qemu-ppc] [PATCH v5 26/36] spapr: add a 'pseries-3.1-dual' machine type, Cédric Le Goater, 2018/11/16
[Qemu-ppc] [PATCH v5 35/36] ppc: externalize ppc_get_vcpu_by_pir(), Cédric Le Goater, 2018/11/16
[Qemu-ppc] [PATCH v5 30/36] spapr: check for KVM IRQ device activation, Cédric Le Goater, 2018/11/16