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:
Chris Lew <clew@codeaurora.org>
Loading
Please register or sign in to comment