diff options
author | Andy Lutomirski <luto@kernel.org> | 2016-08-30 18:04:15 +0300 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-09-08 09:48:35 +0300 |
commit | 9472fe7040bba45c6200858cbe40d643cf02bccb (patch) | |
tree | 42fbdc86d2feb50ff5c288c4ef32dc9cfa977e94 /tools/testing/selftests/x86 | |
parent | 6271cfdfc0e4731b76921ef02fdd87409d71dfdf (diff) | |
download | linux-9472fe7040bba45c6200858cbe40d643cf02bccb.tar.xz |
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/x86')
0 files changed, 0 insertions, 0 deletions