This defines the struct for ACPI APF table. The information included in this table will be used by guest kernel to retrieve SDEI event number, PPI number and its triggering properties: * @sdei_event: number of SDEI event used for page-not-present * @interrupt: PPI used for page-ready * @interrupt_flags: PPI's mode and polarity Signed-off-by: Gavin Shan <gshan@xxxxxxxxxx> --- include/acpi/actbl2.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/include/acpi/actbl2.h b/include/acpi/actbl2.h index ec66779cb193..2eb715f4463b 100644 --- a/include/acpi/actbl2.h +++ b/include/acpi/actbl2.h @@ -44,6 +44,7 @@ #define ACPI_SIG_SDEI "SDEI" /* Software Delegated Exception Interface Table */ #define ACPI_SIG_SDEV "SDEV" /* Secure Devices table */ #define ACPI_SIG_NHLT "NHLT" /* Non-HDAudio Link Table */ +#define ACPI_SIG_APFT "APFT" /* Asynchronous Page Fault Table */ /* * All tables must be byte-packed to match the ACPI specification, since @@ -1737,6 +1738,23 @@ struct acpi_sdev_pcie_path { u8 function; }; +/******************************************************************************* + * + * APFT - Asynchronous Page Fault Table + * + * Customized table used for asynchronous page fault on ARM + * + ******************************************************************************/ +struct acpi_table_apft { + struct acpi_table_header header; + u32 sdei_event; + u32 interrupt; + u32 interrupt_flags; +}; + +#define ACPI_APFT_INTERRUPT_MODE (1) +#define ACPI_APFT_INTERRUPT_POLARITY (1<<1) + /* Reset to default packing */ #pragma pack() -- 2.23.0 _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm