Received: from eggs.gnu.org ([2001:4830:134:3::10]:47883) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0rvW-0002Oi-50 for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:17:06 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0rvR-0003bj-54 for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:17:06 -0500 Received: from mx6-phx2.redhat.com ([209.132.183.39]:52750) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0rvQ-0003bd-Ty for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:17:01 -0500 Date: Mon, 23 Nov 2015 09:16:47 -0500 (EST) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <560475200.15358637.1448288207922.JavaMail.zimbra@redhat.com> In-Reply-To: <87610sx0zd.fsf@blackfin.pond.sub.org> References: <87si401wpf.fsf@blackfin.pond.sub.org> <874mggo3yc.fsf@blackfin.pond.sub.org> <243512039.12566588.1448050691647.JavaMail.zimbra@redhat.com> <87oael587p.fsf@blackfin.pond.sub.org> <802808837.15238786.1448280956337.JavaMail.zimbra@redhat.com> <87r3jg26fw.fsf@blackfin.pond.sub.org> <1032710289.15307566.1448286512454.JavaMail.zimbra@redhat.com> <87610sx0zd.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] ivshmem property size should be a size, not a string List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: marcandre lureau , Claudio Fontana , qemu-devel@nongnu.org, Luiz Capitulino Hi ----- Original Message ----- > > > > You can't migrate the peers. > > Then explain the case N'=0 to me: how can you migrate the master so that > it's connected to a server afterwards? Dest qemu: -incoming.. -chardev socket,path=dest-server That is, start your destination qemu with a destination server. The master origin qemu will migrate the shared memory, and the dest memory will be sync when the migration is done. > > It works fine in the tests. Feel free to point out races or other issues. > > I think I did: doorbell detection is inherently racy. > > If you think it isn't, please refute my reasoning. I gave you some clues on how I did it in ivshmem-test.c: waiting for a signature on the memory to be mapped (and also checking that peers received ids) > If it's not broken, please explain to me how the guest should find out > whether its ivshmem device sports a doorbell. If you have received ID, you should be good to use the doorbell.