Bugs item #2386363, was opened at 2008-12-03 19:43
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2386363&group_id=180599
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: qemu
Group: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Nolan (sf-nolan)
Assigned to: Nobody/Anonymous (nobody)
Summary: virtio-net doesn't set vc->info_str
Initial Comment:
Which makes "info network" not show the devices, which makes it difficult to
figure out what NIC model a running VM is using via the monitor.
The fix is simple, just add the following to virtio-net.c::virtio_net_init
right after the call to qemu_new_vlan_client:
snprintf(n->vc->info_str, sizeof(n->vc->info_str),
"%s macaddr=%02x:%02x:%02x:%02x:%02x:%02x", "virtio",
n->nd->macaddr[0], n->nd->macaddr[1], n->nd->macaddr[2],
n->nd->macaddr[3], n->nd->macaddr[4], n->nd->macaddr[5]);
Note that the string should probably be "virtio" not "virtio-net" so that it
matches the model= command line parameter.
Ideally all of this should be factored up into qemu's generic network code, but
the trivial change above at least brings virtio-net to parity with all the
other NIC models.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=893831&aid=2386363&group_id=180599
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html