Statistics
| Branch: | Revision:

root / hw / virtio @ 83d07047

Name Size
  dataplane
Makefile.objs 261 Bytes
vhost.c 32.7 kB
virtio-balloon.c 11.7 kB
virtio-bus.c 5.3 kB
virtio-mmio.c 12.7 kB
virtio-pci.c 50.9 kB
virtio-pci.h 5.2 kB
virtio-rng.c 6.2 kB
virtio.c 31.8 kB

Latest revisions

# Date Author Comment
83d07047 12/23/2013 06:02 pm Paolo Bonzini

virtio: add back call to virtio_bus_device_unplugged

This got lost in a rebase.

Reported-by: Stefan Hajnoczi <>
Signed-off-by: Paolo Bonzini <>
Signed-off-by: Michael S. Tsirkin <>

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

virtio-balloon: QOM realize preparations

Rename qdev -> dev since that's what realize's argument is called by
convention. No need to keep more "qdev" around than necessary.

Avoid duplicate VIRTIO_DEVICE() cast.

Signed-off-by: Andreas Färber <>...

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

virtio-rng: QOM realize preparations

Rename qdev -> dev because that's what realize's argument is called by
convention. No need to keep more "qdev" around than necessary.

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

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

virtio: Start converting VirtioDevice to QOM realize

Temporarily allow either VirtioDeviceClass::init or
VirtioDeviceClass::realize.

Introduce VirtioDeviceClass::unrealize for symmetry.

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

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

virtio-balloon: Convert to QOM realize

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

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

virtio-rng: Convert to QOM realize

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

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

virtio: Complete converting VirtioDevice to QOM realize

Drop VirtioDeviceClass::init.

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 <>

7bb6edb0 12/09/2013 10:46 pm Paolo Bonzini

virtio-rng: 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 <>

06a13073 12/09/2013 10:46 pm Paolo Bonzini

virtio-pci: add device_unplugged callback

This fixes a crash in hot-unplug of virtio-pci devices behind a PCIe
switch. The crash happens because the ioeventfd is still set whent the
child is destroyed (destruction happens in postorder). Then the proxy
tries to unset to ioeventfd, but the virtqueue structure that holds the...

View revisions

Also available in: Atom