Page MenuHomeFreeBSD

D19400.id.diff
No OneTemporary

D19400.id.diff

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

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)

Event Timeline