mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 08:43:55 -06:00
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>
This commit is contained in:
parent
db07c0f84b
commit
1ca4d09ae0
17 changed files with 119 additions and 2 deletions
|
@ -52,6 +52,7 @@
|
|||
#include "qemu-timer.h"
|
||||
#include "net.h"
|
||||
#include "loader.h"
|
||||
#include "sysemu.h"
|
||||
|
||||
/* debug RTL8139 card */
|
||||
//#define DEBUG_RTL8139 1
|
||||
|
@ -3376,6 +3377,9 @@ static int pci_rtl8139_init(PCIDevice *dev)
|
|||
s->TimerExpire = 0;
|
||||
s->timer = qemu_new_timer(vm_clock, rtl8139_timer, s);
|
||||
rtl8139_set_next_tctr_time(s, qemu_get_clock(vm_clock));
|
||||
|
||||
add_boot_device_path(s->conf.bootindex, &dev->qdev, "/ethernet-phy@0");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue