aboutsummaryrefslogtreecommitdiff
path: root/target/s390x
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2017-01-24 14:28:13 +0100
committerCornelia Huck <cornelia.huck@de.ibm.com>2017-01-24 15:47:31 +0100
commit0cf4d747cb8d053e6a6161aadfd3531fa1a62be1 (patch)
tree640780f96ff6d1c05dd55c4b4fcb744a85be2cd3 /target/s390x
parent8195d8992b348d675072187501ff2027bff7707b (diff)
s390x/kvm: fix cmma reset for KVM
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>
Diffstat (limited to 'target/s390x')
-rw-r--r--target/s390x/kvm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/s390x/kvm.c b/target/s390x/kvm.c
index 5ad0acbc82..6ed387671e 100644
--- a/target/s390x/kvm.c
+++ b/target/s390x/kvm.c
@@ -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;
}