From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43549) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOudY-0005m7-D5 for qemu-devel@nongnu.org; Tue, 02 Sep 2014 16:25:12 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XOudT-000541-Vz for qemu-devel@nongnu.org; Tue, 02 Sep 2014 16:25:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:43551) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XOudT-00053O-P9 for qemu-devel@nongnu.org; Tue, 02 Sep 2014 16:25:03 -0400 Message-ID: <54062796.7090109@redhat.com> Date: Tue, 02 Sep 2014 14:24:54 -0600 From: Eric Blake MIME-Version: 1.0 References: <1409671532-12706-1-git-send-email-david.marchand@6wind.com> <1409671532-12706-3-git-send-email-david.marchand@6wind.com> In-Reply-To: <1409671532-12706-3-git-send-email-david.marchand@6wind.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="qt5Jolc4A0Nd9G3VvmsniU6aBhPwC0LNA" Subject: Re: [Qemu-devel] [PATCH v4 02/14] docs: update ivshmem device spec List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: David Marchand , qemu-devel@nongnu.org Cc: kvm@vger.kernel.org, stefanha@gmail.com, claudio.fontana@huawei.com, armbru@redhat.com, arei.gonglei@huawei.com, pbonzini@redhat.com, jani.kokkonen@huawei.com, cam@cs.ualberta.ca This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --qt5Jolc4A0Nd9G3VvmsniU6aBhPwC0LNA Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 09/02/2014 09:25 AM, David Marchand wrote: > Add some notes on the parts needed to use ivshmem devices: more specifi= cally, > explain the purpose of an ivshmem server and the basic concept to use t= he > ivshmem devices in guests. > Move some parts of the documentation and re-organise it. >=20 > Signed-off-by: David Marchand > Reviewed-by: Claudio Fontana > --- > docs/specs/ivshmem_device_spec.txt | 124 +++++++++++++++++++++++++++-= -------- > 1 file changed, 93 insertions(+), 31 deletions(-) >=20 > =20 > -The device currently supports 4 registers of 32-bits each. Registers > -are used for synchronization between guests sharing the same memory ob= ject when > -interrupts are supported (this requires using the shared memory server= ). > +The server must be started on the host before any guest. > +It creates a shared memory object then waits for clients to connect on= an unix > +socket. s/an unix/a unix/ > =20 > -The server assigns each VM an ID number and sends this ID number to th= e QEMU > -process when the guest starts. > +For each client (QEMU processes) that connects to the server: s/processes/process/ > +The client IDs are limited to 16 bits because of the current implement= ation (see > +Doorbell register in 'PCI device registers' subsection). Hence on 6553= 6 clients s/on/only/ > +At initialisation, when creating the ivshmem device, QEMU gets its ID = from the > +server then make it available through BAR0 IVPosition register for the= VM to use s/make/makes/ --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --qt5Jolc4A0Nd9G3VvmsniU6aBhPwC0LNA Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg iQEcBAEBCAAGBQJUBieWAAoJEKeha0olJ0NqhIwIAIHth8d9TZ/mNbxq1T5VnDu+ 3Q2ltEaP2SyH9hWbAnIlwhJ6wwzeDl5SSV0/E0ZEnKyjUb+JjPhk3j7EQMvqEXEH osi76zJDngAMaZyjthC+wkIC14wyB+RmuXNnocw34mX9/LWAR7afB0SfSkkRx4VZ ooiJovKNiPWMEKJTGCKOm2qxQWgR8Mc9TBKWD0tb0UmuKoR05k7/AdexkVcF5B9p 5BNK15h8Pyen8WTbzEgraK11i3UhMuTie3ofeHKHhv1HikTl+/jvivLqMVeVYVOI hGcXTUCSgJpj5HiTIgeFzS59xN1YvLXBMsB38EPwfKyx8vt6DUmn3WdRXi4i9cU= =ngqb -----END PGP SIGNATURE----- --qt5Jolc4A0Nd9G3VvmsniU6aBhPwC0LNA--