From 5be46cf7ce19a8d1186fbcc95ce85e612376fa75 Mon Sep 17 00:00:00 2001 From: Dave Voutila Date: Mon, 29 Apr 2024 14:47:07 +0000 Subject: 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@ --- usr.sbin/vmd/vm.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'usr.sbin/vmd') 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 @@ -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); } -- cgit v1.2.3