]> 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>
Wed, 22 Aug 2012 00:47:10 +0000 (10:47 +1000)
commitbe46274047b142b6f0c4b0ec38e68d08ec5dfd57
tree11909638c5eb2a57112dcfc9d0581a5a4eabf8ed
parentbd029f48459adc8a72a2db95f7d79a7296c5ad5a
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>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
drivers/char/virtio_console.c