• Amit Daniel Kachhap's avatar
    KVM: arm64: Add userspace flag to enable pointer authentication · a22fa321
    Amit Daniel Kachhap authored
    Now that the building blocks of pointer authentication are present, lets
    add userspace flags KVM_ARM_VCPU_PTRAUTH_ADDRESS and
    KVM_ARM_VCPU_PTRAUTH_GENERIC. These flags will enable pointer
    authentication for the KVM guest on a per-vcpu basis through the ioctl
    KVM_ARM_VCPU_INIT.
    
    This features will allow the KVM guest to allow the handling of
    pointer authentication instructions or to treat them as undefined
    if not set.
    
    Necessary documentations are added to reflect the changes done.
    Reviewed-by: default avatarDave Martin <Dave.Martin@arm.com>
    Signed-off-by: default avatarAmit Daniel Kachhap <amit.kachhap@arm.com>
    Cc: Mark Rutland <mark.rutland@arm.com>
    Cc: Marc Zyngier <marc.zyngier@arm.com>
    Cc: Christoffer Dall <christoffer.dall@arm.com>
    Cc: kvmarm@lists.cs.columbia.edu
    Signed-off-by: default avatarMarc Zyngier <marc.zyngier@arm.com>
    a22fa321
kvm.h 11.5 KB