qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH] Check block driver read error in pflash_cfi0x


From: andrzej zaborowski
Subject: Re: [Qemu-devel] [PATCH] Check block driver read error in pflash_cfi0x
Date: Sun, 23 Aug 2009 17:54:03 +0200

2009/8/21 Vijay Kumar <address@hidden>:
> If a flash file of size smaller than the flash size is specified in
> the -pflash option, the block driver returns error. But the
> pflash_cfi0x ignores the error. This results in a flash content of all
> zeroes. And the simulation aborts while executing code.
>
> This patch adds the checks for errors from bdrv_read and escalates it
> to the calling code.

Maybe it should print a message indicating the expected size and exit?

Cheers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]