Skip to content

Commit 8c516b2

Browse files
Claudio Imbrendafrankjaa
authored andcommitted
KVM: s390: pv: add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE
Add KVM_CAP_S390_PROTECTED_ASYNC_DISABLE to signal that the KVM_PV_ASYNC_DISABLE and KVM_PV_ASYNC_DISABLE_PREPARE commands for the KVM_S390_PV_COMMAND ioctl are available. Signed-off-by: Claudio Imbrenda <[email protected]> Reviewed-by: Nico Boehr <[email protected]> Reviewed-by: Steffen Eiden <[email protected]> Reviewed-by: Janosch Frank <[email protected]> Link: https://lore.kernel.org/r/[email protected] Message-Id: <[email protected]> Signed-off-by: Janosch Frank <[email protected]>
1 parent d945992 commit 8c516b2

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

arch/s390/kvm/kvm-s390.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -618,6 +618,9 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
618618
case KVM_CAP_S390_BPB:
619619
r = test_facility(82);
620620
break;
621+
case KVM_CAP_S390_PROTECTED_ASYNC_DISABLE:
622+
r = async_destroy && is_prot_virt_host();
623+
break;
621624
case KVM_CAP_S390_PROTECTED:
622625
r = is_prot_virt_host();
623626
break;

include/uapi/linux/kvm.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1178,6 +1178,7 @@ struct kvm_ppc_resize_hpt {
11781178
#define KVM_CAP_S390_ZPCI_OP 221
11791179
#define KVM_CAP_S390_CPU_TOPOLOGY 222
11801180
#define KVM_CAP_DIRTY_LOG_RING_ACQ_REL 223
1181+
#define KVM_CAP_S390_PROTECTED_ASYNC_DISABLE 224
11811182

11821183
#ifdef KVM_CAP_IRQ_ROUTING
11831184

0 commit comments

Comments
 (0)