Re: [Qemu-devel] [PATCH for-4.0 v3 2/4] refactor load_image_size

2018-12-03 Thread Richard Henderson
On 12/3/18 8:48 AM, Li Zhijian wrote: > Don't expect read(2) can always read as many as it's told. > > Signed-off-by: Li Zhijian > --- > hw/core/loader.c | 11 +-- > 1 file changed, 5 insertions(+), 6 deletions(-) Reviewed-by: Richard Henderson r~

[Qemu-devel] [PATCH for-4.0 v3 2/4] refactor load_image_size

2018-12-03 Thread Li Zhijian
Don't expect read(2) can always read as many as it's told. Signed-off-by: Li Zhijian --- hw/core/loader.c | 11 +-- 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/hw/core/loader.c b/hw/core/loader.c index fa41842..9cbceab 100644 --- a/hw/core/loader.c +++ b/hw/core/loader.