[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-discuss] Some questions about live migration support on virtio
Re: [Qemu-discuss] Some questions about live migration support on virtio-9p
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
- 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.
> This e-mail and its attachments contain confidential information from HUAWEI,
> 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!
|[Prev in Thread]
||[Next in Thread]|
- Re: [Qemu-discuss] Some questions about live migration support on virtio-9p,
Greg Kurz <=