Return-Path: Message-ID: Date: Tue, 9 May 2023 11:01:27 +0200 MIME-Version: 1.0 References: <20230412210641.GC2813183@fedora> <20230417153810.GE3852722@fedora> <20230418175924.GB4041499@fedora> <20230508191235.GA926999@fedora> From: Hanna Czenczek In-Reply-To: Content-Language: en-US Content-Type: text/plain; charset="utf-8"; format="flowed" Content-Transfer-Encoding: 8bit Subject: Re: [Virtio-fs] [PATCH 2/4] vhost-user: Interface for migration state transfer List-Id: Development discussions about virtio-fs List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eugenio Perez Martin , Stefan Hajnoczi Cc: Stefan Hajnoczi , qemu-devel@nongnu.org, virtio-fs@redhat.com, German Maglione , Anton Kuchin , Juan Quintela , "Michael S . Tsirkin" , Stefano Garzarella On 09.05.23 08:31, Eugenio Perez Martin wrote: > On Mon, May 8, 2023 at 9:12 PM Stefan Hajnoczi wrote: [...] >> VHOST_USER_GET_VRING_BASE itself isn't really enough because it stops a >> specific virtqueue but not the whole device. Unfortunately stopping all >> virtqueues is not the same as SUSPEND since spontaneous device activity >> is possible independent of any virtqueue (e.g. virtio-scsi events and >> maybe virtio-net link status). >> >> That's why I think SUSPEND is necessary for a solution that's generic >> enough to cover all device types. >> > I agree. > > In particular virtiofsd is already resetting all the device at > VHOST_USER_GET_VRING_BASE if I'm not wrong, so that's even more of a > reason to implement suspend call. Oh, no, just the vring in question.  Not the whole device. In addition, we still need the GET_VRING_BASE call anyway, because, well, we want to restore the vring on the destination via SET_VRING_BASE. Hanna