mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 16:53: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
|
@ -21,6 +21,7 @@
|
|||
#include "qemu-error.h"
|
||||
#include <hw/ide/internal.h>
|
||||
#include "blockdev.h"
|
||||
#include "sysemu.h"
|
||||
|
||||
/* --------------------------------- */
|
||||
|
||||
|
@ -143,6 +144,10 @@ static int ide_drive_initfn(IDEDevice *dev)
|
|||
if (!dev->serial) {
|
||||
dev->serial = qemu_strdup(s->drive_serial_str);
|
||||
}
|
||||
|
||||
add_boot_device_path(dev->conf.bootindex, &dev->qdev,
|
||||
dev->unit ? "/disk@1" : "/disk@0");
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue