diff options
author | Gonglei <arei.gonglei@huawei.com> | 2014-10-07 16:00:36 +0800 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2014-10-15 10:46:01 +0200 |
commit | d749e10c4f97a0239180215c6d7d18712361a430 (patch) | |
tree | 9772a48a6a203f4e21ab1ad2166f6473bfd053d1 /hw/net/eepro100.c | |
parent | d2b186f96d19c1f8a6b7e528ff32c24096d5b204 (diff) | |
download | qemu-d749e10c4f97a0239180215c6d7d18712361a430.zip qemu-d749e10c4f97a0239180215c6d7d18712361a430.tar.gz qemu-d749e10c4f97a0239180215c6d7d18712361a430.tar.bz2 |
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>
Diffstat (limited to 'hw/net/eepro100.c')
-rw-r--r-- | hw/net/eepro100.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c index fb9c944..4877bfd 100644 --- a/hw/net/eepro100.c +++ b/hw/net/eepro100.c @@ -1901,8 +1901,6 @@ static int e100_nic_init(PCIDevice *pci_dev) s->vmstate->name = qemu_get_queue(s->nic)->model; vmstate_register(&pci_dev->qdev, -1, s->vmstate, s); - add_boot_device_path(s->conf.bootindex, &pci_dev->qdev, "/ethernet-phy@0"); - return 0; } |