Page MenuHomeFreeBSD

vmm: Fix error handling in vmm_handler()
AcceptedPublic

Authored by markj on Tue, Dec 31, 3:37 PM.
Tags
None
Referenced Files
F106818933: D48269.diff
Sun, Jan 5, 10:01 PM
F106802965: D48269.id148602.diff
Sun, Jan 5, 3:31 PM
F106793762: D48269.id148677.diff
Sun, Jan 5, 12:12 PM
Unknown Object (File)
Fri, Jan 3, 10:55 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