[RFC PATCH 6/8] tools: Import the firmware registers
Oliver Upton
oupton at google.com
Wed Nov 3 17:23:45 PDT 2021
On Tue, Nov 02, 2021 at 12:22:01AM +0000, Raghavendra Rao Ananta wrote:
> Import the firmware definitions for the firmware registers,
> KVM_REG_ARM_STD, KVM_REG_ARM_STD_HYP, and KVM_REG_ARM_VENDOR_HYP.
>
> Signed-off-by: Raghavendra Rao Ananta <rananta at google.com>
>
> ---
> tools/arch/arm64/include/uapi/asm/kvm.h | 18 ++++++++++++++++++
> 1 file changed, 18 insertions(+)
Won't we have the latest UAPI headers available in usr/include/ at build
time?
--
Oliver
> diff --git a/tools/arch/arm64/include/uapi/asm/kvm.h b/tools/arch/arm64/include/uapi/asm/kvm.h
> index b3edde68bc3e..a1d0e8e69eed 100644
> --- a/tools/arch/arm64/include/uapi/asm/kvm.h
> +++ b/tools/arch/arm64/include/uapi/asm/kvm.h
> @@ -281,6 +281,24 @@ struct kvm_arm_copy_mte_tags {
> #define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_NOT_REQUIRED 3
> #define KVM_REG_ARM_SMCCC_ARCH_WORKAROUND_2_ENABLED (1U << 4)
>
> +#define KVM_REG_ARM_STD KVM_REG_ARM_FW_REG(3)
> +enum kvm_reg_arm_std_bmap {
> + KVM_REG_ARM_STD_TRNG_V1_0,
> + KVM_REG_ARM_STD_BMAP_MAX,
> +};
> +
> +#define KVM_REG_ARM_STD_HYP KVM_REG_ARM_FW_REG(4)
> +enum kvm_reg_arm_std_hyp_bmap {
> + KVM_REG_ARM_STD_HYP_PV_TIME_ST,
> + KVM_REG_ARM_STD_HYP_BMAP_MAX,
> +};
> +
> +#define KVM_REG_ARM_VENDOR_HYP KVM_REG_ARM_FW_REG(5)
> +enum kvm_reg_arm_vendor_hyp_bmap {
> + KVM_REG_ARM_VENDOR_HYP_PTP,
> + KVM_REG_ARM_VENDOR_HYP_BMAP_MAX,
> +};
> +
> /* SVE registers */
> #define KVM_REG_ARM64_SVE (0x15 << KVM_REG_ARM_COPROC_SHIFT)
>
> --
> 2.33.1.1089.g2158813163f-goog
>
More information about the linux-arm-kernel
mailing list