mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 17:58:30 +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:
@@ -11,6 +11,7 @@
|
||||
#include <ptdev.h>
|
||||
#include <irq.h>
|
||||
#include <logmsg.h>
|
||||
#include <vtd.h>
|
||||
|
||||
#define PTIRQ_ENTRY_HASHBITS 9U
|
||||
#define PTIRQ_ENTRY_HASHSIZE (1U << PTIRQ_ENTRY_HASHBITS)
|
||||
@@ -127,6 +128,7 @@ struct ptirq_remapping_info *ptirq_alloc_entry(struct acrn_vm *vm, uint32_t intr
|
||||
entry->intr_type = intr_type;
|
||||
entry->vm = vm;
|
||||
entry->intr_count = 0UL;
|
||||
entry->irte_idx = INVALID_IRTE_ID;
|
||||
|
||||
INIT_LIST_HEAD(&entry->softirq_node);
|
||||
|
||||
|
Reference in New Issue
Block a user