Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libnvmm Sync with reality.



details:   https://anonhg.NetBSD.org/src/rev/4341ea732ac2
branches:  trunk
changeset: 451237:4341ea732ac2
user:      maxv <maxv%NetBSD.org@localhost>
date:      Sat May 11 07:40:38 2019 +0000

description:
Sync with reality.

diffstat:

 lib/libnvmm/libnvmm.3 |  23 +++++++++++++----------
 1 files changed, 13 insertions(+), 10 deletions(-)

diffs (65 lines):

diff -r dbd4b6822e5d -r 4341ea732ac2 lib/libnvmm/libnvmm.3
--- a/lib/libnvmm/libnvmm.3     Sat May 11 07:31:56 2019 +0000
+++ b/lib/libnvmm/libnvmm.3     Sat May 11 07:40:38 2019 +0000
@@ -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 @@
 .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 @@
 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 @@
 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 {



Home | Main Index | Thread Index | Old Index