acrn-hypervisor/devicemodel/arch/x86
Wu Zhou 7eb44dbcd3 dm: vm_event: send poweroff event on pm port write
When the virtual PM port is written, we can infer that guest has just
initiated a poweroff action. So we send a poweroff event upon this port
write. The DM event handler will try to emit it (to Libvirt).
Developers can write app/script to decide what to do with this event.

Tracked-On: #8547
Signed-off-by: Wu Zhou <wu.zhou@intel.com>
Reviewed-by: Jian Jun Chen <jian.jun.chen@intel.com>
2024-02-01 17:01:31 +08:00
..
pm.c dm: vm_event: send poweroff event on pm port write 2024-02-01 17:01:31 +08:00
power_button.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00