From: Steven Sistare <steven.sistare@oracle.com>
To: Eugenio Perez Martin <eperezma@redhat.com>
Cc: virtualization@lists.linux-foundation.org,
linux-kernel@vger.kernel.org,
"Michael S. Tsirkin" <mst@redhat.com>,
Jason Wang <jasowang@redhat.com>,
Si-Wei Liu <si-wei.liu@oracle.com>,
Xie Yongji <xieyongji@bytedance.com>,
Stefano Garzarella <sgarzare@redhat.com>
Subject: Re: [PATCH V2 1/3] vhost-vdpa: flush workers on suspend
Date: Wed, 14 Feb 2024 12:48:09 -0500 [thread overview]
Message-ID: <9250d604-61d9-4fad-a83c-719851980ba0@oracle.com> (raw)
In-Reply-To: <CAJaqyWdOYHA21A2JUwnTmWfSro7H0ZTTTkkH7Ot9F8hwK+TKXw@mail.gmail.com>
On 2/13/2024 10:58 AM, Eugenio Perez Martin wrote:
> On Mon, Feb 12, 2024 at 6:16 PM Steve Sistare <steven.sistare@oracle.com> wrote:
>>
>> Flush to guarantee no workers are running when suspend returns.
>>
>> Signed-off-by: Steve Sistare <steven.sistare@oracle.com>
>
> Acked-by: Eugenio Pérez <eperezma@redhat.com>
>
> Should this have a Fixes tag?
Sure, I will add:
Fixes: f345a0143b4d ("vhost-vdpa: uAPI to suspend the device")
- Steve
>> ---
>> drivers/vhost/vdpa.c | 3 +++
>> 1 file changed, 3 insertions(+)
>>
>> diff --git a/drivers/vhost/vdpa.c b/drivers/vhost/vdpa.c
>> index bc4a51e4638b..a3b986c24805 100644
>> --- a/drivers/vhost/vdpa.c
>> +++ b/drivers/vhost/vdpa.c
>> @@ -594,10 +594,13 @@ static long vhost_vdpa_suspend(struct vhost_vdpa *v)
>> struct vdpa_device *vdpa = v->vdpa;
>> const struct vdpa_config_ops *ops = vdpa->config;
>> int ret;
>> + struct vhost_dev *vdev = &v->vdev;
>>
>> if (!ops->suspend)
>> return -EOPNOTSUPP;
>>
>> + vhost_dev_flush(vdev);
>> +
>> ret = ops->suspend(vdpa);
>> if (!ret)
>> v->suspended = true;
>> --
>> 2.39.3
>>
>
next prev parent reply other threads:[~2024-02-14 17:48 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-02-12 17:16 [PATCH V2 0/3] flush workers on suspend Steve Sistare
2024-02-12 17:16 ` [PATCH V2 1/3] vhost-vdpa: " Steve Sistare
2024-02-13 15:58 ` Eugenio Perez Martin
2024-02-14 17:48 ` Steven Sistare [this message]
2024-02-12 17:16 ` [PATCH V2 2/3] vduse: suspend Steve Sistare
2024-02-12 17:16 ` [PATCH V2 3/3] vdpa_sim: flush workers on suspend Steve Sistare
2024-02-13 16:10 ` Eugenio Perez Martin
2024-02-14 17:50 ` Steven Sistare
2024-02-14 19:39 ` Eugenio Perez Martin
2024-02-14 19:52 ` Steven Sistare
2024-02-15 15:44 ` Eugenio Perez Martin
2024-02-16 15:15 ` Steven Sistare
2024-02-13 15:10 ` [PATCH V2 0/3] " Steven Sistare
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=9250d604-61d9-4fad-a83c-719851980ba0@oracle.com \
--to=steven.sistare@oracle.com \
--cc=eperezma@redhat.com \
--cc=jasowang@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mst@redhat.com \
--cc=sgarzare@redhat.com \
--cc=si-wei.liu@oracle.com \
--cc=virtualization@lists.linux-foundation.org \
--cc=xieyongji@bytedance.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox