Commit 18717b9b authored by Elliot Berman's avatar Elliot Berman Committed by Treehugger Robot
Browse files

FROMLIST: virt: gunyah: Add resource tickets

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.

Bug: 338347082
Link: https://lore.kernel.org/all/20240222-gunyah-v17-12-1e9da6763d38@quicinc.com/


Change-Id: I5e95e36b5cdb81528a2150cce485b7a59607bd16
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarElliot Berman <quic_eberman@quicinc.com>
parent d1ebd178
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment