]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: Book3S HV: Add NO_HASH flag to GET_SMMU_INFO ioctl result
authorPaul Mackerras <paulus@ozlabs.org>
Mon, 8 Oct 2018 03:24:30 +0000 (14:24 +1100)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 9 Oct 2018 05:14:54 +0000 (16:14 +1100)
commit0b08d61f77de16e7dae7f3546e60bb6694b256de
treed9f4edd5ed3899d8270b329990292ba5b52079d4
parenteacc208fd7608ae5376fd92fdeaa16f1fdd42683
KVM: PPC: Book3S HV: Add NO_HASH flag to GET_SMMU_INFO ioctl result

This adds a KVM_PPC_NO_HASH flag to the flags field of the
kvm_ppc_smmu_info struct, and arranges for it to be set when
running as a nested hypervisor, as an unambiguous indication
to userspace that HPT guests are not supported.  Reporting the
KVM_CAP_PPC_MMU_HASH_V3 capability as false could be taken as
indicating only that the new HPT features in ISA V3.0 are not
supported, leaving it ambiguous whether pre-V3.0 HPT features
are supported.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
Documentation/virtual/kvm/api.txt
arch/powerpc/kvm/book3s_hv.c
include/uapi/linux/kvm.h