From 7d0a6c3d5f0ec7bceb15cc180335f914a11192ad Mon Sep 17 00:00:00 2001 From: mlarkin Date: Sat, 13 Feb 2021 07:56:26 +0000 Subject: [PATCH] Fix some wrong comments and KNF/long line wraps --- usr.sbin/vmd/vm.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/usr.sbin/vmd/vm.c b/usr.sbin/vmd/vm.c index a9fcce4fac4..e825f203ebb 100644 --- a/usr.sbin/vmd/vm.c +++ b/usr.sbin/vmd/vm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm.c,v 1.58 2020/06/28 16:52:45 pd Exp $ */ +/* $OpenBSD: vm.c,v 1.59 2021/02/13 07:56:26 mlarkin Exp $ */ /* * Copyright (c) 2015 Mike Larkin @@ -485,7 +485,7 @@ vm_dispatch_vmm(int fd, short event, void *arg) } /* - * vm_ctl + * vm_shutdown * * Tell the vmm parent process to shutdown or reboot the VM and exit. */ @@ -1463,7 +1463,10 @@ vcpu_run_loop(void *arg) /* Still more pending? */ if (i8259_is_pending()) { - /* XXX can probably avoid ioctls here by providing intr in vrp */ + /* + * XXX can probably avoid ioctls here by providing intr + * in vrp + */ if (vcpu_pic_intr(vrp->vrp_vm_id, vrp->vrp_vcpu_id, 1)) { fatal("can't set INTR"); @@ -1596,7 +1599,6 @@ vcpu_exit_inout(struct vm_run_params *vrp) * * handle an EPT Violation * - * * Parameters: * vrp: vcpu run parameters containing guest state for this exit * @@ -1608,9 +1610,10 @@ int vcpu_exit_eptviolation(struct vm_run_params *vrp) { struct vm_exit *ve = vrp->vrp_exit; + /* * vmd may be exiting to vmd to handle a pending interrupt - * but last exit type may have bee VMX_EXIT_EPT_VIOLATION, + * but last exit type may have been VMX_EXIT_EPT_VIOLATION, * check the fault_type to ensure we really are processing * a VMX_EXIT_EPT_VIOLATION. */ -- 2.20.1