|
|
|
|
|
|
|
|
|
|
xen-devel
Re: [Xen-devel] Physical address mapping to user space in dom0 problem
On 18/3/07 20:11, "Haw-Yuan Yang" <hawyuan@xxxxxxxxx> wrote:
Here is what I have in the mmap handler:
if the physical address is MMIO
io_remap_pfn_range(MMIO_address)
else
remap_pfn_range(virt_to_phys(cpu-ptr-returned-by-pci-alloc-consistent)
Well, perhaps you can simplify your own mmap() handler since you perhaps know that it will only be used to mmap() your pci_alloc_consistent() memory block. Hence you may only need to handle the remap_pfn_range() case. But anyway, you have the idea now.
-- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|