[PATCH v6 09/14] KVM: arm64: selftests: Add guest support to get the vcpuid

Reiji Watanabe reijiw at google.com
Mon Sep 13 20:33:30 PDT 2021


On Mon, Sep 13, 2021 at 4:10 PM Raghavendra Rao Ananta
<rananta at google.com> wrote:
>
> At times, such as when in the interrupt handler, the guest wants
> to get the vcpuid that it's running on to pull the per-cpu private
> data. As a result, introduce guest_get_vcpuid() that returns the
> vcpuid of the calling vcpu. The interface is architecture
> independent, but defined only for arm64 as of now.
>
> Suggested-by: Reiji Watanabe <reijiw at google.com>
> Signed-off-by: Raghavendra Rao Ananta <rananta at google.com>
> Reviewed-by: Ricardo Koller <ricarkol at google.com>

Reviewed-by: Reiji Watanabe <reijiw at google.com>

Thank you for creating this utility !
Reiji



More information about the linux-arm-kernel mailing list