Move the 'devmem' device nodes from /dev/vmm to /dev/vmm.io

Some external tools just do a 'ls /dev/vmm' to figure out the bhyve virtual
machines on the host. These tools break if the devmem device nodes also
appear in /dev/vmm.

Requested by:	grehan
This commit is contained in:
Neel Natu 2015-07-06 19:41:43 +00:00
parent ccfe4c3f74
commit 5e4f29c037
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=285218
2 changed files with 2 additions and 2 deletions

View File

@ -472,7 +472,7 @@ vm_create_devmem(struct vmctx *ctx, int segid, const char *name, size_t len)
if (error)
goto done;
strlcpy(pathname, "/dev/vmm/", sizeof(pathname));
strlcpy(pathname, "/dev/vmm.io/", sizeof(pathname));
strlcat(pathname, ctx->name, sizeof(pathname));
strlcat(pathname, ".", sizeof(pathname));
strlcat(pathname, name, sizeof(pathname));

View File

@ -943,7 +943,7 @@ devmem_create_cdev(const char *vmname, int segid, char *devname)
int error;
error = make_dev_p(MAKEDEV_CHECKNAME, &cdev, &devmemsw, NULL,
UID_ROOT, GID_WHEEL, 0600, "vmm/%s.%s", vmname, devname);
UID_ROOT, GID_WHEEL, 0600, "vmm.io/%s.%s", vmname, devname);
if (error)
return (error);