diff options
author | Dave Voutila <dv@cvs.openbsd.org> | 2024-04-29 14:47:07 +0000 |
---|---|---|
committer | Dave Voutila <dv@cvs.openbsd.org> | 2024-04-29 14:47:07 +0000 |
commit | 5be46cf7ce19a8d1186fbcc95ce85e612376fa75 (patch) | |
tree | 60353d9fd6700fe116a9a4eee7b61232353f79ef /usr.sbin/vmd | |
parent | 2f72d532c18e2867d44bbb8af3995777c2b2fd65 (diff) |
vmm & vmd: drop "continue" flag to simplify running a vcpu.
There's no need to distinguish the "first" time running a vcpu from
the subsequent times because vmm(4) uses in-kernel state tracking
the last vm exit reason to optimize the logic for updating vcpu
registers from userland. While here, clean up the DPRINTF's to make
the Intel VMX logic similar to the AMD SVM.
ok mlarkin@
Diffstat (limited to 'usr.sbin/vmd')
-rw-r--r-- | usr.sbin/vmd/vm.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/usr.sbin/vmd/vm.c b/usr.sbin/vmd/vm.c index d5bfe7a7688..f8e01288f01 100644 --- a/usr.sbin/vmd/vm.c +++ b/usr.sbin/vmd/vm.c @@ -1,4 +1,4 @@ -/* $OpenBSD: vm.c,v 1.99 2024/04/09 21:55:16 dv Exp $ */ +/* $OpenBSD: vm.c,v 1.100 2024/04/29 14:47:06 dv Exp $ */ /* * Copyright (c) 2015 Mike Larkin <mlarkin@openbsd.org> @@ -1538,7 +1538,6 @@ vcpu_run_loop(void *arg) intptr_t ret = 0; uint32_t n; - vrp->vrp_continue = 0; n = vrp->vrp_vcpu_id; for (;;) { @@ -1917,8 +1916,6 @@ vcpu_exit(struct vm_run_params *vrp) __progname, vrp->vrp_exit_reason); } - vrp->vrp_continue = 1; - return (0); } |