acrn-hypervisor/hypervisor/arch/x86/guest
Xiangyang Wu db01efa047 HV:treewide:Update return type for function fls64 and clz64
Change the return type of function fls64 and clz64 as uint16_t;
When the input is zero, INVALID_ID_INDEX is returned;
Update temporary variable type and return value check of caller
when it call fls64 or clz64;
When input value is zero, clz64 returns 64 directly.

V1-->V2:
        INVALID_BIT_INDEX instead of INVALID_NUMBER;
        Partly revert apicv_pending_intr udpates;
        Add type conversion as needed;
        Coding style fixing.
V2-->V3:
        Correct type conversion;
        fls64 return INVALID_BIT_INDEX directly when
        the input value is zero.
V3-->V4:
        No updates for this part in PATCH V4.

Note: For instruction "bsrq", destination register value
      is undefined when source register value is zero.

Signed-off-by: Xiangyang Wu <xiangyang.wu@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-07-02 15:11:22 +08:00
..
guest.c HV: Remove unnecessary vm0 check in vm0 specific func 2018-07-02 15:07:55 +08:00
instr_emul_wrapper.c HV: Minor refactor to get_guest_paging_info 2018-07-02 10:46:41 +08:00
instr_emul_wrapper.h HV: treewide: convert hexadecimals used in bitops to unsigned 2018-06-21 13:12:39 +08:00
instr_emul.c fix "negative shift" 2018-06-22 12:18:45 +08:00
instr_emul.h instr_emul: remove unnecessary params in __decode_instruction 2018-06-11 12:14:43 +08:00
pm.c hv: trap vm0 write/read pm1a/pm1b registers 2018-06-29 00:50:01 +08:00
ucode.c HV:guest:fix "expression is not Boolean" 2018-06-20 14:19:47 +08:00
vcpu.c HV:treewide:Cleanup the type for parameters of bitmap 2018-07-02 10:46:11 +08:00
vioapic.c HV: treewide: drop debug-only helpers in release build 2018-07-02 14:35:39 +08:00
vlapic_priv.h hv:merge struct lapic and lapic_regs to lapic_regs 2018-07-02 10:49:14 +08:00
vlapic.c HV:treewide:Update return type for function fls64 and clz64 2018-07-02 15:11:22 +08:00
vm.c HV: Remove vm->attr.name 2018-07-02 10:48:36 +08:00
vmcall.c HV: Make all trace event prefix consist with TRACE 2018-07-02 10:46:41 +08:00
vmsr.c hv: intercept IA32_PAT MSR 2018-07-02 12:33:06 +08:00
vpic.c HV: vpic: add suffix 'U' to constants in unsigned contexts 2018-06-29 14:23:16 +08:00