mirror of
https://chromium.googlesource.com/crosvm/crosvm
synced 2024-11-24 20:48:55 +00:00
769c452925
Adding Victual PMC device allows to trap on MMIO access caused by its Linux driver counterpart upon entering s2idle state. Linux Virtual PMC driver registers notify() hook, which is triggered before system actually enters s2idle state and triggers _DSM method which in turn triggers MMIO access causing mentioned trap. More info can be found in relevant linux kernel mailing list thread which implements kernel counterpart: https://patchwork.kernel.org/project/linux-pm/patch/20230213100921.268770-2-jaz@semihalf.com/ Upon Virtual PMC BusDevice write() handling, trigger functionality responsible for handling s2idle notification, which is: wakeup blocked thread awaiting guest suspension to finish. Old functionality for handling s2idle request based on non-accepted by Linux community, hypercall based solution - is removed as separate patch CL:4507305 BUG=b:194391015 TEST=Make sure that S2Idle notification from guest are seen by crosvm when --s2idle parameter is used. In such case the guest suspension is detected quite fast and 15s timeout is not reached. Change-Id: I79e1755cd344c46e7fa0dabc211cf7e354583204 Reviewed-on: https://chromium-review.googlesource.com/c/crosvm/crosvm/+/3780642 Reviewed-by: Daniel Verkamp <dverkamp@chromium.org> Commit-Queue: Grzegorz Jaszczyk <jaszczyk@google.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |