mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-24 10:17:28 +00:00
hv: Introduce Global System Interrupt (GSI) into INTx Remapping
As ACRN prepares to support platforms with multiple IO-APICs, GSI is a better way to represent physical and virtual INTx interrupt source. 1) This patch replaces usage of "pin" with "gsi" whereever applicable across the modules. 2) PIC pin to gsi is trickier and needs to consider the usage of "Interrupt Source Override" structure in ACPI for the corresponding VM. Tracked-On: #4151 Signed-off-by: Sainath Grandhi <sainath.grandhi@intel.com> Acked-by: Eddie Dong <eddie.dong@Intel.com>
This commit is contained in:
committed by
wenlingz
parent
2fe3004202
commit
85217e362f
@@ -616,13 +616,13 @@ static void vuart_deinit_connection(struct acrn_vuart *vu)
|
||||
vu->target_vu = NULL;
|
||||
}
|
||||
|
||||
bool is_vuart_intx(const struct acrn_vm *vm, uint32_t intx_pin)
|
||||
bool is_vuart_intx(const struct acrn_vm *vm, uint32_t intx_gsi)
|
||||
{
|
||||
uint8_t i;
|
||||
bool ret = false;
|
||||
|
||||
for (i = 0U; i < MAX_VUART_NUM_PER_VM; i++) {
|
||||
if ((vm->vuart[i].active) && (vm->vuart[i].irq == intx_pin)) {
|
||||
if ((vm->vuart[i].active) && (vm->vuart[i].irq == intx_gsi)) {
|
||||
ret = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user