Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
HV: instr_emul: convert return value of get_vmcs_field to unsigned
get_vmcs_field() returns a VMCS field offset which is normally unsigned, but it also returns negatives (-1 here) on invalid arguments. Following the convention we use for vectors, pins, etc., use a special unsigned value to indicate such errors. v1 -> v2: * Use a special value (VMX_INVALID_VMCS_FIELD) instead of a seperate output parameter to indicate errors. Signed-off-by: Junjie Mao <junjie.mao@intel.com>
- Loading branch information
1 parent
d457874
commit ab156c9
Showing
1 changed file
with
9 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters