[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-discuss] Some questions about live migration support on virtio

From: Greg Kurz
Subject: Re: [Qemu-discuss] Some questions about live migration support on virtio-9p
Date: Wed, 31 Jul 2019 21:07:01 +0200

On Tue, 29 May 2018 08:11:32 +0000
Linzichang <address@hidden> wrote:

> Hi All,
>          I am using virtio 9pfs in guestOS now, and I’m wonder if live 
> migration supports 9pfs in the latest version of Qemu.

No it is not. There's a migration blocker as long as the 9p file system is
mounted in the guest.

> If not, I would be grateful to know exactly why. Is the device state or guest 
> & host shared memory hard to save?

Yes, sort of. First, I/O requests (or PDUs in 9pfs jargon) are serviced by
a thread pool, and we cannot save their state until they have completed.
This means that we must drain all in-flight PDUs. This isn't too hard. Then,
some enhancements are needed on the VMState side to be able to stream 9pfs
internal structures. Not too hard either. Then we begin to enter the ugly.
Mostly special cases, but they are common enough to be addressed:
- unlinked open files: since the path was unlinked, we cannot re-open it on
  the destination. This could be worked around by creating a temporary file
  on the destination and using the open fd we have on the source to copy
  the content of the original file to the temporary one, re-open it and then
  unlink it.
- files opened with O_ECXL: we cannot re-open the file on the target since
  it already exists, and dropping O_ECXL from the file status flags isn't
  really an option. I couldn't come up with a way to address that yet...

My latest try, about 2 years ago, is available here if you want to look:


> Best regards,
> Clare chen



> ________________________________
> 华为技术有限公司 Huawei Technologies Co., Ltd.
> [Company_logo]
> ________________________________
>  本邮件及其附件含有华为公司的保密信息,仅限于发送给上面地址中列出的个人或群组。禁
> 止任何其他人以任何形式使用(包括但不限于全部或部分地泄露、复制、或散发)本邮件中
> 的信息。如果您错收了本邮件,请您立即电话或邮件通知发件人并删除本邮件!
> This e-mail and its attachments contain confidential information from HUAWEI, 
> which
> is intended only for the person or entity whose address is listed above. Any 
> use of the
> information contained herein in any way (including, but not limited to, total 
> or partial
> disclosure, reproduction, or dissemination) by persons other than the intended
> recipient(s) is prohibited. If you receive this e-mail in error, please 
> notify the sender by
> phone or email immediately and delete it!

reply via email to

[Prev in Thread] Current Thread [Next in Thread]