summaryrefslogtreecommitdiffstats
path: root/include/uapi/linux/kvm.h
diff options
context:
space:
mode:
authorPaul Mackerras2018-10-08 05:24:30 +0200
committerPaul Mackerras2018-10-09 07:14:54 +0200
commit901f8c3f6feb0225c14b3bc6237850fb921d2f2d (patch)
treed9f4edd5ed3899d8270b329990292ba5b52079d4 /include/uapi/linux/kvm.h
parentKVM: PPC: Book3S HV: Add a VM capability to enable nested virtualization (diff)
downloadkernel-qcow2-linux-901f8c3f6feb0225c14b3bc6237850fb921d2f2d.tar.gz
kernel-qcow2-linux-901f8c3f6feb0225c14b3bc6237850fb921d2f2d.tar.xz
kernel-qcow2-linux-901f8c3f6feb0225c14b3bc6237850fb921d2f2d.zip
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>
Diffstat (limited to 'include/uapi/linux/kvm.h')
-rw-r--r--include/uapi/linux/kvm.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h
index d9cec6b5cb37..7f2ff3a76995 100644
--- a/include/uapi/linux/kvm.h
+++ b/include/uapi/linux/kvm.h
@@ -719,6 +719,7 @@ struct kvm_ppc_one_seg_page_size {
#define KVM_PPC_PAGE_SIZES_REAL 0x00000001
#define KVM_PPC_1T_SEGMENTS 0x00000002
+#define KVM_PPC_NO_HASH 0x00000004
struct kvm_ppc_smmu_info {
__u64 flags;