Displaying 20 results from an estimated 67 matches for "remap_pfn_rang".
Did you mean:
remap_pfn_range
2007 Mar 16
7
Physical address mapping to user space in dom0 problem
...can perform bus master DMA. I developed a PCI
device driver which can allocate DMA buffer and provide mmap operation to
map the I/O and DMA buffer to user space.
The PCI device driver works well under Linux 2.6.20. However it brokes under
XEN 3.0.4. It appears that mmap map to the wrong memory. remap_pfn_range in
mmap function return no error when it is used to map both I/O and DMA
buffer. If I use io_remap_pfn_range instead of remap_pfn_range, I/O
mapping works but DMA buffer mapping return -1.
Is this a known problem for XEN 3.0.4 and will be fixed later? Is there any
alternative way to map the D...
2020 Jun 03
2
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...gt; 750 u16 index = vma->vm_pgoff;
>>>> 751
>>>> 752 notify = ops->get_vq_notification(vdpa, index);
>>>> 753
>>>> > 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
>>>> 755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
>>>> 756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
>>>> 757 vma->vm_page_prot))
>>>> 758 return VM_FAULT_SIGBUS;
>>>> 759
>>>> 760 return VM_FAULT_NOPAG...
2020 Jun 03
2
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...gt; 750 u16 index = vma->vm_pgoff;
>>>> 751
>>>> 752 notify = ops->get_vq_notification(vdpa, index);
>>>> 753
>>>> > 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
>>>> 755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
>>>> 756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
>>>> 757 vma->vm_page_prot))
>>>> 758 return VM_FAULT_SIGBUS;
>>>> 759
>>>> 760 return VM_FAULT_NOPAG...
2020 Jun 02
2
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...truct vm_area_struct *vma = vmf->vma;
>> 750 u16 index = vma->vm_pgoff;
>> 751
>> 752 notify = ops->get_vq_notification(vdpa, index);
>> 753
>> > 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
>> 755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
>> 756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
>> 757 vma->vm_page_prot))
>> 758 return VM_FAULT_SIGBUS;
>> 759
>> 760 return VM_FAULT_NOPAGE;
>> 761 }
>> 762
>...
2020 Jun 02
2
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...truct vm_area_struct *vma = vmf->vma;
>> 750 u16 index = vma->vm_pgoff;
>> 751
>> 752 notify = ops->get_vq_notification(vdpa, index);
>> 753
>> > 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
>> 755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
>> 756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
>> 757 vma->vm_page_prot))
>> 758 return VM_FAULT_SIGBUS;
>> 759
>> 760 return VM_FAULT_NOPAGE;
>> 761 }
>> 762
>...
2020 Jun 02
0
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...vma;
> > > 750 u16 index = vma->vm_pgoff;
> > > 751
> > > 752 notify = ops->get_vq_notification(vdpa, index);
> > > 753
> > > > 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
> > > 755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
> > > 756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
> > > 757 vma->vm_page_prot))
> > > 758 return VM_FAULT_SIGBUS;
> > > 759
> > > 760 return VM_FAULT_NOPAGE;
> > &g...
2020 Jun 03
0
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...ff;
> > > > > 751
> > > > > 752 notify = ops->get_vq_notification(vdpa, index);
> > > > > 753
> > > > > > 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
> > > > > 755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
> > > > > 756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
> > > > > 757 vma->vm_page_prot))
> > > > > 758 return VM_FAULT_SIGBUS;
> > > > > 759
> > > &...
2020 Jun 01
2
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...fig;
748 struct vdpa_notification_area notify;
749 struct vm_area_struct *vma = vmf->vma;
750 u16 index = vma->vm_pgoff;
751
752 notify = ops->get_vq_notification(vdpa, index);
753
> 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
757 vma->vm_page_prot))
758 return VM_FAULT_SIGBUS;
759
760 return VM_FAULT_NOPAGE;
761 }
762
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/h...
2020 Jun 01
2
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...fig;
748 struct vdpa_notification_area notify;
749 struct vm_area_struct *vma = vmf->vma;
750 u16 index = vma->vm_pgoff;
751
752 notify = ops->get_vq_notification(vdpa, index);
753
> 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
757 vma->vm_page_prot))
758 return VM_FAULT_SIGBUS;
759
760 return VM_FAULT_NOPAGE;
761 }
762
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/h...
2006 Feb 08
3
[PATCH] direct_remap_pfn_range vm_flags fix
direct_remap_pfn_range() does not properly mark vma with VM_PFNMAP.
This triggers improper reference counting on what rmap thought was
a normal page, and a subsequent BUG() such as:
Eeek! page_mapcount(page) went negative! (-1)
page->flags = 414
page->count = 1
page->mapping = 00000000
------------[ cut...
2011 Aug 24
0
Bug#639112: xen: DomU access to dual-ported RAM area on PCI card fails
...57.817723] 1 multicall(s) failed: cpu 0
[ 357.820021] Pid: 636, comm: map_dpm Not tainted 2.6.32-5-xen-686 #1
[ 357.820021] Call Trace:
[ 357.820021] [<c10042e5>] ? xen_mc_flush+0xa2/0x150
[ 357.820021] [<c1005051>] ? xen_leave_lazy_mmu+0x5/0xa
[ 357.820021] [<c10a4910>] ? remap_pfn_range+0x286/0x303
[ 357.820021] [<c892846e>] ? uio_mmap+0xbc/0xe1 [uio]
[ 357.820021] [<c10a81ed>] ? mmap_region+0x267/0x443
[ 357.820021] [<c109e10a>] ? sys_mmap_pgoff+0xc8/0x147
[ 357.820021] [<c128fb5c>] ? do_debug+0x117/0x126
[ 357.820021] [<c1008f7c>] ? sysca...
2020 May 29
1
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...vdpa_notification_area notify;
> + struct vm_area_struct *vma = vmf->vma;
> + u16 index = vma->vm_pgoff;
> +
> + notify = ops->get_vq_notification(vdpa, index);
> +
> + vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
> + if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
> + notify.addr >> PAGE_SHIFT, PAGE_SIZE,
> + vma->vm_page_prot))
> + return VM_FAULT_SIGBUS;
> +
> + return VM_FAULT_NOPAGE;
> +}
> +
> +static const stru...
2023 Jan 29
0
[PATCH v3 1/2] vdpa: support specify the pgprot of vq notification area
...;vm_page_prot = pgprot_noncached(vma->vm_page_prot);
> + vma->vm_page_prot = ops->get_vq_notification_pgprot ?
> + ops->get_vq_notification_pgprot(vdpa, index, vma->vm_page_prot) :
> + pgprot_noncached(vma->vm_page_prot);
> if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
> PFN_DOWN(notify.addr), PAGE_SIZE,
> vma->vm_page_prot))
> diff --git a/include/linux/vdpa.h b/include/linux/vdpa.h
> index 6d0f5e4e82c2..07fcf5e6abc8 100644
> --- a/include/linux/vdpa....
2020 Jun 02
0
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...on_area notify;
> 749 struct vm_area_struct *vma = vmf->vma;
> 750 u16 index = vma->vm_pgoff;
> 751
> 752 notify = ops->get_vq_notification(vdpa, index);
> 753
> > 754 vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
> 755 if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
> 756 notify.addr >> PAGE_SHIFT, PAGE_SIZE,
> 757 vma->vm_page_prot))
> 758 return VM_FAULT_SIGBUS;
> 759
> 760 return VM_FAULT_NOPAGE;
> 761 }
> 762
Yes well, all this remapping clearly ha...
2020 May 29
0
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...+ const struct vdpa_config_ops *ops = vdpa->config;
+ struct vdpa_notification_area notify;
+ struct vm_area_struct *vma = vmf->vma;
+ u16 index = vma->vm_pgoff;
+
+ notify = ops->get_vq_notification(vdpa, index);
+
+ vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
+ if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
+ notify.addr >> PAGE_SHIFT, PAGE_SIZE,
+ vma->vm_page_prot))
+ return VM_FAULT_SIGBUS;
+
+ return VM_FAULT_NOPAGE;
+}
+
+static const struct vm_operations_struct vhost_vdpa_vm_ops = {
+ .fault = vhost_vdpa_fault,
+};
+
+static int vhost_...
2020 May 29
0
[PATCH 4/6] vhost_vdpa: support doorbell mapping via mmap
...tion_area notify;
>> +??? struct vm_area_struct *vma = vmf->vma;
>> +??? u16 index = vma->vm_pgoff;
>> +
>> +??? notify = ops->get_vq_notification(vdpa, index);
>> +
>> +??? vma->vm_page_prot = pgprot_noncached(vma->vm_page_prot);
>> +??? if (remap_pfn_range(vma, vmf->address & PAGE_MASK,
>> +??????????????? notify.addr >> PAGE_SHIFT, PAGE_SIZE,
>> +??????????????? vma->vm_page_prot))
>> +??????? return VM_FAULT_SIGBUS;
>> +
>> +??? return VM_FAULT_NOPAGE;
>> +}
>> +
>> +static const stru...
2007 Mar 16
2
Error compiling zaptel 1.4.0
...erencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:378: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:378: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: implicit declaration
of function 'remap_pfn_range'
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: dereferencing pointer
to incomplete type
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: 'PAGE_SHARED'
undeclared (first use in this function)
/usr/src/zaptel-1.4.0/zttranscode.c:384: error: (Each undeclared
identifier is reported only o...
2020 May 29
12
[PATCH 0/6] vDPA: doorbell mapping
Hi all:
This series introduce basic functionality of doorbell mapping support
for vhost-vDPA. Userspace program may use mmap() to map a the doorbell
of a specific virtqueue into its address space. This is help to reudce
the syscall or vmexit overhead.
A new vdpa_config_ops was introduced to report the location of the
doorbell, vhost_vdpa may then choose to map the doorbell when:
- The doorbell
2020 May 29
12
[PATCH 0/6] vDPA: doorbell mapping
Hi all:
This series introduce basic functionality of doorbell mapping support
for vhost-vDPA. Userspace program may use mmap() to map a the doorbell
of a specific virtqueue into its address space. This is help to reudce
the syscall or vmexit overhead.
A new vdpa_config_ops was introduced to report the location of the
doorbell, vhost_vdpa may then choose to map the doorbell when:
- The doorbell
2009 Jan 10
51
Xen with dom0 pvops on ultra-recent "git tip" kernel on x86_64
Hi everyone,
I am very excited to see that dom0 pvops is finally coming close to
working, so I wanted to give it a try.
>From the description it was not clear to me which kernel to chose as
base for the patches.hg, so I took the latest (that was ~ 2 weeks ago)
kernel on git.kernel.org I could find (post-2.6.28 git tip at that
point).
I managed to more or less apply all of the patches in the