diff options
author | Gleb Natapov <gleb@redhat.com> | 2010-12-08 13:35:05 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-12-11 21:32:46 +0000 |
commit | 1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757 (patch) | |
tree | 6ce3a2ba2b2f643935d12ca9765ec6e4847ca4a4 /hw/usb-net.c | |
parent | db07c0f84ba2bedea4b8201ccb62602fd5e64c28 (diff) | |
download | qemu-1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757.tar.gz qemu-1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757.tar.bz2 qemu-1ca4d09ae0bcc2fdd6aeef0fdc11f82394f7e757.zip |
Add bootindex parameter to net/block/fd device
If bootindex is specified on command line a string that describes device
in firmware readable way is added into sorted list. Later this list will
be passed into firmware to control boot order.
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/usb-net.c')
-rw-r--r-- | hw/usb-net.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/usb-net.c b/hw/usb-net.c index f6bed2184e..84924550fd 100644 --- a/hw/usb-net.c +++ b/hw/usb-net.c @@ -27,6 +27,7 @@ #include "usb.h" #include "net.h" #include "qemu-queue.h" +#include "sysemu.h" /*#define TRAFFIC_DEBUG*/ /* Thanks to NetChip Technologies for donating this product ID. @@ -1463,6 +1464,7 @@ static int usb_net_initfn(USBDevice *dev) s->conf.macaddr.a[4], s->conf.macaddr.a[5]); + add_boot_device_path(s->conf.bootindex, &dev->qdev, "/ethernet@0"); return 0; } |