This retrieves the event signaled property when it's created for the first time. The property will be needed when SDEI virtualization is supported. Signed-off-by: Gavin Shan <gshan@xxxxxxxxxx> --- drivers/firmware/arm_sdei.c | 6 ++++++ include/linux/arm_sdei.h | 1 + 2 files changed, 7 insertions(+) diff --git a/drivers/firmware/arm_sdei.c b/drivers/firmware/arm_sdei.c index 9c7a6a7c9527..3b34501610f9 100644 --- a/drivers/firmware/arm_sdei.c +++ b/drivers/firmware/arm_sdei.c @@ -225,6 +225,12 @@ static struct sdei_internal_event *sdei_event_create(u32 event_num, goto fail; event->type = result; + err = sdei_api_event_get_info(event_num, SDEI_EVENT_INFO_EV_SIGNALED, + &result); + if (err) + goto fail; + event->signaled = result; + if (event->type == SDEI_EVENT_TYPE_SHARED) { reg = kzalloc(sizeof(*reg), GFP_KERNEL); if (!reg) { diff --git a/include/linux/arm_sdei.h b/include/linux/arm_sdei.h index 2723a99937f3..447fe4ae8d8b 100644 --- a/include/linux/arm_sdei.h +++ b/include/linux/arm_sdei.h @@ -26,6 +26,7 @@ struct sdei_event { u32 event_num; u8 type; u8 priority; + u8 signaled; }; /* -- 2.23.0 _______________________________________________ kvmarm mailing list kvmarm@xxxxxxxxxxxxxxxxxxxxx https://lists.cs.columbia.edu/mailman/listinfo/kvmarm