On 2013-02-18 22:47, Anthony Liguori wrote: > This series implements an idea from Paolo to introduce flow control > in the char layer by converting all char backends to use GIOChannels > internally. Then we can just use the existing IO watch support in glib > to implement flow control. > > This is based on a rebased version of an old series of mine plus a > number of improvements from Amit Shah.
There is a problem with these changes, maybe just a small bug but I do not see a simple solution yet: If an input channel signals readiness but the frontend has no space (can_read returns 0), the main loop will start busy-waiting, causing 100% CPU load. It's trivial to reproduce: qemu-system-x86_64 -serial stdio -S, and then hit a key twice on that console. Jan
signature.asc
Description: OpenPGP digital signature
