Skip to contentSkip to conversation

KVM: s390: start using the GIB

PATCH Michael Mueller 1 participant 1 message Nov 28, 2018 1 message not in the archive s390

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
Quoted 24 lines · Cornelia Huck
Quoted 21 lines · On Wed, 28 Nov 2018 11:19:42 +0100 Michael Mueller <[email protected]> wrote:

By initializing the GIB, it will be used by the kvm host.

---
  arch/s390/kvm/kvm-s390.c | 4 ++++
  1 file changed, 4 insertions(+)
arch/s390/kvm/kvm-s390.c +4 -0
index 283c51362ca8..9b20017dda29 100644
@@ -428,6 +428,10 @@ int kvm_arch_init(void *opaque)
  		goto out_unreg;
  	}
 
+	rc = kvm_s390_gib_init(GAL_ISC);
+	if (rc)
+		goto out_unreg;
+
  	kvm_s390_cpu_feat_init();
 
Quoted 4 lines

arch/s390/kvm/kvm-s390.c int kvm_arch_init(void *opaque) · line 437

Quoted 1 line
arch/s390/kvm/kvm-s390.c +0 -0
  	/* Register floating interrupt controller interface. */

Aren't you missing a call to kvm_s390_gib_destroy() in the out_unreg case (if registering the flic fails)?

Details... ;)

Quoted 1 line