]> git.proxmox.com Git - mirror_qemu.git/commitdiff
s390x/kvm: fix cmma reset for KVM
authorChristian Borntraeger <borntraeger@de.ibm.com>
Tue, 24 Jan 2017 13:28:13 +0000 (14:28 +0100)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 24 Jan 2017 14:47:31 +0000 (15:47 +0100)
We must reset the CMMA states for normal memory (when not on mem path),
but the current code does the opposite. This was unnoticed for some time
as the kernel since 4.6 also had a bug which mostly disabled the paging
optimizations.

Fixes: 07059effd14e ("s390x/kvm: let the CPU model control CMM(A)")
Cc: qemu-stable@nongnu.org # v2.8
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
target/s390x/kvm.c

index 5ad0acbc827f81bc640b77f7fcae0a36f7ea905a..6ed387671e255f4c0519e775bab1827561db84bf 100644 (file)
@@ -197,7 +197,7 @@ void kvm_s390_cmma_reset(void)
         .attr = KVM_S390_VM_MEM_CLR_CMMA,
     };
 
-    if (!mem_path || !kvm_s390_cmma_available()) {
+    if (mem_path || !kvm_s390_cmma_available()) {
         return;
     }