lkml.org 
[lkml]   [2022]   [May]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] virtio_balloon: check virtqueue_add_outbuf() return value
Date
Adding this patch can avoid unnecessary VM exits and reduce the number of VM exits

-----邮件原件-----
发件人: Michael S. Tsirkin <mst@redhat.com>
发送时间: 2022年5月27日 18:58
收件人: Bo Liu (刘波)-浪潮信息 <liubo03@inspur.com>
抄送: david@redhat.com; jasowang@redhat.com; virtualization@lists.linux-foundation.org; linux-kernel@vger.kernel.org
主题: Re: [PATCH] virtio_balloon: check virtqueue_add_outbuf() return value

On Fri, May 27, 2022 at 10:43:30AM +0000, Bo Liu (刘波)-浪潮信息 wrote:
> The purpose of this patch is, virtqueue_add_outbuf() adding data to
> virtqueue may succeed or fail. If successful, it will call
> virtqueue_kick() to notifie the host backend driver, but if the
> virtqueue_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

[unhandled content-type:application/pkcs7-signature]
\
 
 \ /
  Last update: 2022-05-30 04:17    [W:0.041 / U:1.440 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site