acrn-hypervisor/hypervisor/arch/x86
Yin Fengwei d18642a8a6 hv: Add function to check whether cr0 written operation is valid
Move the check to delicated function and do the check as early
as possible.

Add more check and inject GP to guest if check fails according to
SDM.

Signed-off-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Anthony Xu <anthony.xu@intel.com>
2018-08-01 11:35:30 +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:treewide:rename enum vpic_wire_mode, stack_canary, segment_override, pde_index 2018-07-31 11:20:21 +08:00
assign.c HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +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 fix x86 dir integer violations 2018-07-25 15:29:34 +08:00
cpu.c HV:treewide:rename enum vpic_wire_mode, stack_canary, segment_override, pde_index 2018-07-31 11:20:21 +08:00
cpuid.c HV:treewide:fix "Attempt to change parameter passed by value" 2018-07-26 09:35:52 +08:00
ept.c HV:treewide:rename enum vpic_wire_mode, stack_canary, segment_override, pde_index 2018-07-31 11:20:21 +08:00
gdt.c fix x86 dir integer violations 2018-07-25 15:29:34 +08:00
idt.S hv: cpu: using struct cpu_gp_regs for general-purpose regs in inter_excp_ctx 2018-07-25 13:05:38 +08:00
io.c HV: io: refine state transitions of VHM requests 2018-07-31 10:22:03 +08:00
ioapic.c HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +08:00
irq.c HV:treewide:fix "Reference parameter to procedure is reassigned" 2018-07-27 12:17:12 +08:00
Kconfig HV: build: make relocation-related code configurable 2018-07-11 19:18:26 +08:00
lapic.c fix x86 dir integer violations 2018-07-25 15:29:34 +08:00
mmu.c HV:treewide:rename struct key_info, pir_desc, map_params 2018-07-30 10:18:39 +08:00
mtrr.c hv: mmu: minor fix about hv mmu && ept modify 2018-07-24 12:48:45 +08:00
notify.c HV: Fix new MISRAC violations for brackets 2018-07-16 11:02:38 +08:00
pagetable.c hv: ept: add lookup_address to lookup the page table 2018-07-26 12:46:34 +08:00
pm.c HV:treewide:rename enum vpic_wire_mode, stack_canary, segment_override, pde_index 2018-07-31 11:20:21 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
softirq.c HV: Rename functions beginning with "_" 2018-07-30 10:11:54 +08:00
timer.c HV:treewide:rename struct timer as struct hv_timer 2018-07-30 10:16:36 +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:treewide:rename struct key_info, pir_desc, map_params 2018-07-30 10:18:39 +08:00
trusty.c HV:treewide:rename struct key_info, pir_desc, map_params 2018-07-30 10:18:39 +08:00
virq.c HV: Rename functions beginning with "_" 2018-07-30 10:11:54 +08:00
vmexit.c HV: io: refactoring vmexit handler on I/O instruction 2018-07-31 10:22:03 +08:00
vmx_asm.S hv: cpu: align general-purpose register layout with vmx 2018-07-25 13:05:38 +08:00
vmx.c hv: Add function to check whether cr0 written operation is valid 2018-08-01 11:35:30 +08:00
vtd.c HV:treewide:Fixing pointer castings 2018-07-24 10:56:24 +08:00
wakeup.S hv: cpu: align general-purpose register layout with vmx 2018-07-25 13:05:38 +08:00