mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 17:27:53 +00:00
hv: reset VM ioreqs in reset_vm
ioreqs acrossing VM reset is meaningless. So we reset their status when VM reset. Please note, device model and service os need to handle various ioreqs pending status in emergency reset condition carefully. Otherwises, the post processing of such ioreqs might overwrite this reset. Tracked-On: projectacrn#1821 Signed-off-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -255,6 +255,7 @@ int reset_vm(struct acrn_vm *vm)
|
||||
(void )vm_sw_loader(vm);
|
||||
}
|
||||
|
||||
reset_vm_ioreqs(vm);
|
||||
vioapic_reset(vm_ioapic(vm));
|
||||
destroy_secure_world(vm, false);
|
||||
vm->sworld_control.flag.active = 0UL;
|
||||
|
Reference in New Issue
Block a user