mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-08-09 03:58:34 +00:00
This patch added vm_event support in command monitor, so that vm_event can be sent to a client (e.g., Libvirt) through the monitor. As the command monitor works in socket server mode, the vm_event sending process is designed in this way: 1. If a client wishes to receive vm_event, it issues a REGISTER_VM_EVENT_CLIENT command to the monitor. 2. Command monitor then handles the REGISTER_VM_EVENT_CLIENT command. If it is legitimate, the client is registered as as vm_event receiver. The command monitor then send a ACK to the client, and keeps the socket connection. 3. When a vm_event is generated, the command monitor send it out through the socket connection. 4. Only one event client is allowed. 5. The registration is cancelled on socket disconnection. Tracked-On: #8547 Signed-off-by: Wu Zhou <wu.zhou@intel.com> Reviewed-by: Jian Jun Chen <jian.jun.chen@intel.com> |
||
---|---|---|
.. | ||
cmd_monitor.c | ||
command_handler.c | ||
command_handler.h | ||
command.c | ||
command.h | ||
socket.c | ||
socket.h |