aboutsummaryrefslogtreecommitdiff
path: root/hw/net/e1000.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-10-07 16:00:36 +0800
committerGerd Hoffmann <kraxel@redhat.com>2014-10-15 10:46:01 +0200
commitd749e10c4f97a0239180215c6d7d18712361a430 (patch)
tree9772a48a6a203f4e21ab1ad2166f6473bfd053d1 /hw/net/e1000.c
parentd2b186f96d19c1f8a6b7e528ff32c24096d5b204 (diff)
downloadqemu-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/e1000.c')
-rw-r--r--hw/net/e1000.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/hw/net/e1000.c b/hw/net/e1000.c
index 0edbfa6..e33a4da 100644
--- a/hw/net/e1000.c
+++ b/hw/net/e1000.c
@@ -1569,8 +1569,6 @@ static int pci_e1000_init(PCIDevice *pci_dev)
qemu_format_nic_info_str(qemu_get_queue(d->nic), macaddr);
- add_boot_device_path(d->conf.bootindex, dev, "/ethernet-phy@0");
-
d->autoneg_timer = timer_new_ms(QEMU_CLOCK_VIRTUAL, e1000_autoneg_timer, d);
d->mit_timer = timer_new_ns(QEMU_CLOCK_VIRTUAL, e1000_mit_timer, d);