Re: [Qemu-devel] [PATCH v3 3/5] qemu-file: Add fast ftell code path

2015-01-06 Thread Eric Blake
On 12/26/2014 07:42 AM, Alexander Graf wrote: > For ftell we flush the output buffer to ensure that we don't have anything > lingering in our internal buffers. This is a very safe thing to do. > > However, with the dynamic size measurement that the dynamic vmstate > description will bring this wou

[Qemu-devel] [PATCH v3 3/5] qemu-file: Add fast ftell code path

2014-12-26 Thread Alexander Graf
For ftell we flush the output buffer to ensure that we don't have anything lingering in our internal buffers. This is a very safe thing to do. However, with the dynamic size measurement that the dynamic vmstate description will bring this would turn out quite slow. Instead, we can fast path this