Blame SOURCES/kvm-s390x-ais-for-2.10-stable-disable-ais-facility.patch

4a2fec
From 49a0dc9e670b7f67713a7f9115028a4a29fbd03b Mon Sep 17 00:00:00 2001
4a2fec
From: Cornelia Huck <cohuck@redhat.com>
4a2fec
Date: Thu, 5 Oct 2017 12:04:05 +0200
4a2fec
Subject: [PATCH 11/34] s390x/ais: for 2.10 stable: disable ais facility
4a2fec
4a2fec
RH-Author: Cornelia Huck <cohuck@redhat.com>
4a2fec
Message-id: <20171005120406.16642-2-cohuck@redhat.com>
4a2fec
Patchwork-id: 76818
4a2fec
O-Subject: [RHV7.5 qemu-kvm-ma PATCH 1/2] s390x/ais: for 2.10 stable: disable ais facility
4a2fec
Bugzilla: 1494548
4a2fec
RH-Acked-by: Thomas Huth <thuth@redhat.com>
4a2fec
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
4a2fec
RH-Acked-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
4a2fec
4a2fec
From: Christian Borntraeger <borntraeger@de.ibm.com>
4a2fec
4a2fec
The migration interface for ais was introduced with kernel 4.13
4a2fec
but the capability itself had been active since 4.12. As migration
4a2fec
support is considered necessary lets disable ais in the 2.10
4a2fec
stable version. A proper fix and re-enablement will be done
4a2fec
for qemu 2.11.
4a2fec
4a2fec
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
4a2fec
Message-Id: <20170921140834.14233-2-borntraeger@de.ibm.com>
4a2fec
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
4a2fec
(cherry picked from commit 3f2d07b3b01ea61126b382633ab4006320923048)
4a2fec
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
4a2fec
---
4a2fec
 target/s390x/kvm.c | 9 +++++++--
4a2fec
 1 file changed, 7 insertions(+), 2 deletions(-)
4a2fec
4a2fec
diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
4a2fec
index c4c5791..eb0dbb3 100644
4a2fec
--- a/target/s390x/kvm.c
4a2fec
+++ b/target/s390x/kvm.c
4a2fec
@@ -308,8 +308,13 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
4a2fec
         }
4a2fec
     }
4a2fec
 
4a2fec
-    /* Try to enable AIS facility */
4a2fec
-    kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0);
4a2fec
+    /*
4a2fec
+     * The migration interface for ais was introduced with kernel 4.13
4a2fec
+     * but the capability itself had been active since 4.12. As migration
4a2fec
+     * support is considered necessary let's disable ais in the 2.10
4a2fec
+     * machine.
4a2fec
+     */
4a2fec
+    /* kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0); */
4a2fec
 
4a2fec
     qemu_mutex_init(&qemu_sigp_mutex);
4a2fec
 
4a2fec
-- 
4a2fec
1.8.3.1
4a2fec