[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] Question regarding SLAB corruption
On 9/7/07 13:07, "Lukas Hejtmanek" <xhejtman@xxxxxxxxxxx> wrote: > According to IB developers, it uses alloc_pages and then pci_map_sg which they > state that is DMA API. So, is it correct approach? Well, we currently assume that segments of a scatterlist (as passed to pci_map_sg) do not cross page boundaries. It looks like this assumption is broken (certainly for the infiniband driver!). I've just checked in the attached patch to fix this issue. Please give it a try in your dom0 tree. > I did debug like this - so it prints physical and virtual addresses and they > seems to be perfectly contiguous. Are the physical addresses real physical > addresses or virtualized by Xen hypervisor? You want to use virt_to_machine(). As you say, the addresses returned by virt_to_phys() are virtual-physical, which is not what you want. -- Keir Attachment:
map_sg.patch _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |