From: "Daniel P. Berrangé" <berrange@redhat.com>
To: Andrey Ryabinin <arbn@yandex-team.com>
Cc: qemu-devel@nongnu.org,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Juan Quintela" <quintela@redhat.com>,
"Dr. David Alan Gilbert" <dgilbert@redhat.com>,
"Jason Wang" <jasowang@redhat.com>,
"Stefan Hajnoczi" <stefanha@redhat.com>,
yc-core@yandex-team.ru
Subject: Re: [PATCH 0/2] Make local migration with TAP network device possible
Date: Tue, 14 Jun 2022 12:32:22 +0100 [thread overview]
Message-ID: <Yqhxxs6x2sVLlTWk@redhat.com> (raw)
In-Reply-To: <20220614111843.24960-1-arbn@yandex-team.com>
On Tue, Jun 14, 2022 at 02:18:41PM +0300, Andrey Ryabinin wrote:
> Hi
>
> These couple patches aims to make possible local migration (within one host)
> on the same TAP device used by source and destination QEMU
>
> The scenario looks like this
> 1. Create TAP devices and pass file descriptors to source QEMU
> 2. Launch destination QEMU (-incoming defer) and pass same descriptors to it.
> 3. Start migration
>
>
> Regarding the first patch: It makes possible to receive file descriptor in non-blocking
> state. But I probably didn't cover all FD users which might need to set blocking state after
> the patch. So I'm hopping for the hints where else, besides fd_start_incoming_migration()
> I need to put qemu_socket_set_block() calls.
You'll need to check all callers of
qio_channel_readv_full
qio_channel_readv_full_all
qio_channel_readv_full_all_eof
and identify which pass a non-NULL parameter for 'fds'. If the caller
does NOT have a qemu_setnonblock call on the FD it gets back, then you
have to assume it is expecting it in blocking mode and so need to
add qemu_setblock
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
next prev parent reply other threads:[~2022-06-14 11:35 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-14 11:18 [PATCH 0/2] Make local migration with TAP network device possible Andrey Ryabinin
2022-06-14 11:18 ` [PATCH 1/2] chardev: don't set O_NONBLOCK on SCM_RIGHTS file descriptors Andrey Ryabinin
2022-06-15 13:12 ` Stefan Hajnoczi
2022-06-24 11:00 ` Andrey Ryabinin
2022-06-24 11:34 ` Daniel P. Berrangé
2022-06-14 11:21 ` [PATCH 2/2] tap: initialize TAPState->enabled according to the actual state of queue Andrey Ryabinin
2022-06-28 4:15 ` Jason Wang
2022-06-14 11:32 ` Daniel P. Berrangé [this message]
2022-06-15 13:10 ` [PATCH 0/2] Make local migration with TAP network device possible Stefan Hajnoczi
2022-06-24 10:53 ` Andrey Ryabinin
2022-06-24 11:45 ` 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=Yqhxxs6x2sVLlTWk@redhat.com \
--to=berrange@redhat.com \
--cc=arbn@yandex-team.com \
--cc=dgilbert@redhat.com \
--cc=jasowang@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=stefanha@redhat.com \
--cc=yc-core@yandex-team.ru \
/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;
as well as URLs for NNTP newsgroup(s).