mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
bootindex: move calling add_boot_device_patch to bootindex setter function
On this way, we can assure the new bootindex take effect during vm rebooting. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Gerd Hoffmann <kraxel@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
d2b186f96d
commit
d749e10c4f
18 changed files with 2 additions and 32 deletions
|
@ -1371,8 +1371,6 @@ static void usb_net_realize(USBDevice *dev, Error **errrp)
|
|||
s->conf.macaddr.a[4],
|
||||
s->conf.macaddr.a[5]);
|
||||
usb_desc_set_string(dev, STRING_ETHADDR, s->usbstring_mac);
|
||||
|
||||
add_boot_device_path(s->conf.bootindex, &dev->qdev, "/ethernet@0");
|
||||
}
|
||||
|
||||
static void usb_net_instance_init(Object *obj)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue