mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 00:03:54 -06:00
bootdevice: add Error **errp argument for QEMUBootSetHandler
It will be useful for checking when we change traditional boot order dynamically and propagate error message to the monitor. For x86 architecture, we pass &local_err to set_boot_dev() when vm startup in pc_coms_init(). Cc: Michael S. Tsirkin <mst@redhat.com> Cc: Alexander Graf <agraf@suse.de> Cc: Blue Swirl <blauwirbel@gmail.com> Cc: qemu-ppc@nongnu.org Signed-off-by: Gonglei <arei.gonglei@huawei.com> Reviewed-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
parent
3b08098b40
commit
ddcd55316f
7 changed files with 23 additions and 25 deletions
|
@ -63,10 +63,7 @@ void qemu_boot_set(const char *boot_order, Error **errp)
|
|||
return;
|
||||
}
|
||||
|
||||
if (boot_set_handler(boot_set_opaque, boot_order)) {
|
||||
error_setg(errp, "setting boot device list failed");
|
||||
return;
|
||||
}
|
||||
boot_set_handler(boot_set_opaque, boot_order, errp);
|
||||
}
|
||||
|
||||
void validate_bootdevices(const char *devices, Error **errp)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue