acrn-hypervisor/devicemodel/core
Junjie Mao 55105dbdeb DM: notify VHM request complete after pausing the VM
It is necessary to notify the VHM and hypervisor on the completion of a VHM
request even when the UOS is in suspend or system reset mode because the VHM and
hypervisor rely on the notification to reset their own states on the
request.

Currently the VHM request state is checked against REQ_STATE_PROCESSING instead
of REQ_STATE_COMPLETE when handling system reset or suspend/resume, leading to a
completed request unnotified, and causing the HV to complain on an occupied VHM
request when it raises a new one.

This patch fixes this issue by properly notifying completed requests to the VHM
& hypervisor. Some concerns are raised during a discussion on the potential
races which does not hurt for now but may in the future. These considerations
and potential solutions are documented as comments for future reference.

Tracked-On: #895
Signed-off-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Yin Fengwei <fengwei.yin@intel.com>
2018-08-09 12:52:14 +08:00
..
console.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
consport.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
gc.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
hugetlb.c DM: Fix potential buffer overflow and uninitialized variable 2018-07-12 17:32:20 +08:00
inout.c DM: Remove 'strictio' from UOS bootargs' options 2018-07-02 12:33:52 +08:00
main.c DM: notify VHM request complete after pausing the VM 2018-08-09 12:52:14 +08:00
mem.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
mevent.c dm: add S3 support for UOS 2018-08-02 13:14:03 +08:00
monitor.c DM: register pm ops to monitor 2018-08-02 13:14:03 +08:00
mptbl.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
pm.c DM: register pm ops to monitor 2018-08-02 13:14:03 +08:00
post.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
smbiostbl.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
sw_load_bzimage.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00
sw_load_common.c loader: Update the memory address of GUEST_CFG_OFFSET 2018-07-17 14:11:12 +08:00
sw_load_vsbl.c DM: extend i6300esb device to support watchdog timeout query 2018-07-10 11:53:42 +08:00
vmmapi.c Revert "HV: clear memory region used by UOS before it exit" 2018-08-01 11:32:31 -04:00
vrpmb.c DM: cleanup for header inclusions 2018-06-07 14:35:30 +08:00