acrn-hypervisor/hypervisor/dm/vpci
Jiaqing Zhao 91e0612e88 hv: dm: refine create/destroy functions
The create function of hv-emulated device must check the return value
of vpci_init_vdev() as it returns NULL pointer on failure, and that
function should be called atomically.

Also, the destory function should deinit the vpci devices created to
prevent resource leak.

Tracked-On: #8590
Signed-off-by: Jiaqing Zhao <jiaqing.zhao@linux.intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
2024-06-04 09:38:34 +08:00
..
ivshmem.c hv: dm: refine create/destroy functions 2024-06-04 09:38:34 +08:00
pci_pt.c doc: remove '@return None' for void functions 2023-08-03 14:56:29 -07:00
vdev.c hv: vpci: clear vdev structure on device deassign 2024-06-04 09:38:34 +08:00
vhostbridge.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vmcs9900.c hv: dm: refine create/destroy functions 2024-06-04 09:38:34 +08:00
vmsi.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vmsix.c hv: vpci: fix pass-thru pcie device may access MSI-X BAR 2022-10-26 01:02:20 +08:00
vmsix_on_msi.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vpci.c hv: vpci: clear vdev structure on device deassign 2024-06-04 09:38:34 +08:00
vpci_bridge.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vpci_mf_dev.c HV: emulate dummy multi-function dev in Service VM 2023-09-11 16:13:16 +08:00
vpci_priv.h Update copyright year range in code headers 2022-07-15 11:48:35 +08:00
vroot_port.c hv: dm: refine create/destroy functions 2024-06-04 09:38:34 +08:00
vsriov.c Update copyright year range in code headers 2022-07-15 11:48:35 +08:00