mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-01 17:06:51 +00:00
DM: add deinit function to virtual keyboard device
old code has no deinit functionality for virtual keyboard device. Which will trigger resource leak when system is reboot. deinit function is added to: 1. deinit low ps2 based keyboard and mouse 2. release memory/io resource of virtual keyboard device NOTE: IRQ resource will be handed in pci irq module Signed-off-by: Yin Fengwei <fengwei.yin@intel.com> Acked-by: Eddie Dong <Eddie.dong@intel.com>
This commit is contained in:
@@ -542,6 +542,7 @@ do_close_post(struct vmctx *ctx)
|
||||
{
|
||||
pci_irq_deinit(ctx);
|
||||
deinit_pci(ctx);
|
||||
atkbdc_deinit(ctx);
|
||||
vm_destroy(ctx);
|
||||
vm_close(ctx);
|
||||
}
|
||||
|
Reference in New Issue
Block a user