KVM: PPC: Correctly report KVM_CAP_PPC_ALLOC_HTAB
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Nov 2016 05:14:07 +0000 (16:14 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Thu, 24 Nov 2016 03:23:05 +0000 (14:23 +1100)
commita8acaece5d88db234d0b82b8692dea15d602f622
treedc2dfc2d18e24f94d3567d2254afca82e245eab4
parenta91d5df2b44a0c9b171ac47a48e02e762c8224e9
KVM: PPC: Correctly report KVM_CAP_PPC_ALLOC_HTAB

At present KVM on powerpc always reports KVM_CAP_PPC_ALLOC_HTAB as enabled.
However, the ioctl() it advertises (KVM_PPC_ALLOCATE_HTAB) only actually
works on KVM HV.  On KVM PR it will fail with ENOTTY.

QEMU already has a workaround for this, so it's not breaking things in
practice, but it would be better to advertise this correctly.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
arch/powerpc/kvm/powerpc.c