* [PATCH] kvm: qemu: virtio-net: set info_str
@ 2008-12-09 10:58 Mark McLoughlin
2008-12-23 17:23 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Mark McLoughlin @ 2008-12-09 10:58 UTC (permalink / raw)
To: Avi Kivity; +Cc: kvm
Currently 'info network' shows no details for a virtio nic.
Signed-off-by: Mark McLoughlin <markmc@redhat.com>
---
qemu/hw/virtio-net.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c
index da2e835..18da625 100644
--- a/qemu/hw/virtio-net.c
+++ b/qemu/hw/virtio-net.c
@@ -403,6 +403,11 @@ PCIDevice *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn)
n->vc = qemu_new_vlan_client(nd->vlan, virtio_net_receive,
virtio_net_can_receive, n);
+ snprintf(n->vc->info_str, sizeof(n->vc->info_str),
+ "virtio macaddr=%02x:%02x:%02x:%02x:%02x:%02x",
+ n->mac[0], n->mac[1], n->mac[2],
+ n->mac[3], n->mac[4], n->mac[5]);
+
n->tx_timer = qemu_new_timer(vm_clock, virtio_net_tx_timer, n);
n->tx_timer_active = 0;
n->mergeable_rx_bufs = 0;
--
1.6.0.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] kvm: qemu: virtio-net: set info_str
2008-12-09 10:58 [PATCH] kvm: qemu: virtio-net: set info_str Mark McLoughlin
@ 2008-12-23 17:23 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-12-23 17:23 UTC (permalink / raw)
To: Mark McLoughlin; +Cc: kvm
Mark McLoughlin wrote:
> Currently 'info network' shows no details for a virtio nic.
>
>
Sorry, I've missed this. But now virtio-net is in qemu; can you push it
there, and I'll merge it in due course?
> Signed-off-by: Mark McLoughlin <markmc@redhat.com>
> ---
> qemu/hw/virtio-net.c | 5 +++++
> 1 files changed, 5 insertions(+), 0 deletions(-)
>
> diff --git a/qemu/hw/virtio-net.c b/qemu/hw/virtio-net.c
> index da2e835..18da625 100644
> --- a/qemu/hw/virtio-net.c
> +++ b/qemu/hw/virtio-net.c
> @@ -403,6 +403,11 @@ PCIDevice *virtio_net_init(PCIBus *bus, NICInfo *nd, int devfn)
> n->vc = qemu_new_vlan_client(nd->vlan, virtio_net_receive,
> virtio_net_can_receive, n);
>
> + snprintf(n->vc->info_str, sizeof(n->vc->info_str),
> + "virtio macaddr=%02x:%02x:%02x:%02x:%02x:%02x",
> + n->mac[0], n->mac[1], n->mac[2],
> + n->mac[3], n->mac[4], n->mac[5]);
> +
> n->tx_timer = qemu_new_timer(vm_clock, virtio_net_tx_timer, n);
> n->tx_timer_active = 0;
> n->mergeable_rx_bufs = 0;
>
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-12-23 17:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-12-09 10:58 [PATCH] kvm: qemu: virtio-net: set info_str Mark McLoughlin
2008-12-23 17:23 ` Avi Kivity
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.