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

@@ -25,7 +25,7 @@ enum intx_ctlr {
union source_id (name) = {.msi_id = {.bdf = (a), .entry_nr = (b)} }
#define DEFINE_INTX_SID(name, a, b) \
union source_id (name) = {.intx_id = {.pin = (a), .ctlr = (b)} }
union source_id (name) = {.intx_id = {.gsi = (a), .ctlr = (b)} }
union irte_index {
uint16_t index;
@@ -49,7 +49,7 @@ union source_id {
*/
struct {
enum intx_ctlr ctlr;
uint32_t pin;
uint32_t gsi;
} intx_id;
};