Statistics
| Branch: | Revision:

root / hw / net / virtio-net.c @ c7bcc85d

History | View | Annotate | Download (48.2 kB)

# Date Author Comment
e157b8fd 12/13/2013 09:10 pm Anthony Liguori

Merge remote-tracking branch 'bonzini/virtio' into staging

  1. By Andreas Färber (18) and Paolo Bonzini (12)
  2. Via Paolo Bonzini
    • bonzini/virtio: (30 commits)
      virtio: Convert exit to unrealize
      virtio: Complete converting VirtioDevice to QOM realize
      virtio-scsi: Convert to QOM realize...
284a32f0 12/09/2013 10:46 pm Andreas Färber

virtio-net: QOM realize preparations

Rename variable qdev -> dev since that's what realize's argument is
called by convention.

Avoid duplicate VIRTIO_DEVICE() cast.

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

e6f746b3 12/09/2013 10:46 pm Andreas Färber

virtio-net: Convert to QOM realize

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

306ec6c3 12/09/2013 10:46 pm Andreas Färber

virtio: Convert exit to unrealize

Signed-off-by: Andreas Färber <>
Signed-off-by: Paolo Bonzini <>

3786cff5 12/09/2013 10:46 pm Paolo Bonzini

virtio-net: switch exit callback to VirtioDeviceClass

This ensures hot-unplug is handled properly by the proxy, and avoids
leaking bus_name which is freed by virtio_device_exit.

Cc:
Acked-by: Andreas Faerber <>
Signed-off-by: Paolo Bonzini <>

cae2e556 12/09/2013 02:33 pm Amos Kong

virtio-net: don't update mac_table in error state

mac_table was always cleaned up first in handling
VIRTIO_NET_CTRL_MAC_TABLE_SET command, and we din't recover
mac_table content in error state, it's not correct.

This patch makes all the changes in temporal variables,...

cb77e358 12/02/2013 07:04 pm Zhi Yong Wu

virtio-net: fix the indent

Signed-off-by: Zhi Yong Wu <>
Reviewed-by: Fam Zheng <>
Signed-off-by: Michael Tokarev <>

96e35046 11/19/2013 11:26 am Amos Kong

virtio-net: fix the memory leak in rxfilter_notify()

object_get_canonical_path() returns a gchar*, it should be freed by the
caller.

Signed-off-by: Amos Kong <>
Reviewed-by: Michael S. Tsirkin <>
Reviewed-by: Vlad Yasevich <>...

cc386e96 11/08/2013 06:32 pm Dmitry Fleytman

virtio-net: broken RX filtering logic fixed

Upon processing of VIRTIO_NET_CTRL_MAC_TABLE_SET command
multicast list overwrites unicast list in mac_table.
This leads to broken logic for both unicast and multicast RX filtering.

Signed-off-by: Dmitry Fleytman <>...

fe2dafa0 11/07/2013 07:46 am Jason Wang

virtio-net: only delete bh that existed

We delete without check whether it existed during exit. This will lead NULL
pointer deference since it was created conditionally depends on guest driver
status and features. So add a check of existence before trying to delete it....

702d66a8 09/22/2013 09:30 am Michael S. Tsirkin

virtio-net: fix up HMP NIC info string on reset

When mac is updated on reset, info string has stale data.
Fix it up.

Signed-off-by: Michael S. Tsirkin <>

bc72ad67 08/22/2013 08:14 pm Alex Bligh

aio / timers: Switch entire codebase to the new timer API

This is an autogenerated patch using scripts/switch-timer-api.

Switch the entire code base to using the new timer API.

Note this patch may introduce some line length issues.

Signed-off-by: Alex Bligh <>...

125ee0ed 07/29/2013 06:37 pm Marcel Apfelbaum

devices: Associate devices to their logical category

The category will be used to sort the devices displayed in
the command line help.

Signed-off-by: Marcel Apfelbaum <>
Message-id: ...

b1be4280 07/15/2013 09:23 pm Amos Kong

net: add support of mac-programming over macvtap in QEMU side

Currently macvtap based macvlan device is working in promiscuous
mode, we want to implement mac-programming over macvtap through
Libvirt for better performance.

Design:
QEMU notifies Libvirt when rx-filter config is changed in guest,...

644c9858 05/22/2013 03:40 pm Dmitry Fleytman

virtio-net: dynamic network offloads configuration

Virtio-net driver currently negotiates network offloads
on startup via features mechanism and have no ability to
disable and re-enable offloads later.
This patch introduced a new control command that allows...

8a253ec2 05/15/2013 04:48 pm KONRAD Frederic

virtio-net: add virtio_net_set_netclient_name.

This adds virtio_net_set_netclient_name, which is used to set the
name and type shown in "info network" command.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

d7108d90 05/07/2013 02:43 pm Jason Wang

virtio-net: properly check the vhost status during status set

Commit 32993698 (vhost: disable on tap link down) tries to disable the vhost
also when the peer's link is down. But the check was not done properly, the
vhost were only started when:

1) peer's link is not down...

e9016ee2 05/01/2013 12:04 am Jason Wang

virtio-net: count VIRTIO_NET_F_MAC when calculating config_len

Commit 14f9b664 (hw/virtio-net.c: set config size using host features) tries to
calculate config size based on the host features. But it forgets the
VIRTIO_NET_F_MAC were always set for qemu later. This will lead a zero config...

ec57db16 04/29/2013 04:27 pm Jason Wang

virtio-net: unbreak the minix guest

Multiqueue patchset conditionally add control vq only when guest negotiate the
feature. Though the spec is not clear on this but it breaks the minix guest
since it will identify the ctrl vq even if it does not support it. Though this...

6a1a8cc7 04/24/2013 07:50 pm KONRAD Frederic

virtio: cleanup: init and exit function.

This clean the init and the exit functions and rename virtio_common_cleanup
to virtio_cleanup.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

181103cd 04/24/2013 07:50 pm KONRAD Frederic

virtio: remove the function pointer.

This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.

Signed-off-by: KONRAD Frederic <>
Message-id: ...

17a0ca55 04/17/2013 06:28 pm KONRAD Frederic

virtio-net: cleanup: use QOM cast.

As the virtio-net-pci and virtio-net-s390 are switched to the new API,
we can use QOM casts.

Signed-off-by: KONRAD Frederic <>
Tested-by: Cornelia Huck <>
Message-id: ...

1773d9ee 04/17/2013 06:28 pm KONRAD Frederic

virtio-net: cleanup: init and exit function.

This remove old init and exit function as they are no longer needed.

Signed-off-by: KONRAD Frederic <>
Tested-by: Cornelia Huck <>
Message-id: ...

17ec5a86 04/17/2013 06:28 pm KONRAD Frederic

virtio-net: add the virtio-net device.

Create virtio-net-device which extends virtio-device, so it can be connected on
virtio-bus.

Signed-off-by: KONRAD Frederic <>
Tested-by: Cornelia Huck <>
Message-id: ...

6e790746 04/08/2013 07:13 pm Paolo Bonzini

hw: move virtio devices to hw/ subdirectories

Signed-off-by: Paolo Bonzini <>