summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormlarkin <mlarkin@openbsd.org>2017-04-27 06:49:05 +0000
committermlarkin <mlarkin@openbsd.org>2017-04-27 06:49:05 +0000
commit7382f06381e0e85a62e7ac17ff6ff9abcf879b07 (patch)
tree249bff7ef7f35d4a016bf190d464c905f590d625
parentspelling; (diff)
downloadwireguard-openbsd-7382f06381e0e85a62e7ac17ff6ff9abcf879b07.tar.xz
wireguard-openbsd-7382f06381e0e85a62e7ac17ff6ff9abcf879b07.zip
use a more descriptive value from the VEI_DIR_xxx enum instead of a
hardcoded number. no functional change
-rw-r--r--sys/arch/amd64/amd64/vmm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/arch/amd64/amd64/vmm.c b/sys/arch/amd64/amd64/vmm.c
index 1e55473c5c5..b98c2f080d6 100644
--- a/sys/arch/amd64/amd64/vmm.c
+++ b/sys/arch/amd64/amd64/vmm.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmm.c,v 1.134 2017/04/27 06:16:39 mlarkin Exp $ */
+/* $OpenBSD: vmm.c,v 1.135 2017/04/27 06:49:05 mlarkin Exp $ */
/*
* Copyright (c) 2014 Mike Larkin <mlarkin@openbsd.org>
*
@@ -4214,7 +4214,7 @@ vmx_handle_inout(struct vcpu *vcpu)
break;
default:
/* Read from unsupported ports returns FFs */
- if (vcpu->vc_exit.vei.vei_dir == 1) {
+ if (vcpu->vc_exit.vei.vei_dir == VEI_DIR_IN) {
if (vcpu->vc_exit.vei.vei_size == 4)
vcpu->vc_gueststate.vg_rax = 0xFFFFFFFF;
else if (vcpu->vc_exit.vei.vei_size == 2)