Received: from eggs.gnu.org ([2001:4830:134:3::10]:57567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0sWC-00056S-9R for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:55:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a0sUl-0003nq-Sg for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:55:00 -0500 Received: from mx5-phx2.redhat.com ([209.132.183.37]:43880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a0sUl-0003nl-I2 for qemu-devel@nongnu.org; Mon, 23 Nov 2015 09:53:31 -0500 Date: Mon, 23 Nov 2015 09:53:26 -0500 (EST) From: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Message-ID: <1051241523.15423297.1448290406693.JavaMail.zimbra@redhat.com> In-Reply-To: <87mvu4srid.fsf@blackfin.pond.sub.org> References: <87si401wpf.fsf@blackfin.pond.sub.org> <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> <560475200.15358637.1448288207922.JavaMail.zimbra@redhat.com> <87mvu4srid.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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 ----- Original Message ----- > Marc-Andr=C3=A9 Lureau writes: >=20 > > Hi > > > > ----- Original Message ----- > >> > > >> > You can't migrate the peers. > >>=20 > >> Then explain the case N'=3D0 to me: how can you migrate the master so = that > >> it's connected to a server afterwards? > > > > Dest qemu: -incoming.. -chardev socket,path=3Ddest-server > > > > That is, start your destination qemu with a destination server. The mas= ter > > origin qemu will migrate the shared memory, and the dest memory will be > > sync > > when the migration is done. >=20 > Got it! >=20 > >> > It works fine in the tests. Feel free to point out races or other > >> > issues. > >>=20 > >> I think I did: doorbell detection is inherently racy. > >>=20 > >> 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. >=20 > That's not a complete answer, so let me try a different tack. >=20 > What value will a read of register IVPosition yield >=20 > * if the device has no doorbell: >=20 > I think the answer is -1. >=20 > * if the device has a doorbell, but it isn't ready, yet: >=20 > I think the answer is -1. >=20 > * if the device has a doorbell, and it is ready. >=20 > This is the part you answered already: >=3D 0. >=20 > Please correct mistakes. >=20 Yes, I think it's correct. Arbitrary informations can be then shared via th= e shared memory (to say whether a doorbell will be present for ex).