Page MenuHomeFreeBSD

vmm: Fix error handling in vmm_handler()
AcceptedPublic

Authored by markj on Tue, Dec 31, 3:37 PM.

Details

Reviewers
andrew
manu
Group Reviewers
bhyve
Summary

In commit a97f683fe3c4 I didn't add code to remove the vmmctl device
when vmm.ko is unloaded, so it would persist and prevent vmm.ko from
being re-loaded.

Extend vmmdev_cleanup() to destroy the vmmctl cdev. Also call
vmmdev_cleanup() if vmm_init() fails.

Fixes: a97f683fe3c4 ("vmm: Add a device file interface for creating and destroying VMs")

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 61458
Build 58342: arc lint + arc unit