Amit Shah d25a9ddae9 virtio: console: make get_inbuf() return port->inbuf if present
Instead of pulling in a buffer from the vq each time it's called,
get_inbuf() now checks if the current active buffer, in port->inbuf is
valid.  If it is, just returns a pointer to it.  This ends up
simplifying a lot of code calling get_inbuf() since the check for
port->inbuf being valid was done by all the callers.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-11-02 11:41:00 +10:30
..
2011-07-28 01:26:30 -07:00
2011-03-31 11:26:23 -03:00
2011-05-25 20:43:33 +02:00
2011-03-31 11:26:23 -03:00
2010-10-15 15:53:27 +02:00
2011-02-02 15:28:19 +01:00
2011-07-26 16:49:47 -07:00
2011-03-31 11:26:23 -03:00
2011-08-03 14:25:21 -10:00
2011-09-15 13:55:03 +02:00
2011-01-10 08:51:44 -08:00
2011-03-31 11:26:23 -03:00
2010-10-15 15:53:27 +02:00