Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-20 Thread Blue Swirl
On 5/20/07, Blue Swirl <[EMAIL PROTECTED]> wrote: On 5/20/07, Paul Brook <[EMAIL PROTECTED]> wrote: > > > I think Qemu should reject -net user only. Currently that seems to > > > mean that there is no nic, but still the vlan is connected to slirp > > > stack. That does not make any sense. > > If

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-20 Thread Blue Swirl
On 5/20/07, Paul Brook <[EMAIL PROTECTED]> wrote: > > I think Qemu should reject -net user only. Currently that seems to > > mean that there is no nic, but still the vlan is connected to slirp > > stack. That does not make any sense. If you do this, do it properly and warn if any qemu vlans have

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-20 Thread Paul Brook
> So the issue on sparc was that the device is relied on by the > SS-5 platform code (it sounds like sun4m has this device on-board at > a fixed offset, non-pci), but not initialized properly due to the lack > of -net nic? Should sun4m imply -net nic,model=lance then? It doesn't > make much sense

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-20 Thread Mark Glines
On Sun, 20 May 2007 11:25:25 +0100 Paul Brook <[EMAIL PROTECTED]> wrote: > > In my past experience, -net user implies -net nic. > > You are mistaken. -net user does not imply -net nic. I just tested this. You are absolutely right, I was wrong about the behavior on x86. > > Hmm.  -net performs

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-20 Thread Paul Brook
> > I think Qemu should reject -net user only. Currently that seems to > > mean that there is no nic, but still the vlan is connected to slirp > > stack. That does not make any sense. If you do this, do it properly and warn if any qemu vlans have a single device attached. > In my past experience

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-20 Thread Mark Glines
On Sun, 20 May 2007 10:10:20 +0300 "Blue Swirl" <[EMAIL PROTECTED]> wrote: > > 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 ma

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-20 Thread Blue Swirl
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. I think Qemu should reject -net user only. Current

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-19 Thread Mark Glines
On Sat, 19 May 2007 22:08:23 +0300 "Blue Swirl" <[EMAIL PROTECTED]> 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 n

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-19 Thread Blue Swirl
On 5/19/07, Blue Swirl <[EMAIL PROTECTED]> wrote: On 5/19/07, Mark Glines <[EMAIL PROTECTED]> wrote: > The weird thing is, when I add "-net nic,model=lance" to my command line > right before "-net user", the crash does not occur. I kinda assumed from > the above backtrace that the lance driver w

Re: [Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-19 Thread Blue Swirl
On 5/19/07, Mark Glines <[EMAIL PROTECTED]> wrote: The weird thing is, when I add "-net nic,model=lance" to my command line right before "-net user", the crash does not occur. I kinda assumed from the above backtrace that the lance driver was selected on sparc32 by default... Thanks for testin

[Qemu-devel] emulated lance device crashes in debian-sparc32

2007-05-19 Thread Mark Glines
Hi, I've been trying to get Debian installed on a virtual sparc box, running on a x86 Linux host. I get a reproducible crash early in the installation process, when the sparc kernel tries to load the lance driver. I have configured qemu with: ./configure --prefix=/usr --enable-slirp --enable-ad