RE: [PATCH V4 1/2] misc: vop: change the way of allocating vring and device page

2020-10-27 Thread Sherry Sun
Hi Christoph, Thank you for improving the code. I think your code makes vop_mmap looks clearer. I have tested it on imx8qm platform(arm64 architecture) and it works well. I will send the code together in v5. Best regards Sherry > Subject: Re: [PATCH V4 1/2] misc: vop: change the way of

Re: [PATCH V4 1/2] misc: vop: change the way of allocating vring and device page

2020-10-27 Thread Christoph Hellwig
This looks much better, but we need to be careful to restore the original vm_start / vm_end. What do you think about the version below, which also simplifies vop_mmap a lot (completely untested): --- >From 2de72bf7444ee187a7576962d746d482c5bdd593 Mon Sep 17 00:00:00 2001 From: Sherry Sun Date: