virtio-net.c (31ee895047bdcf7387e3570cbd2a473c6f744b08) virtio-net.c (00e7b1299599384dfdda2a2a4570a0fb2d69eb6b)
1/*
2 * Virtio Network Device
3 *
4 * Copyright IBM, Corp. 2007
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *

--- 848 unchanged lines hidden (view full) ---

857 if (!id) {
858 return;
859 }
860 opts = qemu_opts_find(qemu_find_opts("device"), id);
861 if (opts) {
862 dev = qdev_device_add(opts, &err);
863 if (err) {
864 qemu_opts_del(opts);
1/*
2 * Virtio Network Device
3 *
4 * Copyright IBM, Corp. 2007
5 *
6 * Authors:
7 * Anthony Liguori <aliguori@us.ibm.com>
8 *

--- 848 unchanged lines hidden (view full) ---

857 if (!id) {
858 return;
859 }
860 opts = qemu_opts_find(qemu_find_opts("device"), id);
861 if (opts) {
862 dev = qdev_device_add(opts, &err);
863 if (err) {
864 qemu_opts_del(opts);
865 } else {
866 object_unref(OBJECT(dev));
865 }
866 } else {
867 error_setg(errp, "Primary device not found");
868 error_append_hint(errp, "Virtio-net failover will not work. Make "
869 "sure primary device has parameter"
870 " failover_pair_id=<virtio-net-id>\n");
871 }
872 error_propagate(errp, err);

--- 2669 unchanged lines hidden ---
867 }
868 } else {
869 error_setg(errp, "Primary device not found");
870 error_append_hint(errp, "Virtio-net failover will not work. Make "
871 "sure primary device has parameter"
872 " failover_pair_id=<virtio-net-id>\n");
873 }
874 error_propagate(errp, err);

--- 2669 unchanged lines hidden ---