From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jt8xp-0002r9-Kr for qemu-devel@nongnu.org; Mon, 05 May 2008 18:15:17 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jt8xo-0002pe-TM for qemu-devel@nongnu.org; Mon, 05 May 2008 18:15:17 -0400 Received: from [199.232.76.173] (port=44889 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jt8xo-0002pT-Lx for qemu-devel@nongnu.org; Mon, 05 May 2008 18:15:16 -0400 Received: from hall.aurel32.net ([91.121.138.14]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jt8xo-0001Nr-GB for qemu-devel@nongnu.org; Mon, 05 May 2008 18:15:16 -0400 Message-ID: <481F86F3.4080007@aurel32.net> Date: Tue, 06 May 2008 00:15:15 +0200 From: Aurelien Jarno MIME-Version: 1.0 Subject: Re: [Qemu-devel] [4341] qemu: generate signals on tap I/O References: <481F84F3.6060505@flac.kalibalik.dk> In-Reply-To: <481F84F3.6060505@flac.kalibalik.dk> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anders Cc: qemu-devel@nongnu.org Anders a écrit : > Aurelien Jarno wrote: >> --- trunk/vl.c 2008-05-05 21:26:31 UTC (rev 4340) >> +++ trunk/vl.c 2008-05-05 21:26:43 UTC (rev 4341) >> @@ -4030,6 +4030,7 @@ >> if (!s) >> return NULL; >> s->fd = fd; >> + enable_sigio_timer(fd); >> s->vc = qemu_new_vlan_client(vlan, tap_receive, NULL, s); >> qemu_set_fd_handler(s->fd, tap_send, NULL, s); >> snprintf(s->vc->info_str, sizeof(s->vc->info_str), "tap: fd=%d", fd) > > Hm, I think this will break on BSD, as the function is only available in > Linux? That's why I reverted that commit, it was for my local tree only, I committed it accidentally (along with a few other patches). > I posted a more complete implementation a few weeks ago, anything wrong > with it? > > http://thread.gmane.org/gmane.comp.emulators.qemu/24567 People saying it is not the way to go, and I have still haven't decided myself if it is a correct solution or not. -- .''`. Aurelien Jarno | GPG: 1024D/F1BCDB73 : :' : Debian developer | Electrical Engineer `. `' aurel32@debian.org | aurelien@aurel32.net `- people.debian.org/~aurel32 | www.aurel32.net