diff options
author | Keir Fraser <keir.fraser@citrix.com> | 2009-12-17 06:27:55 +0000 |
---|---|---|
committer | Keir Fraser <keir.fraser@citrix.com> | 2009-12-17 06:27:55 +0000 |
commit | a3b207eb7068ea94fa0a5f9cc9fa9bbfcac00555 (patch) | |
tree | 1555ce364a26bbbcab62bb0ce2ede3448c1205f9 /xen/arch/x86/hvm/emulate.c | |
parent | 3b6b6f566b35edbf7ccc65fbe1936db373c59216 (diff) | |
download | xen-a3b207eb7068ea94fa0a5f9cc9fa9bbfcac00555.tar.gz xen-a3b207eb7068ea94fa0a5f9cc9fa9bbfcac00555.tar.bz2 xen-a3b207eb7068ea94fa0a5f9cc9fa9bbfcac00555.zip |
Fix a reference to X86EMUL_OKAY which was hardcoded as a 0 instead.
Signed-off-by: Patrick Colp <Patrick.Colp@citrix.com>
Diffstat (limited to 'xen/arch/x86/hvm/emulate.c')
-rw-r--r-- | xen/arch/x86/hvm/emulate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xen/arch/x86/hvm/emulate.c b/xen/arch/x86/hvm/emulate.c index d257ff3061..dc7a6b5f89 100644 --- a/xen/arch/x86/hvm/emulate.c +++ b/xen/arch/x86/hvm/emulate.c @@ -801,7 +801,7 @@ static int hvmemul_read_msr( _regs.ecx = (uint32_t)reg; - if ( (rc = hvm_msr_read_intercept(&_regs)) != 0 ) + if ( (rc = hvm_msr_read_intercept(&_regs)) != X86EMUL_OKAY ) return rc; *val = ((uint64_t)(uint32_t)_regs.edx << 32) | (uint32_t)_regs.eax; |