aboutsummaryrefslogtreecommitdiff
path: root/bootdevice.c
diff options
context:
space:
mode:
authorGonglei <arei.gonglei@huawei.com>2014-12-03 19:04:02 +0000
committerroot <root@ceth6.(none)>2014-12-22 14:39:21 +0800
commitddcd55316fb2851e144e719171621ad2816487dc (patch)
tree044aa422b6ce8b2a61d7b026ebb93a0c4e3a5bb2 /bootdevice.c
parent3b08098b409c0fb28f85436ba1adeb1d401ec8f7 (diff)
downloadqemu-arm-ddcd55316fb2851e144e719171621ad2816487dc.tar.gz
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>
Diffstat (limited to 'bootdevice.c')
-rw-r--r--bootdevice.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bootdevice.c b/bootdevice.c
index 9de34babb0..5914417027 100644
--- a/bootdevice.c
+++ b/bootdevice.c
@@ -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)