mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-21 20:14:29 +00:00

Add sdei support for QEMU, this is to let jailhouse Hypervisor use SDEI to do hypervisor management, after physical IRQ has been disabled routing. Note: To enable SDEI in QEMU, it needs to set "SDEI_SUPPORT=1 EL3_EXCEPTION_HANDLING=1" when compiling. Signed-off-by: Dongjiu Geng <gengdongjiu1@gmail.com> Change-Id: Ia7f9c5a0db36da03e5c6e6fb1270281f19924d77
30 lines
647 B
C
30 lines
647 B
C
/*
|
|
* Copyright (c) 2023, ARM Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
|
|
/* SDEI configuration for ARM platforms */
|
|
|
|
#include <bl31/ehf.h>
|
|
#include <common/debug.h>
|
|
#include <lib/utils_def.h>
|
|
#include <services/sdei.h>
|
|
#include <platform_def.h>
|
|
|
|
/* Private event mappings */
|
|
static sdei_ev_map_t qemu_sdei_private[] = {
|
|
SDEI_DEFINE_EVENT_0(PLAT_SDEI_SGI_PRIVATE),
|
|
};
|
|
|
|
/* Shared event mappings */
|
|
static sdei_ev_map_t qemu_sdei_shared[] = {
|
|
};
|
|
|
|
void plat_sdei_setup(void)
|
|
{
|
|
INFO("SDEI platform setup\n");
|
|
}
|
|
|
|
/* Export Arm SDEI events */
|
|
REGISTER_SDEI_MAP(qemu_sdei_private, qemu_sdei_shared);
|