Received: from eggs.gnu.org ([2001:4830:134:3::10]:44184) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPQaH-0000sn-Pc for qemu-devel@nongnu.org; Tue, 19 Jul 2016 04:40:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bPQaC-0004kI-NB for qemu-devel@nongnu.org; Tue, 19 Jul 2016 04:40:57 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bPQaC-0004jz-FZ for qemu-devel@nongnu.org; Tue, 19 Jul 2016 04:40:52 -0400 Date: Tue, 19 Jul 2016 09:40:44 +0100 From: Stefan Hajnoczi Message-ID: <20160719084044.GC29459@stefanha-x1.localdomain> References: <1467111824-11548-1-git-send-email-c.pinto@virtualopensystems.com> <1467111824-11548-3-git-send-email-c.pinto@virtualopensystems.com> <20160714121702.GW15476@stefanha-x1.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="f+W+jCU1fRNres8c" Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] [virtio-dev][RFC v2 2/2] virtio-sdm: new device specification List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Pinto Cc: Stefan Hajnoczi , virtio-dev@lists.oasis-open.org, Baptiste Reynal , Claudio Fontana , "qemu-devel@nongnu.org Developers" , Cornelia Huck , Jani Kokkonen , VirtualOpenSystems Technical Team --f+W+jCU1fRNres8c Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Jul 19, 2016 at 09:47:13AM +0200, Christian Pinto wrote: > > > +During the initialization phase the device connects also to the > > communication > > > +channel. It has to be noted that the behavior of the device is > > > +independent from the communication channel used, that is a detail of > > each > > > +specific implementation of the SDM device. > > > > How are SDM devices identified? For example, if two SDM devices are > > available, how does the driver know which one serves a particular > > function? > > >=20 > The master-slave role is supposed to be enough to identify the device. If > as an example we consider an AMP system, the master core will only see one > SDM master device, while the slave processor will only see the slave SDM > instance. Then it is up to the implementation of the drivers to define the > signals served, while the SDM hardware is only in charge of forwarding su= ch > signals. We do not foresee the need to have one SDM instance for each > signal type. The laissez-faire approach of allowing the implementation to define signals breaks in an environment where there can be multiple versions of the SDM hardware. Virtio feature bits cannot be used to define signal-related functionality because it's implementation-defined. For example, there is no way to express "CUSTOM_SIGNAL_2 is supported". In a guest OS image that can run on two different types of AMP systems, how do you distinguish between the set of signals to use? I guess we can say that the driver has some external knowledge (e.g. the board/chipset type) that allows it to know the meaning of signals and which ones are available? Stefan --f+W+jCU1fRNres8c Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJXjeeMAAoJEJykq7OBq3PIerAH/3J7XBvgm7W6eG7Lh9MqYUkI IcKLGEs0LuN6xvt8+9dsm8ea1T6adlD30OJW1nQAPGBlXXOi+pccMU/noObHi+1V X7oMZxLIcdPrlmp0cfAuj5GQ9jDWQ4zGUI7ReSQGLTvywdB87jv+JnnTko6tBo6Q qR1cyXzQabB7b7bH0SfKzfPX9yj6mE5ukcYMM9g0+9KgCZdlpqsZvAUVZflR9aBo g4mNkhqHW91FfjojRo3QPBoBHmlsglZs17pka56Cp828goh8OqwkcCBAxEcbVoYG CJ9bRSL9Ebcmu/MTxKiS8rq27nNAjRdpPvOcOhMoYXjdJaCjpAg/5w+T06FK4sE= =H3vl -----END PGP SIGNATURE----- --f+W+jCU1fRNres8c--