OS-7408: want native libvmm


Issue Type:Bug
Priority:4 - Normal
Created at:2018-11-28T16:44:04.116Z
Updated at:2018-12-20T17:06:04.978Z


Created by:Hans Rosenfeld [X]
Reported by:Hans Rosenfeld [X]
Assigned to:Hans Rosenfeld [X]


Fixed: A fix for this issue is checked into the tree and tested.
(Resolution Date: 2018-12-20T13:17:18.024Z)

Fix Versions

2019-01-03 Interweb (Release Date: 2019-01-03)

Related Links


To make it easier for native software to interface to bhyve VMs it would be nice to have a native libvmm. This way it wouldn't be necessary to include FreeBSD compat/contrib header files and link against libvmmapi, thereby avoiding any potential for naming conflicts or other incompatibilities.


Comment by Hans Rosenfeld [X]
Created at 2018-12-17T15:39:37.204Z

Testing: This was really only tested by using the mdb bhyve target. Opening, closing and reopening a VM works. Mapping, unmapping, reading, and writing guest physical memory works. Register access works as intended, I verified that with bhyvectl. The memory translation code was only tested in long mode, 32bit protected mode and real mode, but not in 32bit PAE mode. Control of the VM for stopping/continuing execution of all vCPUs and single-stepping a single vCPU (while the rest are stopped) were also tested.

Comment by Jira Bot
Created at 2018-12-20T12:40:49.712Z

illumos-joyent commit 7acaa8e37be75212e7823e35fc1b9a4cc61f601b (branch master, by Hans Rosenfeld)

OS-7408 want native libvmm
Reviewed by: John Levon <john.levon@joyent.com>
Reviewed by: Patrick Mooney <patrick.mooney@joyent.com>
Approved by: John Levon <john.levon@joyent.com>

Comment by Jira Bot
Created at 2018-12-20T17:06:04.978Z

illumos-joyent commit e0a1542b9fb6790bdf5bc4c630fef30bc29afca4 (branch master, by Hans Rosenfeld)

OS-7408 want native libvmm (fix deps)