kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* QemuOpts changes breaks multiple nic options
@ 2009-10-12 22:05 Tom Lendacky
  2009-10-13  8:58 ` Mark McLoughlin
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Lendacky @ 2009-10-12 22:05 UTC (permalink / raw)
  To: kvm

The recent change to QemuOpts for the -net nic option breaks specifying -net 
nic,... more than once.  The net_init_nic function's return value in net.c is 
a table index, which is non-zero after the first time it is called.  The 
qemu_opts_foreach function in qemu-option.c receives the non-zero return value 
and stops processing further -net options (like associated -net tap options).  
It looks like the usb net function makes use of the index value, so the fix 
might best be to have qemu_opts_foreach check for a return code < 0 as being 
an error?

Tom Lendacky

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-10-13  9:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-12 22:05 QemuOpts changes breaks multiple nic options Tom Lendacky
2009-10-13  8:58 ` Mark McLoughlin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).