b702d2aebe
virtio: Fix compilation without CONFIG_VHOST_SCSI
...
Signed-off-by: Ed Maste <emaste@freebsd.org >
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com >
2013-04-26 13:23:31 +02:00
7c4869761d
virtio-ccw: Check indicators location.
...
If a guest neglected to register (secondary) indicators but still runs
with notifications enabled, we might end up writing to guest zero;
avoid this by checking for valid indicators and only writing to the
guest and generating an interrupt if indicators have been setup.
Cc: qemu-stable@nongnu.org
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
2013-04-25 10:43:30 +02:00
1c81944983
virtio: remove virtiobindings.
...
This remove virtio-bindings, and use class instead.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1366791683-5350-6-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:20 -05:00
181103cd52
virtio: remove the function pointer.
...
This remove the function pointer in VirtIODevice, and use only
VirtioDeviceClass function pointer.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1366791683-5350-5-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:20 -05:00
d51fcfac8a
virtio-bus: make virtio_x_bus_new static.
...
virtio_x_bus_new are only used in file scope.
So this make them static.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1366791683-5350-3-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:20 -05:00
2db26d4ca2
virtio-rng-ccw: switch to the new API.
...
Here the virtio-rng-ccw is modified for the new API. The device
virtio-rng-pci extends virtio-pci. It creates and connects a virtio-rng-device
during the init. The properties are not changed.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Acked-by: Amit Shah <amit.shah@redhat.com >
Message-id: 1366790881-3026-6-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:19 -05:00
6eac8aec02
virtio-rng: add virtio-rng device.
...
Create virtio-rng-device which extends virtio-device, so it can be connected on
virtio-bus.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Acked-by: Amit Shah <amit.shah@redhat.com >
Message-id: 1366790881-3026-3-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-24 11:50:19 -05:00
ccf6916c84
vhost-scsi-ccw: new device supporting the tcm_vhost Linux kernel module
...
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-19 16:18:47 +02:00
292c8e50d5
virtio-scsi: create VirtIOSCSICommon
...
This patch refactors existing virtio-scsi code into VirtIOSCSICommon
in order to allow virtio_scsi_init_common() to be used by both internal
virtio_scsi_init() and external vhost-scsi-pci code.
Cc: Michael S. Tsirkin <mst@redhat.com >
Cc: Asias He <asias@redhat.com >
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-19 16:17:56 +02:00
89334c8b6b
virtio-net-ccw: switch to the new API.
...
Here the virtio-net-ccw is modified for the new API. The device
virtio-net-ccw extends virtio-ccw-device as before. It creates and
connects a virtio-net-device during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1365690602-22729-6-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-17 10:28:59 -05:00
17ec5a8686
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 <fred.konrad@greensocs.com >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1365690602-22729-3-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-17 10:28:21 -05:00
24a6e7f4d9
virtio-balloon: fix dynamic properties.
...
To keep compatibility with the old virtio-balloon-x, add the dynamic properties
to virtio-balloon-pci and virtio-balloon-ccw.
Cc: Luiz Capitulino <lcapitulino@redhat.com >
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1365941220-8114-1-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-15 17:06:58 -05:00
6acf69cd4f
virtio-serial-ccw: switch to the new API.
...
Here the virtio-serial-ccw is modified for the new API. The device
virtio-serial-ccw extends virtio-ccw-device as before. It creates and
connects a virtio-serial during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Acked-by: Amit Shah <amit.shah@redhat.com >
Message-id: 1365512016-21944-5-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-15 10:22:05 -05:00
2cd2b016a1
virtio-serial: add the virtio-serial device.
...
Create virtio-serial which extends virtio-device, so it can be connected
on virtio-bus.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Acked-by: Amit Shah <amit.shah@redhat.com >
Message-id: 1365512016-21944-2-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-04-15 10:22:04 -05:00
0d09e41a51
hw: move headers to include/
...
Many of these should be cleaned up with proper qdev-/QOM-ification.
Right now there are many catch-all headers in include/hw/ARCH depending
on cpu.h, and this makes it necessary to compile these files per-target.
However, fixing this does not belong in these patches.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com >
2013-04-08 18:13:10 +02:00
30bff6a0f1
virtio-balloon-ccw: switch to the new API.
...
Here the virtio-balloon-ccw is modified for the new API. The device
virtio-balloon-ccw extends virtio-ccw-device as before. It creates and
connects a virtio-balloon during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1364377755-15508-4-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-03-28 12:57:41 -05:00
c908ea1052
virtio-scsi-ccw: switch to new API
...
Here the virtio-scsi-ccw is modified for the new API. The device
virtio-scsi-ccw extends virtio-ccw-device as before. It creates and
connects a virtio-scsi during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1363875320-7985-8-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-03-26 09:26:36 -05:00
4bfeb18a45
virtio-scsi: moving host_features from properties to transport properties.
...
host_features field is part of the transport device. So move all the
host_features related properties into transport device.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Tested-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Message-id: 1363875320-7985-4-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-03-26 09:26:35 -05:00
fe42d7fb0f
virtio-ccw, s390-virtio: Use generic virtio-blk macro.
...
Now that virtio-ccw and s390-virtio define all common properties
for virtio-blk, we can switch to using the generic
DEFINE_VIRTIO_BLK_PROPERTIES macro.
CC: Alexander Graf <agraf@suse.de >
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
2013-03-20 08:27:50 +01:00
da0a58b93c
s390-virtio, virtio-ccw: Add config_wce for virtio-blk.
...
There's no reason why we wouldn't want to make the cache mode
configurable.
Acked-by: Alexander Graf <agraf@suse.de >
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
2013-03-20 08:22:47 +01:00
131cd73705
virtio-ccw: Add missing blk chs properties.
...
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
2013-03-20 08:21:37 +01:00
3400c45504
virtio-blk-ccw switch to new API.
...
Here the virtio-ccw-s390 is modified for the new API. The device
virtio-ccw-s390 extends virtio-ccw-device as before. It creates and
connects a virtio-ccw during the init. The properties are not modified.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Reviewed-by: Peter Maydell <peter.maydell@linaro.org >
Message-id: 1363624648-16906-9-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-03-18 13:08:40 -05:00
cbd19063e7
virtio-x-bus: fix allow_hotplug assertion.
...
This set allow_hotplug for each existing virtio-x-bus, allowing the
refactored devices to be hot pluggable.
Signed-off-by: KONRAD Frederic <fred.konrad@greensocs.com >
Message-id: 1363624648-16906-3-git-send-email-fred.konrad@greensocs.com
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-03-18 13:08:39 -05:00
2362ecc5c6
virtio-ccw: Wire up virtio-rng.
...
Make virtio-rng devices available for s390-ccw-virtio machines.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
2013-03-12 13:39:22 +01:00
b8a205f2ed
virtio-ccw: remove qdev_unparent in unplug routing
...
This patch fixes unplugging a virtio-ccw device. We no
longer need to do that in virtio-ccw since common code does now
proper handling.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com >
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com >
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
2013-03-12 13:39:22 +01:00
8a7df84f9f
s390/virtio-ccw: remove redundant call to blockdev_mark_auto_del
...
blockdev_mark_auto_del is already called in virtio-blk-exit.
Remove the redundant call.
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com >
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com >
Signed-off-by: Alexander Graf <agraf@suse.de >
2013-03-08 21:17:46 +01:00
1e89ad5b00
virtio-net: pass host features to virtio_net_init
...
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com >
2013-02-08 07:37:24 -06:00
19380b1bf5
s390: Drop set_bit usage in virtio_ccw.
...
set_bit on indicators doesn't go well on 32 bit targets:
note: expected 'long unsigned int *' but argument is of type 'uint64_t *'
Switch to bit shifts instead.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
[agraf: use 1ULL instead]
Signed-off-by: Alexander Graf <agraf@suse.de >
2013-01-29 21:50:05 +01:00
8d034a6fad
s390: css error codes.
...
Changed error codes in the channel subsystem / virtio-ccw code
(-EOPNOTSUPP -> -ENOSYS, -ERESTART -> -EINPROGRESS).
This should hopefully fix building on mingw32.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Reviewed-by: Stefan Weil <sw@weilnetz.de >
Signed-off-by: Alexander Graf <agraf@suse.de >
2013-01-29 21:50:05 +01:00
a5cf2bb4e3
s390: Add new channel I/O based virtio transport.
...
Add a new virtio transport that uses channel commands to perform
virtio operations.
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com >
Signed-off-by: Alexander Graf <agraf@suse.de >
2013-01-29 21:50:04 +01:00