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
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:
Allocate vrings use dma_alloc_coherent is a common way in kernel. As the
memory interacted between two systems should use consistent memory to
avoid caching effects, same as device page memory.
The orginal way use __get_free_pages and dma_map_single to allocate and
map vring, but not use
3 matches
Mail list logo