<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">  I tried to build and load on F12 rawhide with the most recent
gcc,glibc and kernel (fedoras). So, xen was installed via
xen-3.4.1-3.src.rpm along with libvirt ( via rawhide again). Please,
let me know your environment for successful build and load rc8 under 
Xen 3.5.<br><br>Boris.<br>BTW <br>Please,be advised :-<br><br>**********<br>Quote:-<br>**********<br><br>>Does this help?<br><br>>diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h<br>>index cb1a663..f4ebffb 100644<br>>--- a/include/linux/swiotlb.h<br>>+++ b/include/linux/swiotlb.h<br>>@@ -2,6 +2,7 @@<br> >#define __LINUX_SWIOTLB_H<br> <br> >#include <linux/types.h><br>>+#include <linux/dma-mapping.h><br> <br> >struct device;<br> >struct dma_attrs;<br><br>  Now kernel gets built, but still fails to load under either Xen 3.5 or Xen
 3.4.1.<br>  <span style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer;" class="yshortcuts" id="lw_1252251397_0"><span class="yshortcuts" id="lw_1252252118_0">Stack traces</span></span> differ on C2D E8400 (Xen 3.4.1)  and Q9550 (Xen 3.5 unstable )boxes. <br>  On the last box :-<br><br> do_one_initcall + 0x37/0x1a0<br> kernel_init + 0x164/0x1ba<br> child_rip + 0xa/0x20<br> ? int_ret_from_sys_call 0x7/0x16<br> ? retint_restore_arg + 0x5/0x6<br> ? child_rip 0x0/0x20<br><br> Two last
 commands are the same on the first box. Previous differ.<br><br>Boris.<br>P.S. I cannot buy or order 20 m of NUL modem cable.<br>       Just 2.5 m . That's all<br><br>--- On <b>Sat, 9/5/09, Jeremy Fitzhardinge <i><<span style="border-bottom: 1px dashed rgb(0, 102, 204); background: transparent none repeat scroll 0% 0%; -moz-background-clip: border; -moz-background-origin: padding; -moz-background-inline-policy: continuous; cursor: pointer;" class="yshortcuts" id="lw_1252251397_1"><span style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer;" class="yshortcuts" id="lw_1252252118_1">jeremy@goop.org</span></span>></i></b> wrote:<br><br>From: Jeremy Fitzhardinge <jeremy@goop.org><br>Subject: [Xen-devel] Re: Errors when build 2.6.31-rc8<br>To: "Boris Derzhavets" <bderzhavets@yahoo.com><br>Cc: "Xen-devel" <<span style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer;"
 class="yshortcuts" id="lw_1252251397_2"><span style="border-bottom: 1px dashed rgb(0, 102, 204); cursor: pointer;" class="yshortcuts" id="lw_1252252118_2">xen-devel@lists.xensource.com</span></span>><br>Date: Saturday, September 5, 2009, 11:48 AM<br><br>On
 09/05/09 04:18, Boris Derzhavets wrote:<br>> After fresh git clone, git checkout tune "make menuconfig" the same<br>> way as for RC6<br>><br>> When build :-<br>><br>> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:5,<br>>   
               from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:<br>> include/linux/swiotlb.h:48: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb.h:48: warning: its scope is only this definition<br>> or declaration, which is probably not what you want<br>> include/linux/swiotlb.h:51: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb.h:63: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb..h:68: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb.h:72: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb.h:76: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb.h:80: warning:
 ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb.h:84: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb.h:89: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> include/linux/swiotlb.h:94: warning: ‘enum dma_data_direction’<br>> declared inside parameter list<br>> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,<br>>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function<br>> ‘get_dma_ops’:<br>> /usr/src/linux-2..6-xen/arch/x86/include/asm/dma-mapping.h:29: error:<br>> dereferencing pointer to incomplete type<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:32: error:<br>> dereferencing pointer to incomplete
 type<br>> In file included from<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,<br>>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,<br>>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:12: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:11: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function<br>> ‘dma_map_single_attrs’:<br>> include/asm-generic/dma-mapping-common.h:18: error: implicit<br>> declaration of function ‘valid_dma_direction’<br>> In file included from<br>>
 /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:37,<br>>                  from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,<br>>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:<br>> include/asm-generic/dma-mapping-common.h:19: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:31: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:30: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function<br>> ‘dma_unmap_single_attrs’:<br>> include/asm-generic/dma-mapping-common.h:36: error: dereferencing<br>> pointer to incomplete type<br>>
 include/asm-generic/dma-mapping-common.h:37: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:43: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:42: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_sg_attrs’:<br>> include/asm-generic/dma-mapping-common.h:52: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:60: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:59: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In
 function<br>> ‘dma_unmap_sg_attrs’:<br>> include/asm-generic/dma-mapping-common.h:66: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:67: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:72: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:72: error: parameter 5<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function ‘dma_map_page’:<br>> include/asm-generic/dma-mapping-common.h:79: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:86: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>>
 include/asm-generic/dma-mapping-common.h:86: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function ‘dma_unmap_page’:<br>> include/asm-generic/dma-mapping-common.h:91: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:92: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:98: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:98: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function<br>> ‘dma_sync_single_for_cpu’:<br>> include/asm-generic/dma-mapping-common.h:103: error: dereferencing<br>> pointer to incomplete type<br>>
 include/asm-generic/dma-mapping-common.h:104: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:111: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:111: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function<br>> ‘dma_sync_single_for_device’:<br>> include/asm-generic/dma-mapping-common.h:116: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:117: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:126: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>>
 include/asm-generic/dma-mapping-common.h:126: error: parameter 5<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function<br>> ‘dma_sync_single_range_for_cpu’:<br>> include/asm-generic/dma-mapping-common.h:131: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:132: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:137: error: type of formal<br>> parameter 4 is incomplete<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:144: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:144: error: parameter 5<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function<br>>
 ‘dma_sync_single_range_for_device’:<br>> include/asm-generic/dma-mapping-common.h:149: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:150: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:155: error: type of formal<br>> parameter 4 is incomplete<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:160: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:160: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function<br>> ‘dma_sync_sg_for_cpu’:<br>> include/asm-generic/dma-mapping-common.h:165: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:166: error:
 dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h: At top level:<br>> include/asm-generic/dma-mapping-common.h:173: warning: ‘enum<br>> dma_data_direction’ declared inside parameter list<br>> include/asm-generic/dma-mapping-common.h:173: error: parameter 4<br>> (‘dir’) has incomplete type<br>> include/asm-generic/dma-mapping-common.h: In function<br>> ‘dma_sync_sg_for_device’:<br>> include/asm-generic/dma-mapping-common.h:178: error: dereferencing<br>> pointer to incomplete type<br>> include/asm-generic/dma-mapping-common.h:179: error: dereferencing<br>> pointer to incomplete type<br>> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,<br>>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function<br>>
 ‘dma_mapping_error’:<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:42: error:<br>> dereferencing pointer to incomplete type<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:43: error:<br>> dereferencing pointer to incomplete type<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: At top level:<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: warning:<br>> ‘enum dma_data_direction’ declared inside parameter list<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:60: error:<br>> parameter 4 (‘dir’) has incomplete type<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function<br>> ‘dma_alloc_coherent_mask’:<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:77: error:<br>> dereferencing pointer to incomplete type<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:79: error:<br>>
 implicit declaration of function ‘DMA_BIT_MASK’<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function<br>> ‘dma_alloc_coherent’:<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:114: error:<br>> implicit declaration of function ‘is_device_dma_capable’<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:117: error:<br>> dereferencing pointer to incomplete type<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:120: error:<br>> dereferencing pointer to incomplete type<br>> In file included from /usr/src/linux-2.6-xen/arch/x86/include/asm/agp.h:9,<br>>                  from drivers/gpu/drm/ttm/ttm_agp_backend.c:40:<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h: In function<br>> ‘dma_free_coherent’:<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:138: error:<br>>
 dereferencing pointer to incomplete type<br>> /usr/src/linux-2.6-xen/arch/x86/include/asm/dma-mapping.h:139: error:<br>> dereferencing pointer to incomplete type<br>> make[4]: *** [drivers/gpu/drm/ttm/ttm_agp_backend.o] Error 1<br>> make[3]: *** [drivers/gpu/drm/ttm] Error 2<br>> make[2]: *** [drivers/gpu/drm] Error 2<br>> make[1]: *** [drivers/gpu] Error 2<br>> make: *** [drivers] Error 2<br>><br><br>Does this help?<br><br>diff --git a/include/linux/swiotlb.h b/include/linux/swiotlb.h<br>index cb1a663..f4ebffb 100644<br>--- a/include/linux/swiotlb.h<br>+++ b/include/linux/swiotlb.h<br>@@ -2,6 +2,7 @@<br> #define __LINUX_SWIOTLB_H<br> <br> #include <linux/types.h><br>+#include <linux/dma-mapping.h><br> <br> struct device;<br> struct dma_attrs;<br><br>    J<br><br><br>--- On <b>Sun, 9/6/09, Mark Schloesser <i><mark.schloesser@rwth-aachen.de></i></b> wrote:<br><blockquote style="border-left: 2px
 solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Mark Schloesser <mark.schloesser@rwth-aachen.de><br>Subject: Re: [Xen-devel] Re: [Fedora-xen] Xorg on JF 2.6.31-rc8 with xen 3.5 unstable<br>To: "Boris Derzhavets" <bderzhavets@yahoo.com><br>Cc: fedora-xen@redhat.com, xen-devel@lists.xensource.com<br>Date: Sunday, September 6, 2009, 11:09 AM<br><br><div class="plainMail">Boris,<br><br>actually I used your config. The same config as I used for -rc6 build.<br>Works just fine for me - but I did not try booting with 3.4.1, only with<br>xen-unstable.<br><br>Mark<br><br><br>Boris Derzhavets wrote:<br>> Mark,<br>> Could you share your .config for JF's 2.6.31-rc8 which loads under Xen Unstable.<br>> Looks like i miss some point tuning kernel.<br>> <br>> Thanks.<br>> Boris.<br>> <br>> --- On Fri, 9/4/09, Boris Derzhavets <<a ymailto="mailto:bderzhavets@yahoo.com"
 href="/mc/compose?to=bderzhavets@yahoo.com">bderzhavets@yahoo.com</a>> wrote:<br>> <br>> From: Boris Derzhavets <<a ymailto="mailto:bderzhavets@yahoo.com" href="/mc/compose?to=bderzhavets@yahoo.com">bderzhavets@yahoo.com</a>><br>> Subject: [Xen-devel] Re: [Fedora-xen] Xorg on JF 2.6.31-rc8 with xen 3.5 unstable<br>> To: <a ymailto="mailto:fedora-xen@redhat.com" href="/mc/compose?to=fedora-xen@redhat.com">fedora-xen@redhat.com</a>, "Mark Schloesser" <<a ymailto="mailto:mark.schloesser@rwth-aachen.de" href="/mc/compose?to=mark.schloesser@rwth-aachen..de">mark.schloesser@rwth-aachen.de</a>><br>> Cc: <a ymailto="mailto:xen-devel@lists.xensource.com" href="/mc/compose?to=xen-devel@lists.xensource.com">xen-devel@lists.xensource.com</a><br>> Date: Friday, September 4, 2009, 2:02 PM<br>> <br>> I did "git pull" , built 2.6.31-c8 kernel with Xen Dom0 support.<br>> However, attempt to load kernel under Xen 3.4.1
 drops<br>> into stack trace and hangs on both F11 and Ubuntu 9.10. <br>> Old 2.6.31-rc6's .config file has been used without any changes.<br>> I can't set up serial console in meantime.<br>> <br>> Boris<br>> <br>> --- On Fri, 9/4/09, Mark Schloesser <<a ymailto="mailto:mark.schloesser@rwth-aachen.de" href="/mc/compose?to=mark.schloesser@rwth-aachen.de">mark.schloesser@rwth-aachen.de</a>> wrote:<br>> <br>> From: Mark Schloesser <<a ymailto="mailto:mark.schloesser@rwth-aachen.de" href="/mc/compose?to=mark.schloesser@rwth-aachen.de">mark.schloesser@rwth-aachen.de</a>><br>> Subject: [Fedora-xen] Xorg on JF 2.6.31-rc8 with xen 3.5 unstable<br>> To: <a ymailto="mailto:fedora-xen@redhat.com" href="/mc/compose?to=fedora-xen@redhat.com">fedora-xen@redhat.com</a><br>> Date: Friday, September 4, 2009, 10:26 AM<br>> <br>> Hey guys,<br>> <br>> I sadly had no luck fixing my X problem. The system seems to run
 fine<br>> and as the subject says I moved<br>>  from 3.4.1-3 to xen-unstable. As I am<br>> already doing fairly bleeding-edge stuff here I thought this would<br>> probably make most sense.<br>> <br>> As I only have an nvs290 gfx card available right now I can't check if<br>> this is the problem. But I'll try to get my hands on some other cards<br>> for next week.<br>> <br>> Today I read through a lot of mailing list archives and PDFs trying to<br>> dig deeper into the IOMMU/PCI passthrough stuff and I want to give the<br>> graphics passthrough situation a shot myself. Sadly it is very confusing<br>> to read about the different setups and hardware environments with both<br>> positive and negative results. Also the patchsets and versions everybody<br>> is talking about do not make it any easier :)<br>> <br>> My current questions would be:<br>> - is the combination of JF git kernel with
 xen-unstable the right way to<br>> go for this setup? Or should I perhaps use older xen version and apply<br>> some patchset? I think some of those<br>>  patches were applied in<br>> xen-unstable already but I am not quite sure...<br>> <br>> - does anyone have hints or clarification regarding the Xorg problem on<br>> dom0? As I said there are no eye-catching log entries or errors except<br>> the Xorg backtrace at the end of the log file (posted to list before).<br>> This happens regardless of which driver I enable (vesa/nv/nouveau). The<br>> nvidia binary driver compiles without problems and seems to come up but<br>> only gives me a black screen and also locks the vtys.<br>> <br>> <br>> Thanks to the great help, reports and instructions Boris and others!<br>> <br>> Mark<br>> <br>> <br>> -----Inline Attachment Follows-----<br>> <br>> --<br>> Fedora-xen mailing list<br>> <a
 ymailto="mailto:Fedora-xen@redhat.com" href="/mc/compose?to=Fedora-xen@redhat.com">Fedora-xen@redhat.com</a><br>> <a href="https://www.redhat.com/mailman/listinfo/fedora-xen" target="_blank">https://www.redhat.com/mailman/listinfo/fedora-xen</a><br>> <br>> <br>> <br>> <br>> <br>>       <br>> -----Inline Attachment Follows-----<br>> <br>> _______________________________________________<br>> Xen-devel mailing list<br>> <a ymailto="mailto:Xen-devel@lists.xensource.com" href="/mc/compose?to=Xen-devel@lists.xensource.com">Xen-devel@lists.xensource.com</a><br>> <a href="http://lists.xensource.com/xen-devel" target="_blank">http://lists.xensource.com/xen-devel</a><br>> <br>> <br>> <br>> <br>> <br>> <br>> ------------------------------------------------------------------------<br>> <br>> _______________________________________________<br>> Xen-devel mailing
 list<br>> <a ymailto="mailto:Xen-devel@lists.xensource.com" href="/mc/compose?to=Xen-devel@lists.xensource.com">Xen-devel@lists.xensource.com</a><br>> <a href="http://lists.xensource.com/xen-devel" target="_blank">http://lists.xensource.com/xen-devel</a><br><br></div></blockquote></td></tr></table><br>