From: David Gibson Date: Tue, 20 Dec 2016 05:49:07 +0000 (+1100) Subject: KVM: PPC: Book3S HV: Advertise availablity of HPT resizing on KVM HV X-Git-Tag: v4.11-rc1~109^2~43^2 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=050f23390f6bdbfa7dd2800884d32490489851b7;p=karo-tx-linux.git 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 Signed-off-by: Paul Mackerras --- diff --git a/arch/powerpc/kvm/powerpc.c b/arch/powerpc/kvm/powerpc.c index 40a5b2d75ed1..2b3e4e620078 100644 --- a/arch/powerpc/kvm/powerpc.c +++ b/arch/powerpc/kvm/powerpc.c @@ -612,6 +612,9 @@ int kvm_vm_ioctl_check_extension(struct kvm *kvm, long ext) case KVM_CAP_SPAPR_MULTITCE: r = 1; break; + case KVM_CAP_SPAPR_RESIZE_HPT: + r = !!hv_enabled; + break; #endif case KVM_CAP_PPC_HTM: r = cpu_has_feature(CPU_FTR_TM_COMP) &&