summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorMike Larkin <mlarkin@cvs.openbsd.org>2017-06-29 08:24:11 +0000
committerMike Larkin <mlarkin@cvs.openbsd.org>2017-06-29 08:24:11 +0000
commit326b3d07113980fdf656748b630d06d6258e1bac (patch)
treefcc2d863eb9550db9581db468584bd0339ff79cb /sys
parent85c9243f1769b646f7d3163b09997bb0f906a437 (diff)
add some comments, no functional change
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/amd64/amd64/vmm.c19
1 files changed, 18 insertions, 1 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c
index c0495ff2f09..2da7bc24188 100644
--- a/sys/arch/amd64/amd64/vmm.c
+++ b/sys/arch/amd64/amd64/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.155 2017/06/28 07:10:02 mlarkin Exp $ */
+/* $OpenBSD: vmm.c,v 1.156 2017/06/29 08:24:10 mlarkin Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -1246,6 +1246,14 @@ vm_impl_init_svm(struct vm *vm, struct proc *p)
* vm_impl_init
*
* Calls the architecture-specific VM init routine
+ *
+ * Parameters:
+ * vm: the VM being initialized
+ * p: vmd process owning the VM
+ *
+ * Return values (from architecture-specific init routines):
+ * 0: the initialization was successful
+ * ENOMEM: the initialization failed (lack of resources)
*/
int
vm_impl_init(struct vm *vm, struct proc *p)
@@ -1264,6 +1272,9 @@ vm_impl_init(struct vm *vm, struct proc *p)
* vm_impl_deinit_vmx
*
* Intel VMX specific VM initialization routine
+ *
+ * Parameters:
+ * vm: VM to deinit
*/
void
vm_impl_deinit_vmx(struct vm *vm)
@@ -1275,6 +1286,9 @@ vm_impl_deinit_vmx(struct vm *vm)
* vm_impl_deinit_svm
*
* AMD SVM specific VM initialization routine
+ *
+ * Parameters:
+ * vm: VM to deinit
*/
void
vm_impl_deinit_svm(struct vm *vm)
@@ -1286,6 +1300,9 @@ vm_impl_deinit_svm(struct vm *vm)
* vm_impl_deinit
*
* Calls the architecture-specific VM init routine
+ *
+ * Parameters:
+ * vm: VM to deinit
*/
void
vm_impl_deinit(struct vm *vm)