]> git.karo-electronics.de Git - karo-tx-linux.git/commit
virtio/console: Add splice_write support
authorMasami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Thu, 9 Aug 2012 12:30:39 +0000 (21:30 +0900)
committerStephen Rothwell <sfr@canb.auug.org.au>
Tue, 4 Sep 2012 00:45:57 +0000 (10:45 +1000)
commitf5e28d0aab4699b4e0acc027af512f89fca25714
treeb7a566354b1e3dad0d8312a799d17733da7b260a
parent8b28d3a0165f2b3001ca11037ab862578ee46005
virtio/console: Add splice_write support

Enable to use splice_write from pipe to virtio-console port.
This steals pages from pipe and directly send it to host.

Note that this may accelerate only the guest to host path.

Changes in v2:
 - Use GFP_KERNEL instead of GFP_ATOMIC in syscall context function.

Signed-off-by: Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>
Acked-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c