From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek =?utf-8?Q?Marczykowski-G=C3=B3recki?= Subject: Re: PCI passthrough with stubdomain Date: Fri, 23 Sep 2016 23:04:02 +0200 Message-ID: <20160923210402.GF31510@mail-itl> References: <20160923084814.GS7339@mail-itl> <20160923132707.GH20069@var.bordeaux.inria.fr> <20160923142541.GB31510@mail-itl> <20160923145133.GM4441@var.bordeaux.inria.fr> <20160923185643.GD31510@mail-itl> <20160923210042.GA18469@var.home> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============6241920157536034613==" Return-path: In-Reply-To: <20160923210042.GA18469@var.home> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" To: Samuel Thibault , xen-devel , HW42 List-Id: xen-devel@lists.xenproject.org --===============6241920157536034613== Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="av0koZfH4TCvFXQw" Content-Disposition: inline --av0koZfH4TCvFXQw Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Sep 23, 2016 at 11:00:42PM +0200, Samuel Thibault wrote: > Marek Marczykowski-G=C3=B3recki, on Fri 23 Sep 2016 20:56:43 +0200, wrote: > > 1. How to do this? ;) I.e. what synchronization primitives are available > > in mini-os? Just pthread_mutex_lock/unlock? >=20 > pthread_mutex_lock are nops :o) because we don't have pthread_create. > But for mini-os itself there are synchronization primitives, yes: > there are also semaphores (./include/semaphore.h) and waitqueues > (include/wait.h). Ok, will take a look at this. Thanks. > > 2. Wouldn't the same problem be with other stubdomain implementations? > > Like Linux + qemu-xen or rumprun + qemu-xen? At least in Linux case > > pcifront driver will also needs some time for initialization... >=20 > Possibly, I don't know about them, they didn't exist at the time ;) Actually they don't exist even now ;) But hopefully will, in the near future... --=20 Best Regards, Marek Marczykowski-G=C3=B3recki Invisible Things Lab A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? --av0koZfH4TCvFXQw Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJX5ZjDAAoJENuP0xzK19csSAQH/Rk+QXRM1T5B9ESmdS7wQDEv 1Xf1f/hdBF6a02CfgxoTfD1RRg+/jm2fAIudlPSD1FJGDO6wzOS593URi0xgkdqu USkjs3WROqnkDquiyaxBYL2PtK2Ww15U8SZfrIstIsUrf5jxaCyCpLVzmTZLuCOh zy9hgHLMa5O6DAazsgh4aBTJlv5Xbh7JFhgQWKB0d9BHlqHqE5m29Jgvct9EHIWN weT3GqJIUS6cX1jdZaNH3TuYfUBBbiv9EminQN4YVAHcl5XKhw3lrGDBAZBRVFVp EtBLxc4Q5eDVKVhiJ0Tgak2DSC6UDxdXeANOCS+eMDiRNsw4jtZlTtoKM3PMNl4= =M3ee -----END PGP SIGNATURE----- --av0koZfH4TCvFXQw-- --===============6241920157536034613== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KWGVuLWRldmVs IG1haWxpbmcgbGlzdApYZW4tZGV2ZWxAbGlzdHMueGVuLm9yZwpodHRwczovL2xpc3RzLnhlbi5v cmcveGVuLWRldmVsCg== --===============6241920157536034613==--