mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-12-24 06:02:32 +00:00
This patch is ported from mainline branch to v2.0 branch to fix potential service VM hang issue when fuzzing hypercalls. hv: hypercall: restrict the condition to assign/deassign a pci device to a post-launched VM for safety For the safety of post-launched VMs, pci devices assignments should occur only when VM is being created (at VM_CREATED STATUS), and pci devices de-assignment should occur only when VM is being created or shutdown/reset (at VM_CREATED or VM_PAUSED status) Tracked-On: #5024 Acked-by: Eddie Done <eddie.dong@intel.com> Reviewed-by: Li Fei <Fei1.Li@intel.com> Signed-off-by: Wang Qian <qian1.wang@intel.com> Signed-off-by: Yonghua Huang <yonghua.huang@intel.com>