All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
To: Vivek Goyal <vgoyal@redhat.com>
Cc: "virtio-fs@redhat.com" <virtio-fs@redhat.com>,
	"Ge, Xiongzi" <Xiongzi.Ge@netapp.com>
Subject: Re: [Virtio-fs] Live migration support for virtio-fs
Date: Tue, 23 Mar 2021 15:00:52 +0000	[thread overview]
Message-ID: <YFoCpIh5PCSP6gXB@work-vm> (raw)
In-Reply-To: <20210323145312.GB483930@redhat.com>

* Vivek Goyal (vgoyal@redhat.com) wrote:
> On Tue, Mar 23, 2021 at 10:29:09AM +0000, Dr. David Alan Gilbert wrote:
> > * Ge, Xiongzi (Xiongzi.Ge@netapp.com) wrote:
> > > Hello Vivek, Dr. Gilbert, and the virtio-fs team,
> > 
> > Hi Xiongzi,
> > 
> > > It seems that virtio-fs does not support live migration. Once a vm
> > > is configured with virtio-fs, live migration cannot be performed even
> > > it is not mounted on the guest.
> > 
> > Right.
> > 
> > > Is there any progress for this?
> > 
> > Max Reitz is looking at some parts of it; in particular storing file
> > handles that can later be reopened.
> > But there are a bunch of other parts we've not looked at yet either
> > (like the dirty page marking around all syscalls).
> > 
> > > If the
> > > shared directory is from a distributed file system like Ceph, would it
> > > be easier than the general case to be implemented?
> > 
> > Maybe; there are some tricky semantics problems; for example, lets
> > imagine that you open the file   'a/b/c'  on the source, and sometime
> > after you open it, 'b' gets renamed to 'd';  when you resume on the
> > destination you need to make sure you know how to get to that file.
> > Depending on the filesystem semantics you might need to make that work
> > even if 'a/b/c' had been deleted but you still had it open.
> 
> Hi Dave,
> 
> I am assuming that with file handles, renaming of file probably is not
> a problem. open_by_handle_at() will still be able to find it.

Right; although again with soemthing like CEPH you might not even need
that if you had a virtiofs daemon that spoke direct to CEPH, you might
be dealing with a CEPH filehandle.

> I think real problem (as you pointed out later) is unliked file which is
> still in use by the virtiofsd.

Dave

> Thanks
> Vivek
-- 
Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK


  reply	other threads:[~2021-03-23 15:00 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-23  1:35 [Virtio-fs] Live migration support for virtio-fs Ge, Xiongzi
2021-03-23  9:02 ` Greg Kurz
2021-03-23 10:29 ` Dr. David Alan Gilbert
2021-03-23 14:53   ` Vivek Goyal
2021-03-23 15:00     ` Dr. David Alan Gilbert [this message]
2021-04-07 18:05       ` Ge, Xiongzi
2021-04-07 18:05         ` Ge, Xiongzi
2021-04-08 16:20         ` [Virtio-fs] " Stefan Hajnoczi
2021-04-08 16:20           ` Stefan Hajnoczi
2021-05-03 12:50           ` Ge, Xiongzi
2021-05-03 12:50             ` Ge, Xiongzi
2021-05-03 13:07             ` Vivek Goyal
2021-05-03 13:07               ` Vivek Goyal
2021-03-23 13:33 ` Stefan Hajnoczi

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=YFoCpIh5PCSP6gXB@work-vm \
    --to=dgilbert@redhat.com \
    --cc=Xiongzi.Ge@netapp.com \
    --cc=vgoyal@redhat.com \
    --cc=virtio-fs@redhat.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.