Signed-off-by: Haibo Xu <haibo...@linaro.org> --- linux-headers/linux/kvm.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 020b62a619..941743b3a7 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -1056,6 +1056,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_ENFORCE_PV_FEATURE_CPUID 190 #define KVM_CAP_SYS_HYPERV_CPUID 191 #define KVM_CAP_DIRTY_LOG_RING 192 +#define KVM_CAP_ARM_MTE 195 #ifdef KVM_CAP_IRQ_ROUTING @@ -1241,6 +1242,20 @@ struct kvm_arm_device_addr { __u64 addr; }; +#define KVM_ARM_TAGS_TO_GUEST 0 +#define KVM_ARM_TAGS_FROM_GUEST 1 + +struct kvm_arm_copy_mte_tags { + __u64 guest_ipa; + __u64 length; + union { + void *addr; + __u64 padding; + }; + __u64 flags; + __u64 reserved[2]; +}; + /* * Device control API, available with KVM_CAP_DEVICE_CTRL */ @@ -1396,6 +1411,7 @@ struct kvm_s390_ucas_mapping { /* Available with KVM_CAP_PMU_EVENT_FILTER */ #define KVM_SET_PMU_EVENT_FILTER _IOW(KVMIO, 0xb2, struct kvm_pmu_event_filter) #define KVM_PPC_SVM_OFF _IO(KVMIO, 0xb3) +#define KVM_ARM_MTE_COPY_TAGS _IOR(KVMIO, 0xb4, struct kvm_arm_copy_mte_tags) /* ioctl for vm fd */ #define KVM_CREATE_DEVICE _IOWR(KVMIO, 0xe0, struct kvm_create_device) -- 2.17.1