virtio: modify vring_init and vring_size to take account of the layout containing *_event_idx
Based on the layout description in the comments, take account of the *_event_idx in functions vring_init and vring_size. Signed-off-by: NWang Sheng-Hui <shhuiw@gmail.com> Signed-off-by: NRusty Russell <rusty@rustcorp.com.au>
Showing
想要评论请 注册 或 登录