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:
Yin Fengwei
2018-03-30 15:06:27 +08:00
committed by Jack Ren
parent f6db755c7f
commit 80a9fe5b37
4 changed files with 35 additions and 0 deletions

View File

@@ -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);
}