Subject: CVS commit: [netbsd-3] src/sys/arch/xen
To: None <source-changes@NetBSD.org>
From: Matthias Scheler <email@example.com>
Date: 08/25/2005 20:49:54
Module Name: src
Committed By: tron
Date: Thu Aug 25 20:49:54 UTC 2005
src/sys/arch/xen/conf [netbsd-3]: files.xen
src/sys/arch/xen/include [netbsd-3]: bus_private.h
src/sys/arch/xen/x86 [netbsd-3]: xen_bus_dma.c
Pull up following revision(s) (requested by bouyer in ticket #696):
sys/arch/xen/x86/xen_bus_dma.c: revision 1.1
sys/arch/xen/include/bus_private.h: revision 1.2
sys/arch/xen/conf/files.xen: revision 1.28
Deal with the machine address space being non-contigous in bus_dmamem_alloc():
- Define _BUS_AVAIL_END to 0xffffffff, as we don't have an easy way to
find the upper bound for our machine address space (and this can change
when we swap pages with the hypervisor).
- implement _xen_bus_dmamem_alloc_range(), which will request a contigous
set of pages to the hypervisor if the pages returned by uvm_pglistalloc()
don't fit the constraints.
We can't deal with the low/high constraints yet, because Xen doesn't offer a
way to get pages in a specific ranges of addresses.
Based on patches from Dave Thompson (in private mail), with heavy hacking
To generate a diff of this commit:
cvs rdiff -r22.214.171.124 -r126.96.36.199 src/sys/arch/xen/conf/files.xen
cvs rdiff -r188.8.131.52 -r184.108.40.206 src/sys/arch/xen/include/bus_private.h
cvs rdiff -r0 -r220.127.116.11 src/sys/arch/xen/x86/xen_bus_dma.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.