Files
acrn-hypervisor/hypervisor/arch/x86
Peter Fang e5f733fb98 hv: vm: properly reset pCPUs with LAPIC PT enabled during VM shutdown/reset
When a VM is configured with LAPIC PT mode and its vCPU is in x2APIC
mode, the corresponding pCPU needs to be reset during VM shutdown/reset
as its physical LAPIC was used by its guest

This commit fixes an issue where this reset never happens.
is_lapic_pt_enabled() needs to be called before reset_vcpu() to be able
to correctly reflect a vCPU's APIC mode.

A vCPU with LAPIC PT mode but in xAPIC mode does not require such reset,
since its physical LAPIC was not touched by its guest directly.

Tracked-On: #3708
Signed-off-by: Peter Fang <peter.fang@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Jack Ren <jack.ren@intel.com>
2019-09-20 16:09:30 +08:00
..
2019-05-07 09:10:13 +08:00
2019-06-14 14:22:51 +08:00
2019-09-05 09:59:13 +08:00
2019-09-05 09:58:47 +08:00
2019-09-05 16:32:30 +08:00
2019-09-11 17:30:24 +08:00
2019-08-29 12:41:53 +08:00
2019-09-11 17:30:24 +08:00