KVM: s390: start using the GIB
Subsystems (3)
PATCH v4 10/10 KVM: s390: start using the GIB
By initializing the GIB, it will be used by the kvm host.
Signed-off-by Michael Mueller <[email protected]>
--- Documentation/kmsg/s390/kvm | 12 ++++++++++++ arch/s390/kvm/kvm-s390.c | 10 +++++++++- 2 files changed, 21 insertions(+), 1 deletion(-)
Documentation/kmsg/s390/kvm +12 -0
@@ -10,3 +10,15 @@ * If this problem persists after a reload of the kvm kernel module, gather * Linux debug data and contact your support organization. */ + +/*? + * Text: "Failed to initialize GIB rc=%d\n" + * Severity: Error + * Parameter: + * @1: return code of the GIB initialization call + * Description: + * The initialization if the GIB (Guest Information Block) was not successful. + * User action: + * If this problem persists after a reload of the kvm kernel module, gather + * Linux debug data and contact your support organization. + */
arch/s390/kvm/kvm-s390.c +9 -1
@@ -428,16 +428,24 @@ int kvm_arch_init(void *opaque) goto out_debug_unreg; } + rc =kvm_s390_gib_init (GAL_ISC ); +if (rc) { +pr_err ("Failed to initialize GIB rc=%d\n" , rc); + goto out_debug_unreg; + } +kvm_s390_cpu_feat_init ();/* Register floating interrupt controller interface. */ rc =kvm_register_device_ops (&kvm_flic_ops,KVM_DEV_TYPE_FLIC );if (rc) {pr_err ("Failed to register FLIC rc=%d\n" , rc); - goto out_debug_unreg; + goto out_gib_destroy; }return 0 ; +out_gib_destroy: +kvm_s390_gib_destroy (); out_debug_unreg:debug_unregister (kvm_s390_dbf);return rc;
Signature · 1 line
2.13.4