kvm: better advice for failed s390x startup
commit2c80e996e427ae31982f3405a762859578a6261d
authorCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 23 Apr 2015 15:03:46 +0000 (23 17:03 +0200)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 30 Apr 2015 11:21:42 +0000 (30 13:21 +0200)
tree295f815d3d6adcc1718225ef1e2965bd06f5eac3
parent6cb1e49de58cab8f243b05a971a9a1f80ab3223d
kvm: better advice for failed s390x startup

If KVM_CREATE failed on s390x, we print a hint to enable the switch_amode
kernel parameter. This only applies to old kernels, and only if the
error was -EINVAL. Moreover, with new kernels, the most likely reason
for -EINVAL is that pgstes were not enabled.

Let's update the error message to give a better hint on where things
may need fixing.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
kvm-all.c