[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240313092133.GQ440762@quicinc.com>
Date: Wed, 13 Mar 2024 14:51:33 +0530
From: Srivatsa Vaddagiri <quic_svaddagi@...cinc.com>
To: Elliot Berman <quic_eberman@...cinc.com>
CC: Alex Elder <elder@...aro.org>,
Srinivas Kandagatla
<srinivas.kandagatla@...aro.org>,
Murali Nalajal <quic_mnalajal@...cinc.com>,
Trilok Soni <quic_tsoni@...cinc.com>,
Carl van Schaik
<quic_cvanscha@...cinc.com>,
Philip Derrin <quic_pderrin@...cinc.com>,
Prakruthi Deepak Heragu <quic_pheragu@...cinc.com>,
Jonathan Corbet
<corbet@....net>, Rob Herring <robh+dt@...nel.org>,
Krzysztof Kozlowski
<krzysztof.kozlowski+dt@...aro.org>,
Conor Dooley <conor+dt@...nel.org>,
Catalin Marinas <catalin.marinas@....com>,
Will Deacon <will@...nel.org>,
Konrad Dybcio <konrad.dybcio@...aro.org>,
Bjorn Andersson
<andersson@...nel.org>,
Dmitry Baryshkov <dmitry.baryshkov@...aro.org>,
"Fuad
Tabba" <tabba@...gle.com>,
Sean Christopherson <seanjc@...gle.com>,
"Andrew
Morton" <akpm@...ux-foundation.org>,
<linux-arm-msm@...r.kernel.org>, <linux-doc@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
<linux-arm-kernel@...ts.infradead.org>, <linux-mm@...ck.org>
Subject: Re: [PATCH v17 15/35] virt: gunyah: Add proxy-scheduled vCPUs
* Elliot Berman <quic_eberman@...cinc.com> [2024-02-22 15:16:38]:
> Gunyah allows vCPUs that are configured as proxy-scheduled to be scheduled by
> another virtual machine (host) that holds capabilities to those vCPUs with
> suitable rights.
>
> Gunyah also supports configuring regions of a proxy-scheduled VM's address
> space to be virtualized by the host VM. This permits a host VMM to emulate MMIO
> devices in the proxy-scheduled VM.
>
> vCPUs are presented to the host as a Gunyah resource and represented to
> userspace as a Gunyah VM function.
>
> Creating the vcpu function on the VM will create a file descriptor that:
> - can handle an ioctl to run the vCPU. When called, Gunyah will directly
> context-switch to the selected vCPU and run it until one of the following
> events occurs:
> * the host vcpu's time slice ends
> * the host vcpu receives an interrupt or would have been pre-empted
> by the hypervisor
> * a fault occurs in the proxy-scheduled vcpu
> * a power management event, such as idle or cpu-off call in the vcpu
> - can be mmap'd to share the gunyah_vcpu_run structure with userspace. This
> allows the vcpu_run result codes to be accessed, and for arguments to
> vcpu_run to be passed, e.g. for resuming the vcpu when handling certain fault
> and exit cases.
>
> Co-developed-by: Prakruthi Deepak Heragu <quic_pheragu@...cinc.com>
> Signed-off-by: Prakruthi Deepak Heragu <quic_pheragu@...cinc.com>
> Signed-off-by: Elliot Berman <quic_eberman@...cinc.com>
LGTM
Reviewed-by: Srivatsa Vaddagiri <quic_svaddagi@...cinc.com>
- vatsa
Powered by blists - more mailing lists