mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-09 10:34:58 -06:00
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>
This commit is contained in:
parent
74b4fe3d79
commit
89334c8b6b
2 changed files with 28 additions and 16 deletions
|
@ -73,9 +73,7 @@ struct VirtioCcwDevice {
|
|||
SubchDev *sch;
|
||||
VirtIODevice *vdev;
|
||||
char *bus_id;
|
||||
NICConf nic;
|
||||
uint32_t host_features[VIRTIO_CCW_FEATURE_SIZE];
|
||||
virtio_net_conf net;
|
||||
VirtIORNGConf rng;
|
||||
VirtioBusState bus;
|
||||
/* Guest provided values: */
|
||||
|
@ -137,6 +135,17 @@ typedef struct VirtioSerialCcw {
|
|||
VirtIOSerial vdev;
|
||||
} VirtioSerialCcw;
|
||||
|
||||
/* virtio-net-ccw */
|
||||
|
||||
#define TYPE_VIRTIO_NET_CCW "virtio-net-ccw"
|
||||
#define VIRTIO_NET_CCW(obj) \
|
||||
OBJECT_CHECK(VirtIONetCcw, (obj), TYPE_VIRTIO_NET_CCW)
|
||||
|
||||
typedef struct VirtIONetCcw {
|
||||
VirtioCcwDevice parent_obj;
|
||||
VirtIONet vdev;
|
||||
} VirtIONetCcw;
|
||||
|
||||
VirtualCssBus *virtual_css_bus_init(void);
|
||||
void virtio_ccw_device_update_status(SubchDev *sch);
|
||||
VirtIODevice *virtio_ccw_get_vdev(SubchDev *sch);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue