acrn-hypervisor/hypervisor/arch/x86/guest
Victor Sun bfecf30f32 HV: do not offline pcpu when lapic pt disabled
In current code, wait_pcpus_offline() and make_pcpu_offline() are called by
both shutdown_vm() and reset_vm(), but this is not needed when lapic_pt is
not enabled for the vcpus of the VM.

The patch merged offline pcpus part code into a common
offline_lapic_pt_enabled_pcpus() api for shutdown_vm() and reset_vm() use and
called only when lapic_pt is enabled.

Tracked-On: #4325

Signed-off-by: Victor Sun <victor.sun@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2020-01-06 15:35:08 +08:00
..
assign.c HV: rename CONFIG_MAX_PCPU_NUM to MAX_PCPU_NUM 2019-12-12 13:49:28 +08:00
ept.c hv: refine 'uint64_t' string print format in x86 moudle 2019-11-09 11:42:38 +08:00
guest_memory.c hv: refine 'uint64_t' string print format in x86 moudle 2019-11-09 11:42:38 +08:00
hyperv.c HV: Kconfig: remove MAX_VCPUS_PER_VM in Kconfig 2019-12-12 13:49:28 +08:00
instr_emul.c hv: instr_emul: use cs segment when fetching instructions 2019-11-11 13:55:24 +08:00
pm.c pm: S5: update the system shutdown logical in ACRN 2019-12-23 15:15:09 +08:00
trusty.c hv: support xsave in context switch 2019-12-02 09:31:12 +08:00
ucode.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vcpu.c HV: restore lapic state and apic id upon INIT 2019-12-27 12:27:08 +08:00
vcpuid.c hv: cpuid: expose PCID related capabilities to VMs 2020-01-02 10:47:34 +08:00
virq.c HV: Use NMI-window exiting to address req missing issue 2019-12-17 09:45:52 +08:00
virtual_cr.c hv: cr: handle control registers related to PCID 2020-01-02 10:47:34 +08:00
vlapic_priv.h hv: add ops to vlapic structure 2019-07-19 16:47:06 +08:00
vlapic.c HV: restore lapic state and apic id upon INIT 2019-12-27 12:27:08 +08:00
vm_reset.c reset: detect highest severity guest dynamically 2019-12-23 15:15:09 +08:00
vm.c HV: do not offline pcpu when lapic pt disabled 2020-01-06 15:35:08 +08:00
vmcall.c hv: refine 'uint64_t' string print format in x86 moudle 2019-11-09 11:42:38 +08:00
vmcs.c hv: vmcs: pass-through instruction INVPCID to VM 2020-01-02 10:47:34 +08:00
vmexit.c HV: Remove INIT signal notification related code 2019-12-17 09:45:52 +08:00
vmsr.c hv: msr: remove redundant check in write_pat_msr 2019-12-16 14:32:42 +08:00
vmtrr.c hv: refine 'uint64_t' string print format in x86 moudle 2019-11-09 11:42:38 +08:00
vmx_asm.S hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
vmx_io.c hv: ept: disable execute right on large pages 2019-11-13 08:00:36 +08:00