projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
09be9cb
)
KVM: s390: enable CMMA if the interpration is available
author
David Hildenbrand
<dahi@linux.vnet.ibm.com>
Tue, 24 Nov 2015 12:53:04 +0000
(13:53 +0100)
committer
Christian Borntraeger
<borntraeger@de.ibm.com>
Fri, 10 Jun 2016 10:07:19 +0000
(12:07 +0200)
Now that we can detect if collaborative-memory-management interpretation
is available, replace the heuristic by a real hardware detection.
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c
patch
|
blob
|
history
diff --git
a/arch/s390/kvm/kvm-s390.c
b/arch/s390/kvm/kvm-s390.c
index e477c8e5b5c1764872fd25d7a1521dd6e2754003..005e664f636057d1ccaf32d9d6c948a3d3018946 100644
(file)
--- a/
arch/s390/kvm/kvm-s390.c
+++ b/
arch/s390/kvm/kvm-s390.c
@@
-485,9
+485,8
@@
static int kvm_s390_set_mem_control(struct kvm *kvm, struct kvm_device_attr *att
unsigned int idx;
switch (attr->attr) {
case KVM_S390_VM_MEM_ENABLE_CMMA:
- /* enable CMMA only for z10 and later (EDAT_1) */
ret = -EINVAL;
- if (!
MACHINE_IS_LPAR || !MACHINE_HAS_EDAT1
)
+ if (!
sclp.has_cmma
)
break;
ret = -EBUSY;