forked from Minki/linux
4c4c1257b8
The ACRN hypervisor has scenarios which could run a real-time guest VM.
The real-time guest VM occupies dedicated CPU cores, be assigned with
dedicated PCI devices. It can run without the Service VM after boot up.
hcall_destroy_vm() returns failure when a real-time guest VM refuses.
The clearing of flag ACRN_VM_FLAG_DESTROYED causes some kernel resource
double-freed in a later acrn_vm_destroy().
Do hcall_destroy_vm() before resource release to drop this chance to
destroy the VM if hypercall fails.
Fixes:
|
||
---|---|---|
.. | ||
acrn_drv.h | ||
hsm.c | ||
hypercall.h | ||
ioeventfd.c | ||
ioreq.c | ||
irqfd.c | ||
Kconfig | ||
Makefile | ||
mm.c | ||
vm.c |