Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F132984558
D19400.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
619 B
Referenced Files
None
Subscribers
None
D19400.id.diff
View Options
Index: head/lib/libvmmapi/vmmapi.c
===================================================================
--- head/lib/libvmmapi/vmmapi.c
+++ head/lib/libvmmapi/vmmapi.c
@@ -34,7 +34,9 @@
#include <sys/param.h>
#include <sys/sysctl.h>
#include <sys/ioctl.h>
+#include <sys/linker.h>
#include <sys/mman.h>
+#include <sys/module.h>
#include <sys/_iovec.h>
#include <sys/cpuset.h>
@@ -103,7 +105,11 @@
int
vm_create(const char *name)
{
-
+ /* Try to load vmm(4) module before creating a guest. */
+ if (modfind("vmm") < 0) {
+ if (modfind("vmm") < 0)
+ kldload("vmm");
+ }
return (CREATE((char *)name));
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Oct 22, 8:07 PM (3 h, 13 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
24065395
Default Alt Text
D19400.id.diff (619 B)
Attached To
Mode
D19400: attempt to load vmm.ko if it's not already loaded (bhyveload)
Attached
Detach File
Event Timeline
Log In to Comment