acrn-hypervisor/hypervisor/include
Sainath Grandhi 536c69b9ff hv: distinguish between LAPIC_PASSTHROUGH configured vs enabled
ACRN supports LAPIC emulation for guests using x86 APICv. When guest OS/BIOS
switches from xAPIC to x2APIC mode of operation, ACRN also supports switching
froom LAPIC emulation to LAPIC passthrough to guest. User/developer needs to
configure GUEST_FLAG_LAPIC_PASSTHROUGH for guest_flags in the corresponding
VM's config for ACRN to enable LAPIC passthrough.

This patch does the following

1)Fixes a bug in the abovementioned feature. For a guest that is
configured with GUEST_FLAG_LAPIC_PASSTHROUGH, during the time period guest is
using xAPIC mode of LAPIC,  virtual interrupts are not delivered. This can be
manifested as guest hang when it does not receive virtual timer interrupts.

2)ACRN exposes physical topology via CPUID leaf 0xb to LAPIC PT VMs. This patch
removes that condition and exposes virtual topology via CPUID leaf 0xb.

Tracked-On: #3136
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
2019-05-23 11:15:31 +08:00
..
arch/x86 hv: distinguish between LAPIC_PASSTHROUGH configured vs enabled 2019-05-23 11:15:31 +08:00
common hv: implement NEED_SHUTDOWN_VM request to idle thread 2019-05-15 11:20:12 +08:00
debug xHV: remove unused function is_dbg_uart_enabled 2019-05-22 16:36:03 +08:00
dm HV: predefine pci vbar's base address for pre-launched VMs in vm_config 2019-05-22 10:00:15 +08:00
hw HV: move bar emulation initialization code to pci_pt.c 2019-05-20 10:37:13 +08:00
lib hv:move several files related X86 for lib 2019-05-13 10:12:20 +08:00
public hv: add new hypercall to fetch platform configurations 2019-04-15 22:14:13 +08:00