diff options
author | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-04-27 06:49:06 +0000 |
---|---|---|
committer | Mike Larkin <mlarkin@cvs.openbsd.org> | 2017-04-27 06:49:06 +0000 |
commit | 124cd75683cea7180a46754c7986a1e8a239bc99 (patch) | |
tree | d668b7db5878a71ceabd3869527229bb0c5161fc /sys | |
parent | e907981ee3da32ee6122a11700e347d6cdc9f713 (diff) |
use a more descriptive value from the VEI_DIR_xxx enum instead of a
hardcoded number. no functional change
Diffstat (limited to 'sys')
-rw-r--r-- | sys/arch/amd64/amd64/vmm.c | 4 |
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) |