From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1GsjB2-0003DD-P0 for qemu-devel@nongnu.org; Fri, 08 Dec 2006 12:06:24 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1GsjB2-0003Bh-2J for qemu-devel@nongnu.org; Fri, 08 Dec 2006 12:06:24 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1GsjB1-0003BO-OU for qemu-devel@nongnu.org; Fri, 08 Dec 2006 12:06:23 -0500 Received: from [81.255.54.11] (helo=mx.laposte.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1GsjB1-0007MC-9O for qemu-devel@nongnu.org; Fri, 08 Dec 2006 12:06:23 -0500 Received: from smtp.laposte.net (10.150.9.37) by mx.laposte.net (7.2.060.1) id 45533E560187C3ED for qemu-devel@nongnu.org; Fri, 8 Dec 2006 18:06:22 +0100 Received: from smtpin.laposte.net (10.150.9.72) by smtp.laposte.net (7.3.105.2) id 45799ABE00000FBC for qemu-devel@nongnu.org; Fri, 8 Dec 2006 18:06:20 +0100 Received: from bibi (217.128.241.130) by smtpin.laposte.net (7.2.060.1) (authenticated as jerome.arbez-gindre) id 45747F9A00022382 for qemu-devel@nongnu.org; Fri, 8 Dec 2006 18:05:12 +0100 Subject: Re: [Qemu-devel] need advice on PCI board emulation From: jerome Arbez-Gindre In-Reply-To: <200612081522.15548.paul@codesourcery.com> References: <1165575170.22384.16.camel@bibi> <200612081522.15548.paul@codesourcery.com> Content-Type: text/plain; charset=ISO-8859-1 Date: Fri, 08 Dec 2006 18:06:19 +0100 Message-Id: <1165597579.9321.21.camel@bibi> Mime-Version: 1.0 Content-Transfer-Encoding: Quoted-Printable Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Fri, 2006-12-08 at 15:22 +0000, Paul Brook wrote: > > I'm working on a modem PCI board emulation inside Qemu. >=20 > I misread "modem PCI board" as "modern PCI board" in your original post= . The=20 > correct response is much shorter: I've replied to your former message before reading this one, sorry ! >=20 > > - to emulate demodulated incoming data, I launch one thread waiting > > with blocking reads on a UDP socket. >=20 > You should use the existing serial devices. I need demodulated data in my board emulation. The aim of my project is to emulate a PCI board which does not exist at this time, to help working on the driver. I hope it will just work when i'll receive the first real board prototype. >=20 > > So, my question is : > > Is it reasonable to use threads to emulate parallel behaviors ? >=20 > No. You should copy how the existing devices (eg. serial ports) work. As said, in my previsous message, I'll go deeper in the read of Qemu sources. >=20 > You don't need parallel operation. Modems are low-bandwith devices, so = you're=20 > not going to get any performance benefit from using multiple threads. The modem should handle 30 Mb/s. I'm looking for realistic behaviour, performances is not a priority J=E9r=F4me