diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-08-30 08:04:15 -0700 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-08 08:48:35 +0200 |
commit | 9472fe7040bba45c6200858cbe40d643cf02bccb (patch) | |
tree | 42fbdc86d2feb50ff5c288c4ef32dc9cfa977e94 /tools/testing/selftests | |
parent | 6271cfdfc0e4731b76921ef02fdd87409d71dfdf (diff) |
virtio_console: Stop doing DMA on the stack
virtio_console uses a small DMA buffer for control requests. Move
that buffer into heap memory.
Doing virtio DMA on the stack is normally okay on non-DMA-API virtio
systems (which is currently most of them), but it breaks completely
if the stack is virtually mapped (CONFIG_VMAP_STACK=y).
Tested by typing both directions using picocom aimed at /dev/hvc0.
Signed-off-by: Andy Lutomirski <luto@kernel.org>
Reviewed-by: Amit Shah <amit.shah@redhat.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Michael S. Tsirkin <mst@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: virtualization@lists.linux-foundation.org
Link: http://lkml.kernel.org/r/0afe68f9b4be6c95af9e7672b07acd0274c26dfe.1472569320.git.luto@kernel.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Diffstat (limited to 'tools/testing/selftests')
0 files changed, 0 insertions, 0 deletions