summaryrefslogtreecommitdiffstats
path: root/arch/s390
diff options
context:
space:
mode:
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>2015-11-24 13:47:13 +0100
committerChristian Borntraeger <borntraeger@de.ibm.com>2016-06-10 12:07:18 +0200
commit89b5b4de33902a57cb9c8f2d06de4ffbc921de15 (patch)
tree0029cea5525edeaa97dbf02c916c18d4e0197161 /arch/s390
parentb9e28897e6e9f82585ecf6ea45942866ece7d167 (diff)
downloadlinux-stable-89b5b4de33902a57cb9c8f2d06de4ffbc921de15.tar.gz
linux-stable-89b5b4de33902a57cb9c8f2d06de4ffbc921de15.tar.bz2
linux-stable-89b5b4de33902a57cb9c8f2d06de4ffbc921de15.zip
KVM: s390: guestdbg: signal missing hardware support
Without guest-PER enhancement, we can't provide any debugging support. Therefore act like kernel support is missing. Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Diffstat (limited to 'arch/s390')
-rw-r--r--arch/s390/kvm/kvm-s390.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
index efb902cdd1d2..e477c8e5b5c1 100644
--- a/arch/s390/kvm/kvm-s390.c
+++ b/arch/s390/kvm/kvm-s390.c
@@ -2179,6 +2179,8 @@ int kvm_arch_vcpu_ioctl_set_guest_debug(struct kvm_vcpu *vcpu,
if (dbg->control & ~VALID_GUESTDBG_FLAGS)
return -EINVAL;
+ if (!sclp.has_gpere)
+ return -EINVAL;
if (dbg->control & KVM_GUESTDBG_ENABLE) {
vcpu->guest_debug = dbg->control;