Module Name: src
Committed By: maxv
Date: Sat May 11 07:40:38 UTC 2019
Modified Files:
src/lib/libnvmm: libnvmm.3
Log Message:
Sync with reality.
To generate a diff of this commit:
cvs rdiff -u -r1.16 -r1.17 src/lib/libnvmm/libnvmm.3
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/lib/libnvmm/libnvmm.3
diff -u src/lib/libnvmm/libnvmm.3:1.16 src/lib/libnvmm/libnvmm.3:1.17
--- src/lib/libnvmm/libnvmm.3:1.16 Mon Apr 29 19:03:17 2019
+++ src/lib/libnvmm/libnvmm.3 Sat May 11 07:40:38 2019
@@ -1,4 +1,4 @@
-.\" $NetBSD: libnvmm.3,v 1.16 2019/04/29 19:03:17 maxv Exp $
+.\" $NetBSD: libnvmm.3,v 1.17 2019/05/11 07:40:38 maxv Exp $
.\"
.\" Copyright (c) 2018, 2019 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -27,7 +27,7 @@
.\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
.\" POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd April 29, 2019
+.Dd May 11, 2019
.Dt LIBNVMM 3
.Os
.Sh NAME
@@ -78,8 +78,6 @@
.Ft int
.Fn nvmm_gpa_to_hva "struct nvmm_machine *mach" "gpaddr_t gpa" \
"uintptr_t *hva" "nvmm_prot_t *prot"
-.Ft void
-.Fn nvmm_callbacks_register "const struct nvmm_callbacks *cbs"
.Ft int
.Fn nvmm_assist_io "struct nvmm_machine *mach" "nvmm_cpuid_t cpuid" \
"struct nvmm_exit *exit"
@@ -246,11 +244,6 @@ The associated page premissions are retu
.Fa gpa
must be page-aligned.
.Pp
-.Fn nvmm_callbacks_register
-registers in
-.Nm
-the callbacks descriptor passed as argument.
-.Pp
.Fn nvmm_assist_io
emulates the I/O operation described in
.Fa exit
@@ -295,6 +288,16 @@ For example, the
field indicates the maximum number of virtual machines supported, while
.Cd max_vcpus
indicates the maximum number of VCPUs supported per virtual machine.
+.Ss Machine Configuration
+VMM software can configure several parameters of a virtual machine by using
+.Fn nvmm_machine_configure ,
+which can take the following operations:
+.Bd -literal
+#define NVMM_MACH_CONF_CALLBACKS 0
+ ...
+.Ed
+.Pp
+The higher fields depend on the architecture.
.Ss Guest-Host Mappings
Each virtual machine has an associated guest physical memory.
VMM software is allowed to modify this guest physical memory by mapping
@@ -474,7 +477,7 @@ of interrupts.
In order to assist emulation of certain operations,
.Nm
requires VMM software to register, via
-.Fn nvmm_callbacks_register ,
+.Fn nvmm_machine_configure ,
a set of callbacks described in the following structure:
.Bd -literal
struct nvmm_callbacks {