Skip to contentSkip to conversation

2.10-stable only: disable ais facility

PATCH In review Christian Borntraeger 4 participants 8 messages Sep 21, 2017 – Sep 22, 2017

lore
Share & tools
lore
#0 lore raw

cover 2.10-stable only: disable ais facility

now with qemu-devel on cc..

Cornelia, David and myself had a lengthy discussion about ais migration and its issues. As the solution turns out to be more complex, we will disable the ais facility in 2.10 and fix the issue properly in 2.11.

Christian Borntraeger (1):
s390x/ais: for 2.10 stable: disable ais facility

 target/s390x/kvm.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
2.9.4
#1 lore raw

PATCH 1/1 s390x/ais: for 2.10 stable: disable ais facility

The migration interface for ais was introduced with kernel 4.13 but the capability itself had been active since 4.12. As migration support is considered necessary lets disable ais in the 2.10 stable version. A proper fix and re-enablement will be done for qemu 2.11.

---
 target/s390x/kvm.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
target/s390x/kvm.c +7 -2
index c4c5791..eb0dbb3 100644
@@ -308,8 +308,13 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
         }
     }
 
-    /* Try to enable AIS facility */
-    kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0);
+    /*
+     * The migration interface for ais was introduced with kernel 4.13
+     * but the capability itself had been active since 4.12. As migration
+     * support is considered necessary let's disable ais in the 2.10
+     * machine.
+     */
+    /* kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0); */
 
     qemu_mutex_init(&qemu_sigp_mutex);
 
Signature · 1 line
2.9.4
Reviewed-by on v1 1/1
#2 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390x/ais: for 2.10 stable: disable ais facility

Quoted 23 lines · Christian Borntraeger

The migration interface for ais was introduced with kernel 4.13 but the capability itself had been active since 4.12. As migration support is considered necessary lets disable ais in the 2.10 stable version. A proper fix and re-enablement will be done for qemu 2.11.

---
 target/s390x/kvm.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
target/s390x/kvm.c +0 -2
index c4c5791..eb0dbb3 100644
@@ -308,8 +308,13 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
         }
     }
 
-    /* Try to enable AIS facility */
-    kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0);

target/s390x/kvm.c int kvm_arch_init(MachineState *ms, KVMState *s) · line 320

Quoted 10 lines
target/s390x/kvm.c +7 -0
+    /*
+     * The migration interface for ais was introduced with kernel 4.13
+     * but the capability itself had been active since 4.12. As migration
+     * support is considered necessary let's disable ais in the 2.10
+     * machine.
+     */
+    /* kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0); */
 
     qemu_mutex_init(&qemu_sigp_mutex);
 
Signature · 3 lines
Thanks,

David
#3 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390x/ais: for 2.10 stable: disable ais facility

In reply to Christian Borntraeger
Quoted 5 lines · On Thu, 21 Sep 2017 17:14:46 +0200 Christian Borntraeger…

The migration interface for ais was introduced with kernel 4.13 but the capability itself had been active since 4.12. As migration support is considered necessary lets disable ais in the 2.10 stable version. A proper fix and re-enablement will be done for qemu 2.11.

Also now with qemu-devel on cc:

So, should I apply to s390-next? Or can this be applied just to stable?

Quoted 27 lines
---
 target/s390x/kvm.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
target/s390x/kvm.c +7 -2
index c4c5791..eb0dbb3 100644
@@ -308,8 +308,13 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
         }
     }
 
-    /* Try to enable AIS facility */
-    kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0);
+    /*
+     * The migration interface for ais was introduced with kernel 4.13
+     * but the capability itself had been active since 4.12. As migration
+     * support is considered necessary let's disable ais in the 2.10
+     * machine.
+     */
+    /* kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0); */
 
     qemu_mutex_init(&qemu_sigp_mutex);
 
#4 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390x/ais: for 2.10 stable: disable ais facility

Quoting Cornelia Huck (2017-09-21 10:21:42)

Quoted 9 lines
Quoted 5 lines · On Thu, 21 Sep 2017 17:14:46 +0200 Christian Borntraeger…

The migration interface for ais was introduced with kernel 4.13 but the capability itself had been active since 4.12. As migration support is considered necessary lets disable ais in the 2.10 stable version. A proper fix and re-enablement will be done for qemu 2.11.

Quoted 3 lines

Also now with qemu-devel on cc:

So, should I apply to s390-next? Or can this be applied just to stable?

Ideally we would get it in master or at least a branch that'll eventually get pulled so we can reference the upstream commit ID. It's not set in stone, but usually only patches specifically ported to stable are applied directly.

Quoted 29 lines
Quoted 28 lines
---
 target/s390x/kvm.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
target/s390x/kvm.c +7 -2
index c4c5791..eb0dbb3 100644
@@ -308,8 +308,13 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
         }
     }
 
-    /* Try to enable AIS facility */
-    kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0);
+    /*
+     * The migration interface for ais was introduced with kernel 4.13
+     * but the capability itself had been active since 4.12. As migration
+     * support is considered necessary let's disable ais in the 2.10
+     * machine.
+     */
+    /* kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0); */
 
     qemu_mutex_init(&qemu_sigp_mutex);
 
