Re: [Qemu-devel] qemu_file_rate_limit

2017-04-06 Thread Peter Xu
On Thu, Apr 06, 2017 at 12:43:16PM +0430, ali saeedi wrote: > Hi > what does 'qemu_file_rate_limit' function do? > thanks It returns 1 if the stream is not full (so that we can continue send something), otherwise 0. Generally, it's used like: if (qemu_file_rate_limit(f)) { /* we can stil

[Qemu-devel] qemu_file_rate_limit

2017-04-06 Thread ali saeedi
Hi what does 'qemu_file_rate_limit' function do? thanks