hv: add INTx mapping for pre-launched VMs

Add the capability of forwarding specified physical IOAPIC interrupt
lines to pre-launched VMs as virtual IOAPIC interrupts. This is for the
sake of the certain MMIO pass-thru devices on EHL CRB which can support
only INTx interrupts.

Tracked-On: #5245

Signed-off-by: Toshiki Nishioka <toshiki.nishioka@intel.com>
Reviewed-by: Junjie Mao <junjie.mao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Nishioka, Toshiki
2020-08-25 14:34:52 +09:00
committed by wenlingz
parent 871a662a6c
commit ba99984f69
3 changed files with 42 additions and 0 deletions

View File

@@ -141,6 +141,20 @@ void ptirq_remove_intx_remapping(const struct acrn_vm *vm, uint32_t virt_gsi, bo
*/
void ptirq_remove_msix_remapping(const struct acrn_vm *vm, uint16_t phys_bdf, uint32_t vector_count);
/**
* @brief Remove all interrupt remappings for INTx which are defined in VM config.
*
* Deactivate & remove all mapping entries of the virt_gsis defined in VM config for given vm.
*
* @param[in] vm pointer to acrn_vm
*
* @return None
*
* @pre vm != NULL
*
*/
void ptirq_remove_configured_intx_remappings(const struct acrn_vm *vm);
/**
* @}
*/