From: mlarkin Date: Thu, 27 Apr 2017 06:49:05 +0000 (+0000) Subject: use a more descriptive value from the VEI_DIR_xxx enum instead of a X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=7382f06381e0e85a62e7ac17ff6ff9abcf879b07;p=openbsd use a more descriptive value from the VEI_DIR_xxx enum instead of a hardcoded number. no functional change --- 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 * @@ -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)