Markus Armbruster e7b1d0ea95 pc_sysfw: Check for qemu_find_file() failure
pc_fw_add_pflash_drv() ignores qemu_find_file() failure, and happily
creates a drive without a medium.

When pc_system_flash_init() asks for its size, bdrv_getlength() fails
with -ENOMEDIUM, which isn't checked either.  It fails relatively
cleanly only because -ENOMEDIUM isn't a multiple of 4096:

    $ qemu-system-x86_64 -S -vnc :0 -bios nonexistant
    qemu: PC system firmware (pflash) must be a multiple of 0x1000
    [Exit 1 ]

Fix by handling the qemu_find_file() failure.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2013-01-04 14:38:04 +01:00
2012-12-17 14:01:41 +01:00
2013-01-02 15:58:09 +01:00
2012-12-19 08:29:06 +01:00
2012-12-22 12:06:48 +00:00
2012-10-24 10:26:22 +02:00
2013-01-02 11:23:21 -06:00
2012-12-22 12:04:00 +00:00
2012-09-07 09:02:44 +03:00
2012-11-01 13:10:06 +01:00
2012-05-14 07:27:24 +02:00
2012-12-20 23:08:47 +01:00
2013-01-02 15:58:09 +01:00
2011-12-09 11:25:22 +00:00
2012-12-20 23:09:25 +01:00
2011-02-09 10:33:54 +02:00
2013-01-03 12:53:41 -06:00
2011-12-11 17:50:43 -06:00
2013-01-02 13:32:48 -06:00
2012-12-03 14:08:40 -06:00
2012-12-22 12:04:44 +00:00

Read the documentation in qemu-doc.html or on http://wiki.qemu.org

- QEMU team
Description
No description provided
Readme 404 MiB
Languages
C 82.6%
C++ 6.5%
Python 3.4%
Dylan 2.9%
Shell 1.6%
Other 2.8%