]> 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>
Thu, 20 Sep 2012 00:14:50 +0000 (10:14 +1000)
commita2e5de018c855fc7f57fa43d0c3045bd5896cd12
treed562d1ad3420ddb2a0d5eaea61793d374c73842b
parent9c5abbf7371c74cd4f0d5bffddd142dc5164b02c
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