Re: [PATCH 2/2] hw/core/loader: workaround read() size limit.

2021-11-30 Thread Jamie Iles
Hi Philippe, On Thu, Nov 11, 2021 at 05:04:56PM +, Jamie Iles wrote: > On Thu, Nov 11, 2021 at 04:55:35PM +0100, Philippe Mathieu-Daudé wrote: > > On 11/11/21 16:43, Philippe Mathieu-Daudé wrote: > > > On 11/11/21 16:36, Jamie Iles wrote: > > >> Hi Philippe, > > >> > > >> On Thu, Nov 11, 2021

Re: [PATCH 2/2] hw/core/loader: workaround read() size limit.

2021-11-11 Thread Jamie Iles
On Thu, Nov 11, 2021 at 04:55:35PM +0100, Philippe Mathieu-Daudé wrote: > On 11/11/21 16:43, Philippe Mathieu-Daudé wrote: > > On 11/11/21 16:36, Jamie Iles wrote: > >> Hi Philippe, > >> > >> On Thu, Nov 11, 2021 at 03:55:48PM +0100, Philippe Mathieu-Daudé wrote: > >>> Hi Jamie, > >>> > >>> On 11/1

Re: [PATCH 2/2] hw/core/loader: workaround read() size limit.

2021-11-11 Thread Philippe Mathieu-Daudé
On 11/11/21 16:36, Jamie Iles wrote: > Hi Philippe, > > On Thu, Nov 11, 2021 at 03:55:48PM +0100, Philippe Mathieu-Daudé wrote: >> Hi Jamie, >> >> On 11/11/21 15:11, Jamie Iles wrote: >>> On Linux, read() will only ever read a maximum of 0x7000 bytes >>> regardless of what is asked. If the fi

Re: [PATCH 2/2] hw/core/loader: workaround read() size limit.

2021-11-11 Thread Philippe Mathieu-Daudé
On 11/11/21 16:43, Philippe Mathieu-Daudé wrote: > On 11/11/21 16:36, Jamie Iles wrote: >> Hi Philippe, >> >> On Thu, Nov 11, 2021 at 03:55:48PM +0100, Philippe Mathieu-Daudé wrote: >>> Hi Jamie, >>> >>> On 11/11/21 15:11, Jamie Iles wrote: On Linux, read() will only ever read a maximum of 0x7

Re: [PATCH 2/2] hw/core/loader: workaround read() size limit.

2021-11-11 Thread Jamie Iles
Hi Philippe, On Thu, Nov 11, 2021 at 03:55:48PM +0100, Philippe Mathieu-Daudé wrote: > Hi Jamie, > > On 11/11/21 15:11, Jamie Iles wrote: > > On Linux, read() will only ever read a maximum of 0x7000 bytes > > regardless of what is asked. If the file is larger than 0x7000 > > bytes the re

Re: [PATCH 2/2] hw/core/loader: workaround read() size limit.

2021-11-11 Thread Philippe Mathieu-Daudé
Hi Jamie, On 11/11/21 15:11, Jamie Iles wrote: > On Linux, read() will only ever read a maximum of 0x7000 bytes > regardless of what is asked. If the file is larger than 0x7000 > bytes the read will need to be broken up into multiple chunks. > > Cc: Luc Michel > Signed-off-by: Jamie Ile

[PATCH 2/2] hw/core/loader: workaround read() size limit.

2021-11-11 Thread Jamie Iles
On Linux, read() will only ever read a maximum of 0x7000 bytes regardless of what is asked. If the file is larger than 0x7000 bytes the read will need to be broken up into multiple chunks. Cc: Luc Michel Signed-off-by: Jamie Iles --- hw/core/loader.c | 40 ++