KVM: s390: don't load kvm without virtualization support
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Fri, 30 Jan 2015 15:01:38 +0000 (16:01 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Nov 2015 11:47:12 +0000 (12:47 +0100)
commit07197fd05fa3eb2e8a5aae92938ca5d07bcac9fc
treef2d2774e2ff48695eaa1082d815a02448d3ee5af
parent7f16d7e787b731d9db273b822b4b8069102e57a6
KVM: s390: don't load kvm without virtualization support

If we don't have support for virtualization (SIE), e.g. when running under
a hypervisor not supporting execution of the SIE instruction, we should
immediately abort loading the kvm module, as the SIE instruction cannot
be enabled dynamically.

Currently, the SIE instructions fails with an exception on a non-SIE
host, resulting in the guest making no progress, instead of failing hard.

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Acked-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
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