acrn-hypervisor/hypervisor/common
Sainath Grandhi 7d44cd5c28 hv: Introduce check_vm_vlapic_state API
This patch introduces check_vm_vlapic_state API instead of is_lapic_pt_enabled
to check if all the vCPUs of a VM are using x2APIC mode and LAPIC
pass-through is enabled on all of them.

When the VM is in VM_VLAPIC_TRANSITION or VM_VLAPIC_DISABLED state,
following conditions apply.
1) For pass-thru MSI interrupts, interrupt source is not programmed.
2) For DM emulated device MSI interrupts, interrupt is not delivered.
3) For IPIs, it will work only if the sender and destination are both in x2APIC mode.

Tracked-On: #3253
Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2019-06-14 13:55:26 +08:00
..
hv_main.c hv: Introduce check_vm_vlapic_state API 2019-06-14 13:55:26 +08:00
hypercall.c hv: Introduce check_vm_vlapic_state API 2019-06-14 13:55:26 +08:00
ptdev.c hv: release IOMMU irte when releasing ptirq remapping entries 2019-05-06 18:25:37 +08:00
schedule.c HV: remove one lock for ctx->flags operation. 2019-05-22 16:35:26 +08:00
softirq.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
stack_protector.c hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
trusty_hypercall.c hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
vm_load.c HV: misra fix for patch set of Zephyr enabling 2019-06-06 09:40:52 +08:00