[PATCH v13 18/24] virt: gunyah: Add resource tickets
Alex Elder
elder at linaro.org
Mon Jun 5 12:49:59 PDT 2023
On 5/9/23 3:47 PM, Elliot Berman wrote:
> Some VM functions need to acquire Gunyah resources. For instance, Gunyah
> vCPUs are exposed to the host as a resource. The Gunyah vCPU function
> will register a resource ticket and be able to interact with the
> hypervisor once the resource ticket is filled.
>
> Resource tickets are the mechanism for functions to acquire ownership of
> Gunyah resources. Gunyah functions can be created before the VM's
> resources are created and made available to Linux. A resource ticket
> identifies a type of resource and a label of a resource which the ticket
> holder is interested in.
>
> Resources are created by Gunyah as configured in the VM's devicetree
> configuration. Gunyah doesn't process the label and that makes it
> possible for userspace to create multiple resources with the same label.
> Resource ticket owners need to be prepared for populate to be called
> multiple times if userspace created multiple resources with the same
> label.
>
> Signed-off-by: Elliot Berman <quic_eberman at quicinc.com>
Looks good to me.
Reviewed-by: Alex Elder <elder at linaro.org>
> ---
> drivers/virt/gunyah/vm_mgr.c | 117 +++++++++++++++++++++++++++++++++-
> drivers/virt/gunyah/vm_mgr.h | 4 ++
> include/linux/gunyah_vm_mgr.h | 14 ++++
> 3 files changed, 134 insertions(+), 1 deletion(-)
. . .
More information about the linux-arm-kernel
mailing list