acrn-hypervisor/hypervisor/include
Conghui Chen ac6c5dce81 HV: Clean vpic and vioapic logic when lapic is pt
When the lapic is passthru, vpic and vioapic cannot be used anymore. In
current code, user can still inject vpic interrupt to Guest OS, this is
not allowed.
This patch remove the vpic and vioapic initiate functions during
creating VM with lapic passthru. But the APIs in vpic and vioapic are
called in many places, for these APIs, follow the below principles:

1. For the APIs which will access uninitiated variables, and may case
hypervisor hang, add @pre to make sure user should call them after vpic or
vioapic is initiated.

2. For the APIs which only return some static value, do noting with them.

3. For the APIs which user will called to inject interrupt, such as
vioapic_set_irqline_lock or vpic_set_irqline, add condition in these
APIs to make sure it only inject interrupt when vpic or vioapic is
initiated. This change is to make sure the vuart or hypercall need not
to care whether lapic is passthru or the vpic and vioapic is initiated
or not.

Tracked-On: #3227
Signed-off-by: Conghui Chen <conghui.chen@intel.com>
2019-06-12 14:29:50 +08:00
..
arch/x86 HV: introduce relative vm id for hcall api 2019-06-12 11:00:40 +08:00
common hv: Remove unused variable in ptirq_msi_info 2019-05-31 12:31:52 +08:00
debug xHV: remove unused function is_dbg_uart_enabled 2019-05-22 16:36:03 +08:00
dm HV: Clean vpic and vioapic logic when lapic is pt 2019-06-12 14:29:50 +08:00
hw HV: remove function pci_pdev_foreach() 2019-05-23 14:06:51 +08:00
lib hv:move several files related X86 for lib 2019-05-13 10:12:20 +08:00
public DM/HV: Increase VM name len 2019-05-27 12:13:51 +08:00