diff options
author | Christian Borntraeger <borntraeger@de.ibm.com> | 2020-02-18 21:08:07 +0100 |
---|---|---|
committer | Christian Borntraeger <borntraeger@de.ibm.com> | 2020-02-27 19:47:13 +0100 |
commit | 13da9ae1cdbf1ec4ea36b7612e606681c27cca13 (patch) | |
tree | b6c8ed274e878eec85580cbd6b83cbb3656f7ace /arch/s390/kvm | |
parent | DOCUMENTATION: Protected virtual machine introduction and IPL (diff) | |
download | linux-13da9ae1cdbf1ec4ea36b7612e606681c27cca13.tar.xz linux-13da9ae1cdbf1ec4ea36b7612e606681c27cca13.zip |
KVM: s390: protvirt: introduce and enable KVM_CAP_S390_PROTECTED
Now that everything is in place, we can announce the feature.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'arch/s390/kvm')
-rw-r--r-- | arch/s390/kvm/kvm-s390.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c index bb060064cce0..f4cd436ba979 100644 --- a/arch/s390/kvm/kvm-s390.c +++ b/arch/s390/kvm/kvm-s390.c @@ -574,6 +574,9 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_S390_BPB: r = test_facility(82); break; + case KVM_CAP_S390_PROTECTED: + r = is_prot_virt_host(); + break; default: r = 0; } |