KVM: s390: start using the GIB
authorMichael Mueller <mimu@linux.ibm.com>
Thu, 31 Jan 2019 08:52:45 +0000 (09:52 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 5 Feb 2019 13:29:24 +0000 (14:29 +0100)
By initializing the GIB, it will be used by the kvm host.

Signed-off-by: Michael Mueller <mimu@linux.ibm.com>
Reviewed-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Halil Pasic <pasic@linux.ibm.com>
Message-Id: <20190131085247.13826-15-mimu@linux.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c

index 0099fbd..2e47c72 100644 (file)
@@ -435,8 +435,15 @@ int kvm_arch_init(void *opaque)
                pr_err("A FLIC registration call failed with rc=%d\n", rc);
                goto out_debug_unreg;
        }
+
+       rc = kvm_s390_gib_init(GAL_ISC);
+       if (rc)
+               goto out_gib_destroy;
+
        return 0;
 
+out_gib_destroy:
+       kvm_s390_gib_destroy();
 out_debug_unreg:
        debug_unregister(kvm_s390_dbf);
        return rc;