From 7112ec99f0f4094c2c079631a6c77c8cd6bdc3ba Mon Sep 17 00:00:00 2001 From: mlarkin Date: Thu, 29 Jun 2017 08:24:10 +0000 Subject: [PATCH] add some comments, no functional change --- sys/arch/amd64/amd64/vmm.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) 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 * @@ -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) -- 2.20.1