CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2025/12/17 12:26:25

Modified files:
        sys/dev/vmm    : vmm.c vmm.h 

Log message:
Fix race in vmm(4) vm termination path.

Two callers can enter vm_terminate simultaneously and race to remove
the vm from the SLIST and teardown the vm. This adds a flag to the
vm struct and uses atomic cas operations to only have one caller
advance while the other callers receive EBUSY.

ok mlarkin@

Reported-by: [email protected]

Reply via email to