mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-02 12:25:31 +00:00
dm: deinit iothreads on vm reset
iothreads are created by emulated block devices like virtio. These devices are resetted on vm reset, but these iothreads are not freed, causing a resource leak. Fix it by deinit all iothreads on vm reset. Tracked-On: #8612 Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com> Reviewed-by: Jian Jun Chen <jian.jun.chen@intel.com>
This commit is contained in:
parent
46a860bf04
commit
dc8ea42297
@ -674,6 +674,8 @@ vm_reset_vdevs(struct vmctx *ctx)
|
|||||||
pci_irq_deinit(ctx);
|
pci_irq_deinit(ctx);
|
||||||
ioapic_deinit();
|
ioapic_deinit();
|
||||||
|
|
||||||
|
iothread_deinit();
|
||||||
|
|
||||||
pci_irq_init(ctx);
|
pci_irq_init(ctx);
|
||||||
atkbdc_init(ctx);
|
atkbdc_init(ctx);
|
||||||
vrtc_init(ctx);
|
vrtc_init(ctx);
|
||||||
|
Loading…
Reference in New Issue
Block a user