mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
hv: ptirq: associate an irte with ptirq_remapping_info entry
For a ptirq_remapping_info entry, when build IRTE: - If the caller provides a valid IRTE, use the IRET - If the caller doesn't provide a valid IRTE, allocate a IRET when the entry doesn't have a valid IRTE, in this case, the IRET will be freed when free the entry. Tracked-On:#4831 Signed-off-by: Binbin Wu <binbin.wu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -50,6 +50,7 @@ void ptirq_intx_ack(struct acrn_vm *vm, uint32_t virt_gsi, enum intx_ctlr vgsi_c
|
||||
* @param[in] phys_bdf virtual bdf associated with the passthrough device
|
||||
* @param[in] entry_nr indicate coming vectors, entry_nr = 0 means first vector
|
||||
* @param[in] info structure used for MSI/MSI-x remapping
|
||||
* @param[in] irte_idx caller can pass a valid IRTE index, otherwise, use INVALID_IRTE_ID
|
||||
*
|
||||
* @return
|
||||
* - 0: on success
|
||||
@@ -62,7 +63,7 @@ void ptirq_intx_ack(struct acrn_vm *vm, uint32_t virt_gsi, enum intx_ctlr vgsi_c
|
||||
*
|
||||
*/
|
||||
int32_t ptirq_prepare_msix_remap(struct acrn_vm *vm, uint16_t virt_bdf, uint16_t phys_bdf,
|
||||
uint16_t entry_nr, struct msi_info *info);
|
||||
uint16_t entry_nr, struct msi_info *info, uint16_t irte_idx);
|
||||
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user