diff options
author | David Gibson <david@gibson.dropbear.id.au> | 2016-12-20 08:49:07 +0300 |
---|---|---|
committer | Paul Mackerras <paulus@ozlabs.org> | 2017-01-31 14:00:07 +0300 |
commit | 050f23390f6bdbfa7dd2800884d32490489851b7 (patch) | |
tree | 78c97aed4f42ce6efcb7798f3f8fef1fdd736359 /arch/powerpc/kvm | |
parent | b5baa68773150772c275b4af1bb31327200cfc05 (diff) | |
download | linux-050f23390f6bdbfa7dd2800884d32490489851b7.tar.xz |
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>
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/powerpc.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) && |