summaryrefslogtreecommitdiffstats
path: root/arch/arm64/include/uapi/asm/kvm.h
diff options
context:
space:
mode:
authorMarc Zyngier <maz@kernel.org>2022-05-15 12:36:24 +0200
committerMarc Zyngier <maz@kernel.org>2022-05-15 12:36:24 +0200
commit2cde51f1e10f260076899bf41add74ed4a6de034 (patch)
tree8dc4b9476f3d305b42ea5d69329d46cfc7971ad9 /arch/arm64/include/uapi/asm/kvm.h
parentDocumentation: Fix index.rst after psci.rst renaming (diff)
downloadlinux-2cde51f1e10f260076899bf41add74ed4a6de034.tar.xz
linux-2cde51f1e10f260076899bf41add74ed4a6de034.zip
KVM: arm64: Hide KVM_REG_ARM_*_BMAP_BIT_COUNT from userspace
These constants will change over time, and userspace has no business knowing about them. Hide them behind __KERNEL__. Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to '')
-rw-r--r--arch/arm64/include/uapi/asm/kvm.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h
index e523bb6eac67..d4722b08f0d4 100644
--- a/arch/arm64/include/uapi/asm/kvm.h
+++ b/arch/arm64/include/uapi/asm/kvm.h
@@ -342,14 +342,18 @@ struct kvm_arm_copy_mte_tags {
enum {
KVM_REG_ARM_STD_BIT_TRNG_V1_0 = 0,
+#ifdef __KERNEL__
KVM_REG_ARM_STD_BMAP_BIT_COUNT,
+#endif
};
#define KVM_REG_ARM_STD_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(1)
enum {
KVM_REG_ARM_STD_HYP_BIT_PV_TIME = 0,
+#ifdef __KERNEL__
KVM_REG_ARM_STD_HYP_BMAP_BIT_COUNT,
+#endif
};
#define KVM_REG_ARM_VENDOR_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(2)
@@ -357,7 +361,9 @@ enum {
enum {
KVM_REG_ARM_VENDOR_HYP_BIT_FUNC_FEAT = 0,
KVM_REG_ARM_VENDOR_HYP_BIT_PTP = 1,
+#ifdef __KERNEL__
KVM_REG_ARM_VENDOR_HYP_BMAP_BIT_COUNT,
+#endif
};
/* Device Control API: ARM VGIC */