|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH v6 01/16] libs/guest: Reduce number of parts in write_split_record
On Fri, Jun 19, 2026 at 02:04:46PM +0100, Frediano Ziglio wrote: > Small optimization. > There's no much sense to split the header in 2 pieces, it will > just take more time and space to reassemble them in the final > buffer. > This also avoids truncating combined_length to 32 bit in case of > 64 bit machines potentially avoiding following record_length check > (it could still be truncated writing it in xc_sr_rhdr structure > but the following check will catch it). > The function become more coherent with following read_record > function. > > Signed-off-by: Frediano Ziglio <frediano.ziglio@xxxxxxxxxx> > Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Acked-by: Anthony PERARD <anthony.perard@xxxxxxxxxx> Thanks, -- Anthony Perard | Vates XCP-ng Developer XCP-ng & Xen Orchestra - Vates solutions web: https://vates.tech
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |