summaryrefslogtreecommitdiff
path: root/arch/arm64/include/uapi/asm/kvm.h
diff options
context:
space:
mode:
authorRaghavendra Rao Ananta <rananta@google.com>2022-05-03 02:38:48 +0300
committerMarc Zyngier <maz@kernel.org>2022-05-03 23:30:19 +0300
commitb22216e1a617ca55b41337cd1e057ebc784a65d4 (patch)
tree4c9b92c78625ca2a485111f92dac97d7856fea65 /arch/arm64/include/uapi/asm/kvm.h
parent428fd6788d4d0e0d390de9fb4486be3c1187310d (diff)
downloadlinux-b22216e1a617ca55b41337cd1e057ebc784a65d4.tar.xz
KVM: arm64: Add vendor hypervisor firmware register
Introduce the firmware register to hold the vendor specific hypervisor service calls (owner value 6) as a bitmap. The bitmap represents the features that'll be enabled for the guest, as configured by the user-space. Currently, this includes support for KVM-vendor features along with reading the UID, represented by bit-0, and Precision Time Protocol (PTP), represented by bit-1. Signed-off-by: Raghavendra Rao Ananta <rananta@google.com> Reviewed-by: Gavin Shan <gshan@redhat.com> [maz: tidy-up bitmap values] Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220502233853.1233742-5-rananta@google.com
Diffstat (limited to 'arch/arm64/include/uapi/asm/kvm.h')
-rw-r--r--arch/arm64/include/uapi/asm/kvm.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/arch/arm64/include/uapi/asm/kvm.h b/arch/arm64/include/uapi/asm/kvm.h
index 7ff5a2cf7547..e523bb6eac67 100644
--- a/arch/arm64/include/uapi/asm/kvm.h
+++ b/arch/arm64/include/uapi/asm/kvm.h
@@ -352,6 +352,14 @@ enum {
KVM_REG_ARM_STD_HYP_BMAP_BIT_COUNT,
};
+#define KVM_REG_ARM_VENDOR_HYP_BMAP KVM_REG_ARM_FW_FEAT_BMAP_REG(2)
+
+enum {
+ KVM_REG_ARM_VENDOR_HYP_BIT_FUNC_FEAT = 0,
+ KVM_REG_ARM_VENDOR_HYP_BIT_PTP = 1,
+ KVM_REG_ARM_VENDOR_HYP_BMAP_BIT_COUNT,
+};
+
/* Device Control API: ARM VGIC */
#define KVM_DEV_ARM_VGIC_GRP_ADDR 0
#define KVM_DEV_ARM_VGIC_GRP_DIST_REGS 1