From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HpX5t-0004PV-UC for qemu-devel@nongnu.org; Sat, 19 May 2007 18:08:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HpX5s-0004NK-GK for qemu-devel@nongnu.org; Sat, 19 May 2007 18:08:09 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpX5s-0004Mw-Co for qemu-devel@nongnu.org; Sat, 19 May 2007 18:08:08 -0400 Received: from squawk.glines.org ([72.36.206.66]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HpX5s-00035e-0K for qemu-devel@nongnu.org; Sat, 19 May 2007 18:08:08 -0400 Date: Sat, 19 May 2007 15:08:03 -0700 From: Mark Glines Subject: Re: [Qemu-devel] emulated lance device crashes in debian-sparc32 Message-ID: <20070519150803.40ef21f2@chirp> In-Reply-To: References: <20070519071656.74105a87@chirp> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit 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 Cc: blauwirbel@gmail.com On Sat, 19 May 2007 22:08:23 +0300 "Blue Swirl" wrote: > This patch fixes the crash. But I'm not convinced it's the right one, > perhaps the default net parameter logic could be improved instead: > /* init network clients */ > if (nb_net_clients == 0) { > /* if no clients, we use a default config */ > pstrcpy(net_clients[0], sizeof(net_clients[0]), > "nic"); > pstrcpy(net_clients[1], sizeof(net_clients[0]), > "user"); > nb_net_clients = 2; > } > > Also one of the network options could be a black hole kind of device, > such that unlike the "none" type, the device exists, it just can't > send or receive anything. I've verified your patch fixes the crash for me. But I'm curious, have I been running qemu in a nonstandard fashion, then? (Should I be specifying more than just "-net user", normally?) If so, I can make up a patch to amend the documentation. Thanks! Mark