virtio_balloon: check virtqueue_add_outbuf() return value
Adding this patch can avoid unnecessary VM exits and reduce the number of VM exits
-----邮件原件-----
发件人: Michael S. Tsirkin <[email protected]>
发送时间: 2022年5月27日 18:58
收件人: Bo Liu (刘波)-浪潮信息 <[email protected]>
抄送: [email protected]; [email protected]; [email protected]; [email protected] 主题: Re: [PATCH] virtio_balloon: check virtqueue_add_outbuf() return value
Quoted 7 lines · Bo Liu (刘波)-浪潮信息
The purpose of this patch is,
virtqueue_add_outbuf()adding data to virtqueue may succeed or fail. If successful, it will callvirtqueue_kick()to notifie the host backend driver, but if thevirtqueue_add_outbuf()fails, the data is not successfully added to
the virtqueue, and the host back-end driver does not need to be notified for processing.Thanks.
Why is it a problem if we do?
--
MST
Quoted 2 lines · Bo Liu (刘波)-浪潮信息
Adding this patch can avoid unnecessary VM exits and reduce the number of VM exits
... in corner cases where virtqueue_add_outbuf() fails? Why do we care about that corner case?
Looks like unnecessary code churn to me, unless I am missing something important.
Signature · 8 lines
Thanks, David / dhildenb _______________________________________________ Virtualization mailing list [email protected] https://lists.linuxfoundation.org/mailman/listinfo/virtualization