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

From: Reiji Watanabe
Date: Mon Sep 13 2021 - 23:34:03 EST


On Mon, Sep 13, 2021 at 4:10 PM Raghavendra Rao Ananta
<rananta@xxxxxxxxxx> 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@xxxxxxxxxx>
> Signed-off-by: Raghavendra Rao Ananta <rananta@xxxxxxxxxx>
> Reviewed-by: Ricardo Koller <ricarkol@xxxxxxxxxx>

Reviewed-by: Reiji Watanabe <reijiw@xxxxxxxxxx>

Thank you for creating this utility !
Reiji