Re: [RFC 2/6] udmabuf: add ability to set access flags on udmabuf

2019-08-04 Thread Gerd Hoffmann
On Fri, Aug 02, 2019 at 09:45:15AM -0700, Gurchetan Singh wrote: > On Wed, Jul 31, 2019 at 11:40 PM Gerd Hoffmann wrote: > > > > On Wed, Jul 31, 2019 at 07:25:13PM -0700, Gurchetan Singh wrote: > > > The main use for udmabuf is sending guest memory pages > > > to the host. > > > > > > It's general

Re: [RFC 2/6] udmabuf: add ability to set access flags on udmabuf

2019-08-02 Thread Gurchetan Singh
On Wed, Jul 31, 2019 at 11:40 PM Gerd Hoffmann wrote: > > On Wed, Jul 31, 2019 at 07:25:13PM -0700, Gurchetan Singh wrote: > > The main use for udmabuf is sending guest memory pages > > to the host. > > > > It's generally a bad idea to have to separate mappings with > > different attributes. For e

Re: [RFC 2/6] udmabuf: add ability to set access flags on udmabuf

2019-07-31 Thread Gerd Hoffmann
On Wed, Jul 31, 2019 at 07:25:13PM -0700, Gurchetan Singh wrote: > The main use for udmabuf is sending guest memory pages > to the host. > > It's generally a bad idea to have to separate mappings with > different attributes. For example, a WC mapping the guest > kernel and cached mapping on the ho

[RFC 2/6] udmabuf: add ability to set access flags on udmabuf

2019-07-31 Thread Gurchetan Singh
The main use for udmabuf is sending guest memory pages to the host. It's generally a bad idea to have to separate mappings with different attributes. For example, a WC mapping the guest kernel and cached mapping on the host is problematic. Add creation time flags so the user has responsibility fo