swiotlb abstraction (e.g. for Xen)
PATCH 4/4 swiotlb abstraction (e.g. for Xen)
This patch adds abstraction so that the file can be used by environments other than IA64 and EM64T, namely for Xen.
Even if this patch is considered too convoluted, I would appreciate if the other three ones could still be considered for merging.
include/asm-ia64/swiotlb.h new file +9 -0
@@ -0,0 +1,9 @@ +#ifndef _ASM_SWIOTLB_H +#define _ASM_SWIOTLB_H 1 + +#include <asm/machvec.h> + +#define SWIOTLB_ARCH_NEED_LATE_INIT +#define SWIOTLB_ARCH_NEED_ALLOC + +#endif /* _ASM_SWIOTLB_H */
include/asm-x86_64/swiotlb.h +1 -0
@@ -44,6 +44,7 @@ extern void swiotlb_init(void);extern int swiotlb_force;#ifdef CONFIG_SWIOTLB +#define SWIOTLB_ARCH_NEED_ALLOC extern int swiotlb;#else #define swiotlb 0
lib/swiotlb.c +149 -35
386 lines not on this page · raw message
Re: Xen 3.0.3 Kernel 2.6.18
Claes Lindblom asked:
Quoted 1 line
Where can I get working patches for the latest kernel 2.6.18.x?
Atsushi SAKAI replied:
Quoted 2 lines
It is better to see FC6 SRPM.
http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/
So, I downloaded this SRPM and applied all the patches. I modified buildconfigs/mk.linux-2.6-xen to say:
LINUX_VER = 2.6.18.3
then "make world"
I get lots of errors about duplicate definitions, e.g. alt_instr and LOCK_PREFIX from
linux-2.6-xen-sparse/include/asm-x86_64/mach-xen/asm/system.h
I tried fixing those piecemeal, but the hits just keep on coming. Should I not be using 2.6.18.3 ? Is there some other magic incantation I need? Sorry for what's probably a newb question, but I did search the archives and googled all over first. I'm trying 2.8.18.1 in parallel with this email, but my confidence is not high. I have spent a while on this already, but I am running out of time. I'm racing the deadline for getting out a paper on Myrinet performance over Xen (it's very good so far with 3.0.3 on 2.6.16) for the IEEE conference in June.
thanks in advance,
-reese