Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7c177596 authored by Chris Lew's avatar Chris Lew
Browse files

soc: qcom: guestvm_loader: Wait for ready state before start



The ready state gives clients in the primary vm a chance to share
resources before the vm is started and set to running state. This
window is currently missing because guestvm_loader starts the vm
directly after subsystem_get().

Make the guestvm boot code wait for the HH_RM_VM_STATUS_READY callback
before starting the vm. This allows drivers that need to share
resources a chance to do so instead of racing with guestvm_loader.
Drivers can register with the rm notifier chain at a higher priority
than 0 to be called first.

This change can eventually be replaced by a separate driver or notifier
chain managed by guestvm_loader to provide better synchronization
methods compared to notifier chain priority.

Change-Id: I0fb3c5c41957381b31fa652deec0d6d51a41e6ef
Signed-off-by: default avatarChris Lew <clew@codeaurora.org>
parent bbc7f2d3
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment