mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
bootdevice: add Error **errp argument for validate_bootdevices()
It will be useful for checking when we change traditional boot order dynamically and propagate error message to the monitor. Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
9816833d3b
commit
703008e81a
3 changed files with 17 additions and 8 deletions
|
@ -217,7 +217,7 @@ void device_add_bootindex_property(Object *obj, int32_t *bootindex,
|
|||
const char *name, const char *suffix,
|
||||
DeviceState *dev, Error **errp);
|
||||
void restore_boot_order(void *opaque);
|
||||
void validate_bootdevices(const char *devices);
|
||||
void validate_bootdevices(const char *devices, Error **errp);
|
||||
|
||||
/* handler to set the boot_device order for a specific type of QEMUMachine */
|
||||
/* return 0 if success */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue