[PATCH] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers

2014-02-08 Thread Richard Yao
The 9p-virtio transport does zero copy on things larger than 1024 bytes in size. It accomplishes this by returning the physical addresses of pages to the virtio-pci device. At present, the translation is usually a bit shift. That approach produces an invalid page address when we read/write to vmal

Re: [PATCH] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers

2014-01-30 Thread Richard Yao
On Jan 30, 2014, at 7:44 PM, David Miller wrote: > From: David Miller > Date: Thu, 30 Jan 2014 16:29:26 -0800 (PST) > >> From: Richard Yao >> Date: Thu, 30 Jan 2014 13:02:48 -0500 >> >>> The 9p-virtio transport does zero copy on things larger than 1024 bytes >>> in size. It accomplishes this

Re: [PATCH] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers

2014-01-30 Thread David Miller
From: David Miller Date: Thu, 30 Jan 2014 16:29:26 -0800 (PST) > From: Richard Yao > Date: Thu, 30 Jan 2014 13:02:48 -0500 > >> The 9p-virtio transport does zero copy on things larger than 1024 bytes >> in size. It accomplishes this by returning the physical addresses of >> pages to the virtio-

Re: [PATCH] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers

2014-01-30 Thread David Miller
From: Richard Yao Date: Thu, 30 Jan 2014 13:02:48 -0500 > The 9p-virtio transport does zero copy on things larger than 1024 bytes > in size. It accomplishes this by returning the physical addresses of > pages to the virtio-pci device. At present, the translation is usually a > bit shift. > > How

[PATCH] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers

2014-01-30 Thread Richard Yao
The 9p-virtio transport does zero copy on things larger than 1024 bytes in size. It accomplishes this by returning the physical addresses of pages to the virtio-pci device. At present, the translation is usually a bit shift. However, that approach produces an invalid page address when we read/writ

[PATCH] 9p/trans_virtio.c: Fix broken zero-copy on vmalloc() buffers (second submission)

2014-01-30 Thread Richard Yao
This is my first real patch submission, which I sent out in December. Unfortunately, I sent it to only a subset of the correct people. Time passed, Greg Koah-Hartman was kind enough to give me some pointers and I am now sending it back out to the correct people. My apologies to anyone who was bit b