diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2021-02-13 07:56:27 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2021-02-13 07:56:27 +0000 |
commit | 14ccbddd1deda6388e2859f150e54999084fb992 (patch) | |
tree | 2636f1bfd8f4067e30b1f0da626e32e06a123fa5 | |
parent | 328484adb3a15540ab46021ad9c5988a720d458e (diff) |
Fix some wrong comments and KNF/long line wraps
-rw-r--r-- | usr.sbin/vmd/vm.c | 13 |
1 files 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 <mlarkin@openbsd.org> @@ -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. */ |