On 03/17/2010 11:13 AM, Jamie Lokier wrote:
Anthony Liguori wrote:
On 03/05/2010 03:07 PM, Brian Thomason wrote:
The manpage reflects that multiple -net user calls may be made,
but if this is done, it can cause the program to hang. Instead,
multiple -net calls can be combined into one, and this patch adds
that information to qemu-options.hx. Also, -net user may only
be used in conjunction with -net nic. This is already implcitly
stated, but this patch makes that statement more explicit.
Actually, the problem is that the user created a loop. It's actually
valid to have something like:
-net user -net dump,file=foo.pcap -net nic
But having -net user -net user creates a loop.
When I used -net user -net user, it didn't hang: QEMU crashed with a
stack overflow.
It crashed after a doing a successful full OS install, because
everything was fine until the first network packet.
That's not nice, even if it is user error.
Well we should dedicate this case in the code and throw an error.
Regards,
Anthony Liguori
-- Jamie