Markus Armbruster 27f3f8a362 qdev: Catch attempt to attach more than one device to a netdev
Guest device and host netdev are peers, i.e. it's a 1:1 relation.
However, we fail to enforce that:

    $ qemu -nodefaults --nographic -netdev user,id=net0 -device e1000,netdev=net0 -device virtio-net-pci,netdev=net0 -monitor stdio
    QEMU 0.12.50 monitor - type 'help' for more information
    (qemu) info network
    Devices not on any VLAN:
      net0: net=10.0.2.0, restricted=n peer=virtio-net-pci.0
      e1000.0: model=e1000,macaddr=52:54:00:12:34:56 peer=net0
      virtio-net-pci.0: model=virtio-net-pci,macaddr=52:54:00:12:34:57 peer=net0

It's all downhill from there.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
2010-03-09 08:47:20 -06:00
..
2009-11-19 16:45:21 +00:00
2009-12-23 16:35:00 +02:00
2009-12-23 16:35:00 +02:00
2010-02-22 21:23:11 +00:00
2010-03-04 00:29:28 -03:00
2009-11-19 16:45:21 +00:00
2009-11-19 16:45:21 +00:00
2009-11-19 16:45:21 +00:00
2009-11-13 04:04:18 +00:00
2009-11-19 16:45:21 +00:00
2009-12-02 08:57:42 -06:00
2009-11-22 21:27:40 +00:00
2009-11-22 21:27:40 +00:00
2009-12-02 08:57:42 -06:00
2009-11-09 08:43:03 -06:00
2010-02-14 09:01:14 +00:00
2010-02-07 19:28:32 +00:00
2009-11-16 17:06:43 +00:00
2009-11-22 21:27:40 +00:00
2010-03-03 13:47:53 +02:00
2009-12-04 20:44:44 +00:00
2010-02-07 08:05:47 +00:00
2009-12-03 09:41:32 -06:00
2010-02-07 09:13:51 +00:00
2010-02-07 09:01:18 +00:00
2010-02-07 09:15:26 +00:00
2010-02-07 09:15:26 +00:00
2010-02-05 18:48:36 +00:00
2010-02-07 02:03:50 +03:00
2010-02-07 02:03:50 +03:00
2009-12-02 17:26:19 +01:00
2009-12-21 15:06:59 +00:00
2010-02-07 08:05:03 +00:00
2010-03-08 11:30:09 -06:00
2009-12-03 09:41:32 -06:00
2009-11-09 08:43:03 -06:00
2010-02-07 09:01:18 +00:00
2009-11-14 01:11:27 +01:00
2009-11-15 23:04:20 +01:00
2009-12-03 09:41:33 -06:00
2009-11-19 16:45:21 +00:00
2009-12-23 16:35:00 +02:00
2010-01-15 00:06:16 +01:00
2009-12-04 20:44:44 +00:00
2009-12-03 09:41:31 -06:00
2009-12-02 08:57:42 -06:00
2010-02-07 08:05:03 +00:00
2009-11-22 21:27:40 +00:00
2009-12-19 16:04:52 +01:00
2010-03-04 00:29:32 -03:00
2010-03-01 03:29:21 +00:00
2010-02-14 16:10:53 +02:00
2010-02-14 16:10:54 +02:00
2009-12-23 16:35:00 +02:00
2010-02-13 07:37:11 +00:00
2010-03-08 11:30:09 -06:00
2009-12-04 20:44:44 +00:00
2010-03-08 11:30:09 -06:00
2009-12-03 09:41:31 -06:00
2010-01-27 13:01:53 +01:00
2010-02-22 20:42:51 +00:00
2009-12-21 16:03:03 +01:00
2009-12-21 16:03:03 +01:00
2010-02-14 16:10:54 +02:00
2009-12-21 16:03:03 +01:00
2009-11-13 04:04:18 +00:00
2010-02-08 12:21:03 +01:00
2009-12-21 20:19:12 +00:00
2010-02-10 16:53:25 -06:00
2009-12-18 23:23:56 +01:00
2010-02-09 21:07:03 +01:00
2010-01-24 14:28:21 +00:00
2010-01-14 16:15:50 +01:00
2009-12-03 09:41:33 -06:00
2010-02-07 08:05:03 +00:00
2010-02-07 08:05:03 +00:00
2009-12-04 20:44:44 +00:00
2010-02-14 16:10:54 +02:00
2010-02-25 13:29:06 +00:00
2010-02-19 15:32:16 -06:00
2009-12-18 23:23:56 +01:00
2010-02-25 13:29:06 +00:00
2010-02-25 13:29:06 +00:00
2010-02-07 02:03:50 +03:00
2010-02-25 13:29:06 +00:00
2010-02-10 12:45:11 -06:00
2009-12-18 11:26:28 -06:00
2010-02-14 16:10:54 +02:00
2010-01-13 17:14:15 -06:00
2010-02-10 16:53:54 -06:00
2010-02-10 16:53:25 -06:00
2010-02-03 19:47:34 -02:00
2009-12-02 08:57:43 -06:00
2010-01-26 14:59:20 -06:00
2009-12-03 09:41:34 -06:00