#5 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390x/ais: for 2.10 stable: disable ais facility

Quoting Michael Roth (2017-09-21 11:50:28)

Quoted 10 lines

Quoting Cornelia Huck (2017-09-21 10:21:42)

Quoted 9 lines
Quoted 5 lines · On Thu, 21 Sep 2017 17:14:46 +0200 Christian Borntraeger…

The migration interface for ais was introduced with kernel 4.13 but the capability itself had been active since 4.12. As migration support is considered necessary lets disable ais in the 2.10 stable version. A proper fix and re-enablement will be done for qemu 2.11.

Quoted 8 lines
Quoted 3 lines

Also now with qemu-devel on cc:

So, should I apply to s390-next? Or can this be applied just to stable?

Ideally we would get it in master or at least a branch that'll eventually get pulled so we can reference the upstream commit ID. It's not set in stone, but usually only patches specifically ported to stable are applied directly.

Somehow I missed the "for 2.10 stable" in the subject line. I can apply this directly if it comes to that, but it seems safer to apply this upstream as well in the meantime, IMO. If the proper fix didn't make 2.11 for whatever reason we'd still be okay with 2.10.1<->2.11, for instance.

Quoted 32 lines
Quoted 30 lines
Quoted 29 lines
---
 target/s390x/kvm.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)
target/s390x/kvm.c +7 -2
index c4c5791..eb0dbb3 100644
@@ -308,8 +308,13 @@ int kvm_arch_init(MachineState *ms, KVMState *s)
         }
     }
 
-    /* Try to enable AIS facility */
-    kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0);
+    /*
+     * The migration interface for ais was introduced with kernel 4.13
+     * but the capability itself had been active since 4.12. As migration
+     * support is considered necessary let's disable ais in the 2.10
+     * machine.
+     */
+    /* kvm_vm_enable_cap(s, KVM_CAP_S390_AIS, 0); */
 
     qemu_mutex_init(&qemu_sigp_mutex);
 
#6 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390x/ais: for 2.10 stable: disable ais facility

Quoted 20 lines · Michael Roth

Quoting Michael Roth (2017-09-21 11:50:28)

Quoted 10 lines

Quoting Cornelia Huck (2017-09-21 10:21:42)

Quoted 9 lines
Quoted 5 lines · On Thu, 21 Sep 2017 17:14:46 +0200 Christian Borntraeger…

The migration interface for ais was introduced with kernel 4.13 but the capability itself had been active since 4.12. As migration support is considered necessary lets disable ais in the 2.10 stable version. A proper fix and re-enablement will be done for qemu 2.11.

Quoted 8 lines
Quoted 3 lines

Also now with qemu-devel on cc:

So, should I apply to s390-next? Or can this be applied just to stable?

Ideally we would get it in master or at least a branch that'll eventually get pulled so we can reference the upstream commit ID. It's not set in stone, but usually only patches specifically ported to stable are applied directly.

Quoted 6 lines

Somehow I missed the "for 2.10 stable" in the subject line. I can apply this directly if it comes to that, but it seems safer to apply this upstream as well in the meantime, IMO. If the proper fix didn't make 2.11 for whatever reason we'd still be okay with 2.10.1<->2.11, for instance.

So what about the following. We will schedule this disable patch also for current master. Whenever we have a proper fix we can then revert/fixup the disable patch. This patch will then be backported to 2.10.1
For 2.11 we then fixup the ais code and also add the "disable ais for compat machines" patch.

Christian

#7 lore raw

Re: [Qemu-devel] [PATCH 1/1] s390x/ais: for 2.10 stable: disable ais facility

Quoted 28 lines · On Fri, 22 Sep 2017 08:47:41 +0200 Christian Borntraeger…
Quoted 20 lines · Michael Roth

Quoting Michael Roth (2017-09-21 11:50:28)

Quoted 10 lines

Quoting Cornelia Huck (2017-09-21 10:21:42)

Quoted 9 lines
Quoted 5 lines · On Thu, 21 Sep 2017 17:14:46 +0200 Christian Borntraeger…

The migration interface for ais was introduced with kernel 4.13 but the capability itself had been active since 4.12. As migration support is considered necessary lets disable ais in the 2.10 stable version. A proper fix and re-enablement will be done for qemu 2.11.

Quoted 8 lines
Quoted 3 lines

Also now with qemu-devel on cc:

So, should I apply to s390-next? Or can this be applied just to stable?

Ideally we would get it in master or at least a branch that'll eventually get pulled so we can reference the upstream commit ID. It's not set in stone, but usually only patches specifically ported to stable are applied directly.

Quoted 6 lines

Somehow I missed the "for 2.10 stable" in the subject line. I can apply this directly if it comes to that, but it seems safer to apply this upstream as well in the meantime, IMO. If the proper fix didn't make 2.11 for whatever reason we'd still be okay with 2.10.1<->2.11, for instance.

Quoted 5 lines

So what about the following. We will schedule this disable patch also for current master. Whenever we have a proper fix we can then revert/fixup the disable patch. This patch will then be backported to 2.10.1
For 2.11 we then fixup the ais code and also add the "disable ais for compat machines" patch.

Sounds good. I'll queue this one and send a pull request, just to be on the safe side.