Commit 2cde51f1 authored by Marc Zyngier's avatar Marc Zyngier

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: default avatarMarc Zyngier <maz@kernel.org>
parent c36820b0
...@@ -342,14 +342,18 @@ struct kvm_arm_copy_mte_tags { ...@@ -342,14 +342,18 @@ struct kvm_arm_copy_mte_tags {
enum { enum {
KVM_REG_ARM_STD_BIT_TRNG_V1_0 = 0, KVM_REG_ARM_STD_BIT_TRNG_V1_0 = 0,
#ifdef __KERNEL__
KVM_REG_ARM_STD_BMAP_BIT_COUNT, KVM_REG_ARM_STD_BMAP_BIT_COUNT,
#endif
}; };
#define KVM_REG_ARM_STD_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(1) #define KVM_REG_ARM_STD_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(1)
enum { enum {
KVM_REG_ARM_STD_HYP_BIT_PV_TIME = 0, KVM_REG_ARM_STD_HYP_BIT_PV_TIME = 0,
#ifdef __KERNEL__
KVM_REG_ARM_STD_HYP_BMAP_BIT_COUNT, KVM_REG_ARM_STD_HYP_BMAP_BIT_COUNT,
#endif
}; };
#define KVM_REG_ARM_VENDOR_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(2) #define KVM_REG_ARM_VENDOR_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(2)
...@@ -357,7 +361,9 @@ enum { ...@@ -357,7 +361,9 @@ enum {
enum { enum {
KVM_REG_ARM_VENDOR_HYP_BIT_FUNC_FEAT = 0, KVM_REG_ARM_VENDOR_HYP_BIT_FUNC_FEAT = 0,
KVM_REG_ARM_VENDOR_HYP_BIT_PTP = 1, KVM_REG_ARM_VENDOR_HYP_BIT_PTP = 1,
#ifdef __KERNEL__
KVM_REG_ARM_VENDOR_HYP_BMAP_BIT_COUNT, KVM_REG_ARM_VENDOR_HYP_BMAP_BIT_COUNT,
#endif
}; };
/* Device Control API: ARM VGIC */ /* Device Control API: ARM VGIC */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment