From f3f1dde39b1f78fdc73bb3943aacb592c6e86314 Mon Sep 17 00:00:00 2001 From: Xiang Xiao Date: Tue, 23 Aug 2022 04:17:46 +0800 Subject: [PATCH] arch/sim: Assign virtio vring notifyid to RSC_NOTIFY_ID_ANY let framework allocate the unique id for us instead Signed-off-by: Xiang Xiao --- arch/sim/src/sim/up_rptun.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/arch/sim/src/sim/up_rptun.c b/arch/sim/src/sim/up_rptun.c index d5a7452426..5eb954d97d 100644 --- a/arch/sim/src/sim/up_rptun.c +++ b/arch/sim/src/sim/up_rptun.c @@ -115,8 +115,10 @@ sim_rptun_get_resource(struct rptun_dev_s *dev) rsc->rpmsg_vdev.num_of_vrings = 2; rsc->rpmsg_vring0.align = 8; rsc->rpmsg_vring0.num = 8; + rsc->rpmsg_vring0.notifyid = RSC_NOTIFY_ID_ANY; rsc->rpmsg_vring1.align = 8; rsc->rpmsg_vring1.num = 8; + rsc->rpmsg_vring1.notifyid = RSC_NOTIFY_ID_ANY; rsc->config.r2h_buf_size = 0x800; rsc->config.h2r_buf_size = 0x800;