This adds API sdei_event_get_info(), to be used when virtualized SDEI is supported to retrieve the information about the specified event. Signed-off-by: Gavin Shan <gshan@xxxxxxxxxx> --- drivers/firmware/arm_sdei.c | 13 +++++++++++++ include/linux/arm_sdei.h | 2 ++ 2 files changed, 15 insertions(+) diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c index 3b34501610f9..6bc84ab317d3 100644 --- a/drivers/firmware/arm_sdei.c +++ b/drivers/firmware/arm_sdei.c @@ -191,6 +191,19 @@ static int sdei_api_event_get_info(u32 event, u32 info, u64 *result) 0, 0, result); } +int sdei_event_get_info(u32 event_num, u32 info, u64 *result) +{ + int err; + + mutex_lock(&sdei_events_lock); + + err = sdei_api_event_get_info(event_num, info, result); + + mutex_unlock(&sdei_events_lock); + + return err; +} + static struct sdei_internal_event *sdei_event_create(u32 event_num, sdei_event_callback *cb, void *cb_arg) diff --git a/include/linux/arm_sdei.h b/include/linux/arm_sdei.h index 447fe4ae8d8b..28d5d5853314 100644 --- a/include/linux/arm_sdei.h +++ b/include/linux/arm_sdei.h @@ -29,6 +29,8 @@ struct sdei_event { u8 signaled; }; +int sdei_event_get_info(u32 event_num, u32 info, u64 *result); + /* * Register your callback to claim an event. The event must be described * by firmware. -- 2.23.0 _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm