mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-23 09:47:44 +00:00
hv: pirq: do not indicate priority when allocate vector
It's not necessary to specify priority for dynamic allocated vector, because nested irq is not supported on HV, and irq of any priority would cause VM exit. This commit makes the following changes: - remove the argument indicating priority in struct irq_request_info and following functions: ptdev_activate_entry() find_available_vector() irq_desc_alloc_vector() normal_register_handler() - change the macro of vector ranges: VECTOR_DYNAMIC_START/END for dynamically allocable vectors; VECTOR_FIXED_START/END for fixed allocated vectors, such as vector for timer etc. Signed-off-by: Yan, Like <like.yan@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -129,14 +129,13 @@ static int ptdev_interrupt_handler(__unused int irq, void *data)
|
||||
|
||||
/* active intr with irq registering */
|
||||
void
|
||||
ptdev_activate_entry(struct ptdev_remapping_info *entry, uint32_t phys_irq,
|
||||
bool lowpri)
|
||||
ptdev_activate_entry(struct ptdev_remapping_info *entry, uint32_t phys_irq)
|
||||
{
|
||||
struct dev_handler_node *node;
|
||||
|
||||
/* register and allocate host vector/irq */
|
||||
node = normal_register_handler(phys_irq, ptdev_interrupt_handler,
|
||||
(void *)entry, true, lowpri, "dev assign");
|
||||
(void *)entry, true, "dev assign");
|
||||
|
||||
ASSERT(node != NULL, "dev register failed");
|
||||
entry->node = node;
|
||||
|
Reference in New Issue
Block a user