Re: [PATCH] virtio_console: Stop doing DMA on the stack

From
Amit Shah <hidden>
Date
2016-09-06 07:03:50
Also in
lkml
Reply to
Andy Lutomirski, 2016-08-30
On (Tue) 30 Aug 2016 [08:04:15], Andy Lutomirski wrote:
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.

Tested by typing both directions using picocom aimed at /dev/hvc0.

Signed-off-by: Andy Lutomirski <luto@kernel.org>
Looks fine,

Reviewed-by: Amit Shah <redacted>
---

Hi all-

This is currently broken in tip:x86/asm.  If you (Amit) like this patch,
would it make sense for Ingo to add it to -tip?
Yes, I'm fine with that.


     	 Amit
Thread (3 messages) 3 messages, 3 authors, last reply 2016-09-08
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help