acrn-hypervisor/hypervisor/arch/x86
Zide Chen d5be735978 hv: correct the way to check if a MSR is a fixed MTRR register
The fixed MTRR MSR numbers are not contiguous, so it's not correct
to justify it by checking if it falls in certain range.

This patch fixes this issue by removing is_fixed_range_mtrr()
and use get_index_of_fixed_mtrr() to loop fixed_mtrr_map[]
and compare individual MSR values.

Also removed the unused function get_subrange_end_of_fixed_mtrr()

Signed-off-by: Zide Chen <zide.chen@intel.com>
2018-07-23 10:34:47 +08:00
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
debug HV: prototyping non-static function 2018-07-16 10:35:54 +08:00
guest HV: common: cleanup of remaining integral-type issues 2018-07-23 10:23:49 +08:00
assign.c fix assign.c interger violations 2018-07-23 10:31:57 +08:00
cpu_primary.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
cpu_state_tbl.c HV:CPU: Add 'U/UL' for unsigned const value 2018-07-09 10:27:21 +08:00
cpu.c HV:common:fix "integer type violations" 2018-07-18 12:31:14 +08:00
cpuid.c HV: cpuid: Disable Intel RDT for guest OS 2018-07-20 11:59:56 +08:00
ept.c hv: ept: move EPT PML4 table allocation to create_vm 2018-07-20 10:40:32 +08:00
gdt.c HV:misc:add suffix U to the numeric constant 2018-07-05 11:29:46 +08:00
idt.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
io.c HV: treewide: terminate 'if .. else if' constructs with 'else' 2018-07-19 14:09:36 +08:00
ioapic.c HV: Fixes index out of bounds for addressing irq. 2018-07-19 11:06:42 +08:00
irq.c HV: Fixes index out of bounds for addressing irq. 2018-07-19 11:06:42 +08:00
Kconfig HV: build: make relocation-related code configurable 2018-07-11 19:18:26 +08:00
lapic.c HV: treewide: unify the type of bit-field members 2018-07-23 10:23:49 +08:00
mmu.c HV: treewide: unify the type of bit-field members 2018-07-23 10:23:49 +08:00
mtrr.c hv: correct the way to check if a MSR is a fixed MTRR register 2018-07-23 10:34:47 +08:00
notify.c HV: Fix new MISRAC violations for brackets 2018-07-16 11:02:38 +08:00
pagetable.c hv: mmu: revisit mmu modify page table attributes 2018-07-19 11:11:32 +08:00
pm.c HV: pm: cleanup for misra integral type violations 2018-07-12 17:31:11 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
softirq.c HV: handle integral issue report by MISRA-C 2018-07-16 16:24:29 +08:00
timer.c HV:treewide:Fix type conversion in VMX, timer and MTTR module 2018-07-19 12:58:07 +08:00
trampoline.S HV:treewide:Replace HOST_GDT_RING0_CODE/DATA_SEL with constant 2018-07-18 12:31:42 +08:00
trusty2.c hv: ept: store virtual address of EPT PML4 table 2018-07-20 10:40:32 +08:00
trusty.c hv: ept: store virtual address of EPT PML4 table 2018-07-20 10:40:32 +08:00
virq.c HV: treewide: terminate 'if .. else if' constructs with 'else' 2018-07-19 14:09:36 +08:00
vmexit.c HV: treewide: terminate 'if .. else if' constructs with 'else' 2018-07-19 14:09:36 +08:00
vmx_asm.S HV:CPU:Constant values replace with CPU MACRO 2018-07-09 09:24:56 +08:00
vmx.c hv: ept: store virtual address of EPT PML4 table 2018-07-20 10:40:32 +08:00
vtd.c HV:vtd:fix all integer related violations 2018-07-23 10:22:32 +08:00
wakeup.S HV:CPU:Fix a mistake introduced by MARCO replacing patch 2018-07-13 11:27:56 +08:00