acrn-hypervisor/hypervisor/arch/x86
Jason Chen CJ 36863a0b54 modulization: vmx on/off should not use vcpu param
vmx.c should only take care host vmx operations, which should not
contain vcpu reference, so refine vmx on/off APIs, move out use
of vcpu by adding one per cpu vmcs_run pointer.

as now each pcpu only run on one vcpu, so just keep running vmcs
in per cpu vmcs_run pointer is enough.

Changes to be committed:
	modified:   arch/x86/cpu.c
	modified:   arch/x86/init.c
	modified:   arch/x86/pm.c
	modified:   arch/x86/vmcs.c
	modified:   arch/x86/vmx.c
	modified:   include/arch/x86/per_cpu.h
	modified:   include/arch/x86/vmx.h

Tracked-On: #1842
Signed-off-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-12-18 10:00:56 +08:00
..
boot hv: drop the temperory stack for AP startup 2018-12-17 19:16:43 +08:00
configs HV: fix bug change default vuart IRQ for UP2 board 2018-12-17 11:08:56 +08:00
guest hv: vmsr: fix MISRA_C violations 2018-12-16 14:52:22 +08:00
assign.c hv: fix possible buffer overflow issues 2018-12-14 20:38:15 +08:00
cpu_state_tbl.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
cpu.c modulization: vmx on/off should not use vcpu param 2018-12-18 10:00:56 +08:00
e820.c HV: rename e820_entries to e820_entries_count 2018-12-12 09:12:12 +08:00
ept.c hv: remove goto in ept_violation_vmexit_handler 2018-12-14 09:42:49 +08:00
gdt.c fix "Procedure is not pure assembler" 2018-11-13 16:28:58 +08:00
idt.S move idt.S and idt.h out of boot component 2018-12-12 09:07:43 +08:00
init.c modulization: vmx on/off should not use vcpu param 2018-12-18 10:00:56 +08:00
io.c hv: enforce data size on all out exits 2018-12-18 08:51:18 +08:00
ioapic.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
irq.c cpu_dead should only run on current pcpu 2018-12-17 14:31:52 +08:00
Kconfig HV: replace serial PCI MMIO base with BDF config 2018-12-03 13:20:35 +08:00
lapic.c hv: lapic: fix a theoretic infinite loop when clear lapic isr 2018-11-22 12:44:21 +08:00
mmu.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
notify.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
page.c hv: minimize the case of "identifier reuse" 2018-12-07 15:21:39 +08:00
pagetable.c hv: mmu: replace dynamic memory allocation in memory 2018-11-02 13:15:48 +08:00
pm.c modulization: vmx on/off should not use vcpu param 2018-12-18 10:00:56 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
static_checks.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
timer.c remove check_tsc 2018-12-17 14:31:52 +08:00
trampoline.c hv: drop the temperory stack for AP startup 2018-12-17 19:16:43 +08:00
trusty.c hv: enable SMAP in hypervisor 2018-12-14 15:24:26 +08:00
virq.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vmcs.c modulization: vmx on/off should not use vcpu param 2018-12-18 10:00:56 +08:00
vmexit.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
vmx_asm.S modulization: separate vmx.c into two parts 2018-12-18 10:00:56 +08:00
vmx.c modulization: vmx on/off should not use vcpu param 2018-12-18 10:00:56 +08:00
vtd.c hv: use int32_t replace int 2018-12-12 13:08:10 +08:00
wakeup.S hv: drop the temperory stack for AP startup 2018-12-17 19:16:43 +08:00