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:
Sainath Grandhi
2020-03-11 13:03:43 -07:00
committed by wenlingz
parent 2fe3004202
commit 85217e362f
12 changed files with 198 additions and 128 deletions

View File

@@ -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;
}
}