Skip to content

Commit 050f233

Browse files
dgibsonpaulusmack
authored andcommitted
KVM: PPC: Book3S HV: Advertise availablity of HPT resizing on KVM HV
This updates the KVM_CAP_SPAPR_RESIZE_HPT capability to advertise the presence of in-kernel HPT resizing on KVM HV. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
1 parent b5baa68 commit 050f233

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/powerpc/kvm/powerpc.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -612,6 +612,9 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext)
612612
case KVM_CAP_SPAPR_MULTITCE:
613613
r = 1;
614614
break;
615+
case KVM_CAP_SPAPR_RESIZE_HPT:
616+
r = !!hv_enabled;
617+
break;
615618
#endif
616619
case KVM_CAP_PPC_HTM:
617620
r = cpu_has_feature(CPU_FTR_TM_COMP) &&

0 commit comments

Comments
 (0)