RE: [PATCH v4] xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE

2018-04-11 Thread Paul Durrant
ano Stabellini ; Ingo > Molnar > Subject: Re: [PATCH v4] xen/privcmd: add > IOCTL_PRIVCMD_MMAP_RESOURCE > > Hi, > > On 10/04/18 08:58, Paul Durrant wrote: > > +static long privcmd_ioctl_mmap_resource(struct file *file, void __user > *udata) > > +{ > > +

Re: [PATCH v4] xen/privcmd: add IOCTL_PRIVCMD_MMAP_RESOURCE

2018-04-11 Thread Julien Grall
Hi, On 10/04/18 08:58, Paul Durrant wrote: +static long privcmd_ioctl_mmap_resource(struct file *file, void __user *udata) +{ + struct privcmd_data *data = file->private_data; + struct mm_struct *mm = current->mm; + struct vm_area_struct *vma; + struct privcmd_mmap_resour