[Qemu-devel] [PULL 2/5] bootdevice: add Error **errp argument for validate_bootdevices()

2014-12-16 Thread arei . gonglei
From: Gonglei We can use it for checking when we change traditional boot order dynamically and propagate error message to the monitor. Signed-off-by: Gonglei --- bootdevice.c| 10 +- include/sysemu/sysemu.h |2 +- vl.c| 15 +-- 3 file

[Qemu-devel] [PULL 4/5] bootdevice: add validate check for qemu_boot_set()

2014-12-16 Thread arei . gonglei
From: Gonglei Signed-off-by: Gonglei --- bootdevice.c |8 1 file changed, 8 insertions(+) diff --git a/bootdevice.c b/bootdevice.c index 7f07507..9de34ba 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -49,12 +49,20 @@ void qemu_register_boot_set(QEMUBootSetHandler *func, void *o

[Qemu-devel] [PULL 0/5] bootdevice patches

2014-12-16 Thread arei . gonglei
From: root This is my first pull request as a submaintainer. Those patches just move boot order related code to bootdevice.c and add a Error **errp argument for corresponding functions so that it can propagate error messages to the caller. Please pull. Regards, -Gonglei The following changes si

[Qemu-devel] [PULL 1/5] bootdevice: move code about bootorder from vl.c to bootdevice.c

2014-12-16 Thread arei . gonglei
From: Gonglei First, we can downsize vl.c, make it simpler by little and little. Second, I can maintain those code and make some improvement. Cc: Jan Kiszka Signed-off-by: Gonglei --- bootdevice.c| 62 +++ include/hw/hw.h |

[Qemu-devel] [PULL 5/5] bootdevice: add Error **errp argument for QEMUBootSetHandler

2014-12-16 Thread arei . gonglei
From: Gonglei We can use it for checking when we change traditional boot order dynamically and propagate error message to the monitor. For x86 architecture, we pass &error_abort to set_boot_dev() when vm startup in pc_coms_init(). Cc: Michael S. Tsirkin Cc: Alexander Graf Cc: Blue Swirl Cc: q

[Qemu-devel] [PULL 3/5] bootdevice: add Error **errp argument for qemu_boot_set()

2014-12-16 Thread arei . gonglei
From: Gonglei We can use it for checking when we change traditional boot order dynamically and propagate error message to the monitor. Signed-off-by: Gonglei --- bootdevice.c| 14 ++ include/sysemu/sysemu.h |2 +- monitor.c | 14 ++ 3 f