* Panic on cpu0 @ 2010-12-16 6:40 ZhouPeng 2010-12-16 7:41 ` ZhouPeng 0 siblings, 1 reply; 21+ messages in thread From: ZhouPeng @ 2010-12-16 6:40 UTC (permalink / raw) To: Xen-Devel (E-mail) [-- Attachment #1.1: Type: text/plain, Size: 328 bytes --] Hi all, I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded by default) on fedora8. After installing, I get the err msg on startup: (XEN) Panic on CPU 0 (XEN) BUG at domain_page.c 5 seconds later, the machine reboot. How to deal with this problem. Thanks, -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 455 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Panic on cpu0 2010-12-16 6:40 Panic on cpu0 ZhouPeng @ 2010-12-16 7:41 ` ZhouPeng 2010-12-16 7:59 ` Pasi Kärkkäinen 0 siblings, 1 reply; 21+ messages in thread From: ZhouPeng @ 2010-12-16 7:41 UTC (permalink / raw) To: Xen-Devel (E-mail) [-- Attachment #1.1: Type: text/plain, Size: 540 bytes --] (XEN) Panic on CPU 0: (XEN) Xen BUG at domain_page.c:102 Any solutions? 2010/12/16 ZhouPeng <zpengxen@gmail.com> > Hi all, > > I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded by > default) on fedora8. > > After installing, I get the err msg on startup: > > (XEN) Panic on CPU 0: > (XEN) Xen BUG at domain_page.c:102 > > 5 seconds later, the machine reboot. > > How to deal with this problem. > > Thanks, > > -- > Zhou Peng > My daily E-Mail: ailvpeng25@gmail.com > -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 1015 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 7:41 ` ZhouPeng @ 2010-12-16 7:59 ` Pasi Kärkkäinen 2010-12-16 9:30 ` ZhouPeng 0 siblings, 1 reply; 21+ messages in thread From: Pasi Kärkkäinen @ 2010-12-16 7:59 UTC (permalink / raw) To: ZhouPeng; +Cc: Xen-Devel (E-mail) On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: > (XEN) Panic on CPU 0: > (XEN) Xen BUG at domain_page.c:102 > > Any solutions? > You need to post the full boot log, including all output from both Xen and dom0 Linux. See: http://wiki.xen.org/xenwiki/XenSerialConsole -- Pasi > 2010/12/16 ZhouPeng <[1]zpengxen@gmail.com> > > Hi all, > > I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded by > default) on fedora8. > > After installing, I get the err msg on startup: > > (XEN) Panic on CPU 0: > (XEN) Xen BUG at domain_page.c:102 > > 5 seconds later, the machine reboot. > > How to deal with this problem. > > Thanks, > -- > Zhou Peng > My daily E-Mail: [2]ailvpeng25@gmail.com > > -- > Zhou Peng > My daily E-Mail: [3]ailvpeng25@gmail.com > > References > > Visible links > 1. mailto:zpengxen@gmail.com > 2. mailto:ailvpeng25@gmail.com > 3. mailto:ailvpeng25@gmail.com > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 7:59 ` Pasi Kärkkäinen @ 2010-12-16 9:30 ` ZhouPeng 2010-12-16 9:41 ` ZhouPeng 2010-12-16 11:47 ` Jan Beulich 0 siblings, 2 replies; 21+ messages in thread From: ZhouPeng @ 2010-12-16 9:30 UTC (permalink / raw) To: Pasi Kärkkäinen, stephen.spector, keir.fraser Cc: Xen-Devel (E-mail) [-- Attachment #1.1: Type: text/plain, Size: 2155 bytes --] The err msg appears in void *map_domain_page(unsigned long mfn) BUG_ON(idx >= MAPCACHE_ENTRIES); printk idx is 1024 and BUG_ON is called. I print Xen call trace msg: [<ffcd3c2>] map_domain_page+0x1a2/0x230 [<ff1cd718>] unmap_domain_page+0x148/0x160 addr_to_dma_page_maddr+0x1f6/0x250 __find_next_zero_bit+0x80/0x90 intel_iommu_map_page+0x14a/0x250 domain_context_mapping+0x14a/0x250 rmrr_identity_mapping+0xb7/0x120 intel_iommu_dom0_init+0x143/0x1eb construct_dom0+0x138f/0x16b0 __start_xen+0x109a/0x1680 e820nf+0x0/0x4 __high_start+0x58/0x5a 2010/12/16 Pasi Kärkkäinen <pasik@iki.fi> > On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: > > (XEN) Panic on CPU 0: > > (XEN) Xen BUG at domain_page.c:102 > > > > Any solutions? > > > > You need to post the full boot log, including all output from both Xen and > dom0 Linux. > See: http://wiki.xen.org/xenwiki/XenSerialConsole > > -- Pasi > > > 2010/12/16 ZhouPeng <[1]zpengxen@gmail.com> > > > > Hi all, > > > > I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded by > > default) on fedora8. > > > > After installing, I get the err msg on startup: > > > > (XEN) Panic on CPU 0: > > (XEN) Xen BUG at domain_page.c:102 > > > > 5 seconds later, the machine reboot. > > > > How to deal with this problem. > > > > Thanks, > > -- > > Zhou Peng > > My daily E-Mail: [2]ailvpeng25@gmail.com > > > > -- > > Zhou Peng > > My daily E-Mail: [3]ailvpeng25@gmail.com > > > > References > > > > Visible links > > 1. mailto:zpengxen@gmail.com > > 2. mailto:ailvpeng25@gmail.com > > 3. mailto:ailvpeng25@gmail.com > > > _______________________________________________ > > Xen-devel mailing list > > Xen-devel@lists.xensource.com > > http://lists.xensource.com/xen-devel > > -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 3358 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 9:30 ` ZhouPeng @ 2010-12-16 9:41 ` ZhouPeng 2010-12-16 10:36 ` Keir Fraser 2010-12-16 11:47 ` Jan Beulich 1 sibling, 1 reply; 21+ messages in thread From: ZhouPeng @ 2010-12-16 9:41 UTC (permalink / raw) To: Pasi Kärkkäinen, stephen.spector, keir.fraser Cc: Xen-Devel (E-mail) [-- Attachment #1.1: Type: text/plain, Size: 2477 bytes --] The bug exist in iommu(Intel VT-d) support code. After I disabled the vt-d in bios, system can boot properly. 2010/12/16 ZhouPeng <zpengxen@gmail.com> > The err msg appears in > void *map_domain_page(unsigned long mfn) > BUG_ON(idx >= MAPCACHE_ENTRIES); > > printk idx is 1024 and BUG_ON is called. > > I print Xen call trace msg: > > [<ffcd3c2>] map_domain_page+0x1a2/0x230 > [<ff1cd718>] unmap_domain_page+0x148/0x160 > addr_to_dma_page_maddr+0x1f6/0x250 > __find_next_zero_bit+0x80/0x90 > intel_iommu_map_page+0x14a/0x250 > domain_context_mapping+0x14a/0x250 > rmrr_identity_mapping+0xb7/0x120 > intel_iommu_dom0_init+0x143/0x1eb > construct_dom0+0x138f/0x16b0 > __start_xen+0x109a/0x1680 > e820nf+0x0/0x4 > __high_start+0x58/0x5a > > 2010/12/16 Pasi Kärkkäinen <pasik@iki.fi> > > On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: >> > (XEN) Panic on CPU 0: >> > (XEN) Xen BUG at domain_page.c:102 >> > >> > Any solutions? >> > >> >> You need to post the full boot log, including all output from both Xen and >> dom0 Linux. >> See: http://wiki.xen.org/xenwiki/XenSerialConsole >> >> -- Pasi >> >> > 2010/12/16 ZhouPeng <[1]zpengxen@gmail.com> >> > >> > Hi all, >> > >> > I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded by >> > default) on fedora8. >> > >> > After installing, I get the err msg on startup: >> > >> > (XEN) Panic on CPU 0: >> > (XEN) Xen BUG at domain_page.c:102 >> > >> > 5 seconds later, the machine reboot. >> > >> > How to deal with this problem. >> > >> > Thanks, >> > -- >> > Zhou Peng >> > My daily E-Mail: [2]ailvpeng25@gmail.com >> > >> > -- >> > Zhou Peng >> > My daily E-Mail: [3]ailvpeng25@gmail.com >> > >> > References >> > >> > Visible links >> > 1. mailto:zpengxen@gmail.com >> > 2. mailto:ailvpeng25@gmail.com >> > 3. mailto:ailvpeng25@gmail.com >> >> > _______________________________________________ >> > Xen-devel mailing list >> > Xen-devel@lists.xensource.com >> > http://lists.xensource.com/xen-devel >> >> > > > -- > Zhou Peng > My daily E-Mail: ailvpeng25@gmail.com > -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 3996 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 9:41 ` ZhouPeng @ 2010-12-16 10:36 ` Keir Fraser 2010-12-16 11:24 ` ZhouPeng 0 siblings, 1 reply; 21+ messages in thread From: Keir Fraser @ 2010-12-16 10:36 UTC (permalink / raw) To: ZhouPeng, Pasi Kärkkäinen, stephen.spector, keir.fraser Cc: Xen-Devel (E-mail) Could you build a 64-bit hypervisor instead? In all honesty, the 32-bit build gets hardly any testing these days, and not much love. -- Keir On 16/12/2010 09:41, "ZhouPeng" <zpengxen@gmail.com> wrote: > The bug exist in iommu(Intel VT-d) support code. > > After I disabled the vt-d in bios, system can boot properly. > > 2010/12/16 ZhouPeng <zpengxen@gmail.com> >> The err msg appears in >> void *map_domain_page(unsigned long mfn) >> BUG_ON(idx >= MAPCACHE_ENTRIES); >> >> printk idx is 1024 and BUG_ON is called. >> >> I print Xen call trace msg: >> >> [<ffcd3c2>] map_domain_page+0x1a2/0x230 >> [<ff1cd718>] unmap_domain_page+0x148/0x160 >> addr_to_dma_page_maddr+0x1f6/0x250 >> __find_next_zero_bit+0x80/0x90 >> intel_iommu_map_page+0x14a/0x250 >> domain_context_mapping+0x14a/0x250 >> rmrr_identity_mapping+0xb7/0x120 >> intel_iommu_dom0_init+0x143/0x1eb >> construct_dom0+0x138f/0x16b0 >> __start_xen+0x109a/0x1680 >> e820nf+0x0/0x4 >> __high_start+0x58/0x5a >> >> 2010/12/16 Pasi Kärkkäinen <pasik@iki.fi> >> >>> On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: >>>> (XEN) Panic on CPU 0: >>>> (XEN) Xen BUG at domain_page.c:102 >>>> >>>> Any solutions? >>>> >>> >>> You need to post the full boot log, including all output from both Xen and >>> dom0 Linux. >>> See: http://wiki.xen.org/xenwiki/XenSerialConsole >>> >>> -- Pasi >>> >>>> 2010/12/16 ZhouPeng <[1]zpengxen@gmail.com> >>>> >>>> Hi all, >>>> >>>> I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded by >>>> default) on fedora8. >>>> >>>> After installing, I get the err msg on startup: >>>> >>>> (XEN) Panic on CPU 0: >>>> (XEN) Xen BUG at domain_page.c:102 >>>> >>>> 5 seconds later, the machine reboot. >>>> >>>> How to deal with this problem. >>>> >>>> Thanks, >>>> -- >>>> Zhou Peng >>>> My daily E-Mail: [2]ailvpeng25@gmail.com >>>> >>>> -- >>>> Zhou Peng >>>> My daily E-Mail: [3]ailvpeng25@gmail.com >>>> >>>> References >>>> >>>> Visible links >>>> 1. mailto:zpengxen@gmail.com >>>> 2. mailto:ailvpeng25@gmail.com >>>> 3. mailto:ailvpeng25@gmail.com >>> >>>> _______________________________________________ >>>> Xen-devel mailing list >>>> Xen-devel@lists.xensource.com >>>> http://lists.xensource.com/xen-devel >>> >> >> ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 10:36 ` Keir Fraser @ 2010-12-16 11:24 ` ZhouPeng 2010-12-16 11:43 ` Pasi Kärkkäinen 2010-12-16 11:47 ` Keir Fraser 0 siblings, 2 replies; 21+ messages in thread From: ZhouPeng @ 2010-12-16 11:24 UTC (permalink / raw) To: Keir Fraser; +Cc: Xen-Devel (E-mail), stephen.spector, keir.fraser [-- Attachment #1.1: Type: text/plain, Size: 3340 bytes --] Thank you for your reply. We want to work in 32-bit system. And fortunately we don't need IOMMU and passthr at the present. There is another problem: xend start failed err msg is: xen.lowlevel.xc.Error: (1, "Internal error"), 'Could not obtain handle on privileged command interface (2 = No such file or directory)' I find there is nothing in "/proc/xen/" but there is privcmd.o in "bulid-linux-2.6-pvos_x86_32/drivers/xen/xenfs/" 2010/12/16 Keir Fraser <keir@xen.org> > Could you build a 64-bit hypervisor instead? In all honesty, the 32-bit > build gets hardly any testing these days, and not much love. > > -- Keir > > On 16/12/2010 09:41, "ZhouPeng" <zpengxen@gmail.com> wrote: > > > The bug exist in iommu(Intel VT-d) support code. > > > > After I disabled the vt-d in bios, system can boot properly. > > > > 2010/12/16 ZhouPeng <zpengxen@gmail.com> > >> The err msg appears in > >> void *map_domain_page(unsigned long mfn) > >> BUG_ON(idx >= MAPCACHE_ENTRIES); > >> > >> printk idx is 1024 and BUG_ON is called. > >> > >> I print Xen call trace msg: > >> > >> [<ffcd3c2>] map_domain_page+0x1a2/0x230 > >> [<ff1cd718>] unmap_domain_page+0x148/0x160 > >> addr_to_dma_page_maddr+0x1f6/0x250 > >> __find_next_zero_bit+0x80/0x90 > >> intel_iommu_map_page+0x14a/0x250 > >> domain_context_mapping+0x14a/0x250 > >> rmrr_identity_mapping+0xb7/0x120 > >> intel_iommu_dom0_init+0x143/0x1eb > >> construct_dom0+0x138f/0x16b0 > >> __start_xen+0x109a/0x1680 > >> e820nf+0x0/0x4 > >> __high_start+0x58/0x5a > >> > >> 2010/12/16 Pasi Kärkkäinen <pasik@iki.fi> > >> > >>> On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: > >>>> (XEN) Panic on CPU 0: > >>>> (XEN) Xen BUG at domain_page.c:102 > >>>> > >>>> Any solutions? > >>>> > >>> > >>> You need to post the full boot log, including all output from both Xen > and > >>> dom0 Linux. > >>> See: http://wiki.xen.org/xenwiki/XenSerialConsole > >>> > >>> -- Pasi > >>> > >>>> 2010/12/16 ZhouPeng <[1]zpengxen@gmail.com> > >>>> > >>>> Hi all, > >>>> > >>>> I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded > by > >>>> default) on fedora8. > >>>> > >>>> After installing, I get the err msg on startup: > >>>> > >>>> (XEN) Panic on CPU 0: > >>>> (XEN) Xen BUG at domain_page.c:102 > >>>> > >>>> 5 seconds later, the machine reboot. > >>>> > >>>> How to deal with this problem. > >>>> > >>>> Thanks, > >>>> -- > >>>> Zhou Peng > >>>> My daily E-Mail: [2]ailvpeng25@gmail.com > >>>> > >>>> -- > >>>> Zhou Peng > >>>> My daily E-Mail: [3]ailvpeng25@gmail.com > >>>> > >>>> References > >>>> > >>>> Visible links > >>>> 1. mailto:zpengxen@gmail.com > >>>> 2. mailto:ailvpeng25@gmail.com > >>>> 3. mailto:ailvpeng25@gmail.com > >>> > >>>> _______________________________________________ > >>>> Xen-devel mailing list > >>>> Xen-devel@lists.xensource.com > >>>> http://lists.xensource.com/xen-devel > >>> > >> > >> > > > -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 5316 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 11:24 ` ZhouPeng @ 2010-12-16 11:43 ` Pasi Kärkkäinen 2010-12-16 15:25 ` ZhouPeng 2010-12-16 11:47 ` Keir Fraser 1 sibling, 1 reply; 21+ messages in thread From: Pasi Kärkkäinen @ 2010-12-16 11:43 UTC (permalink / raw) To: ZhouPeng; +Cc: Xen-Devel (E-mail), Keir Fraser, stephen.spector, keir.fraser On Thu, Dec 16, 2010 at 07:24:51PM +0800, ZhouPeng wrote: > Thank you for your reply. > > We want to work in 32-bit system. > You know you can have a 32bit dom0 kernel running on 64bit Xen hypervisor? -- Pasi > And fortunately we don't need IOMMU and passthr at the present. > > There is another problem: > xend start failed > err msg is: > xen.lowlevel.xc.Error: (1, "Internal error"), 'Could not obtain handle on > privileged command interface (2 = No such file or directory)' > > I find there is nothing in "/proc/xen/" but there is privcmd.o in > "bulid-linux-2.6-pvos_x86_32/drivers/xen/xenfs/" > > 2010/12/16 Keir Fraser <[1]keir@xen.org> > > Could you build a 64-bit hypervisor instead? In all honesty, the 32-bit > build gets hardly any testing these days, and not much love. > -- Keir > On 16/12/2010 09:41, "ZhouPeng" <[2]zpengxen@gmail.com> wrote: > > > The bug exist in iommu(Intel VT-d) support code. > > > > After I disabled the vt-d in bios, system can boot properly. > > > > 2010/12/16 ZhouPeng <[3]zpengxen@gmail.com> > >> The err msg appears in > >> void *map_domain_page(unsigned long mfn) > >> BUG_ON(idx >= MAPCACHE_ENTRIES); > >> > >> printk idx is 1024 and BUG_ON is called. > >> > >> I print Xen call trace msg: > >> > >> [<ffcd3c2>] map_domain_page+0x1a2/0x230 > >> [<ff1cd718>] unmap_domain_page+0x148/0x160 > >> addr_to_dma_page_maddr+0x1f6/0x250 > >> __find_next_zero_bit+0x80/0x90 > >> intel_iommu_map_page+0x14a/0x250 > >> domain_context_mapping+0x14a/0x250 > >> rmrr_identity_mapping+0xb7/0x120 > >> intel_iommu_dom0_init+0x143/0x1eb > >> construct_dom0+0x138f/0x16b0 > >> __start_xen+0x109a/0x1680 > >> e820nf+0x0/0x4 > >> __high_start+0x58/0x5a > >> > >> 2010/12/16 Pasi Kärkkäinen <[4]pasik@iki.fi> > >> > >>> On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: > >>>> (XEN) Panic on CPU 0: > >>>> (XEN) Xen BUG at domain_page.c:102 > >>>> > >>>> Any solutions? > >>>> > >>> > >>> You need to post the full boot log, including all output from both > Xen and > >>> dom0 Linux. > >>> See: [5]http://wiki.xen.org/xenwiki/XenSerialConsole > >>> > >>> -- Pasi > >>> > >>>> 2010/12/16 ZhouPeng <[1][6]zpengxen@gmail.com> > >>>> > >>>> Hi all, > >>>> > >>>> I build xen4.1 from the tarbll (with kernel 2.6.32.26 > downloaded by > >>>> default) on fedora8. > >>>> > >>>> After installing, I get the err msg on startup: > >>>> > >>>> (XEN) Panic on CPU 0: > >>>> (XEN) Xen BUG at domain_page.c:102 > >>>> > >>>> 5 seconds later, the machine reboot. > >>>> > >>>> How to deal with this problem. > >>>> > >>>> Thanks, > >>>> -- > >>>> Zhou Peng > >>>> My daily E-Mail: [2][7]ailvpeng25@gmail.com > >>>> > >>>> -- > >>>> Zhou Peng > >>>> My daily E-Mail: [3][8]ailvpeng25@gmail.com > >>>> > >>>> References > >>>> > >>>> Visible links > >>>> 1. mailto:[9]zpengxen@gmail.com > >>>> 2. mailto:[10]ailvpeng25@gmail.com > >>>> 3. mailto:[11]ailvpeng25@gmail.com > >>> > >>>> _______________________________________________ > >>>> Xen-devel mailing list > >>>> [12]Xen-devel@lists.xensource.com > >>>> [13]http://lists.xensource.com/xen-devel > >>> > >> > >> > > -- > Zhou Peng > My daily E-Mail: [14]ailvpeng25@gmail.com > > References > > Visible links > 1. mailto:keir@xen.org > 2. mailto:zpengxen@gmail.com > 3. mailto:zpengxen@gmail.com > 4. mailto:pasik@iki.fi > 5. http://wiki.xen.org/xenwiki/XenSerialConsole > 6. mailto:zpengxen@gmail.com > 7. mailto:ailvpeng25@gmail.com > 8. mailto:ailvpeng25@gmail.com > 9. mailto:zpengxen@gmail.com > 10. mailto:ailvpeng25@gmail.com > 11. mailto:ailvpeng25@gmail.com > 12. mailto:Xen-devel@lists.xensource.com > 13. http://lists.xensource.com/xen-devel > 14. mailto:ailvpeng25@gmail.com ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 11:43 ` Pasi Kärkkäinen @ 2010-12-16 15:25 ` ZhouPeng 2010-12-16 15:34 ` Pasi Kärkkäinen 0 siblings, 1 reply; 21+ messages in thread From: ZhouPeng @ 2010-12-16 15:25 UTC (permalink / raw) To: Pasi Kärkkäinen Cc: Xen-Devel (E-mail), Keir Fraser, stephen.spector, keir.fraser [-- Attachment #1.1: Type: text/plain, Size: 5116 bytes --] Hi Pasi, How to build and load 32bit dom0 in 64bit Xen hypervisor? How to build 64 bit Xen hypervisor on my Linux 32 bits fc8 pls? 2010/12/16 Pasi Kärkkäinen <pasik@iki.fi> > On Thu, Dec 16, 2010 at 07:24:51PM +0800, ZhouPeng wrote: > > Thank you for your reply. > > > > We want to work in 32-bit system. > > > > You know you can have a 32bit dom0 kernel running on 64bit Xen hypervisor? > > -- Pasi > > > And fortunately we don't need IOMMU and passthr at the present. > > > > There is another problem: > > xend start failed > > err msg is: > > xen.lowlevel.xc.Error: (1, "Internal error"), 'Could not obtain handle > on > > privileged command interface (2 = No such file or directory)' > > > > I find there is nothing in "/proc/xen/" but there is privcmd.o in > > "bulid-linux-2.6-pvos_x86_32/drivers/xen/xenfs/" > > > > 2010/12/16 Keir Fraser <[1]keir@xen.org> > > > > Could you build a 64-bit hypervisor instead? In all honesty, the > 32-bit > > build gets hardly any testing these days, and not much love. > > -- Keir > > On 16/12/2010 09:41, "ZhouPeng" <[2]zpengxen@gmail.com> wrote: > > > > > The bug exist in iommu(Intel VT-d) support code. > > > > > > After I disabled the vt-d in bios, system can boot properly. > > > > > > 2010/12/16 ZhouPeng <[3]zpengxen@gmail.com> > > >> The err msg appears in > > >> void *map_domain_page(unsigned long mfn) > > >> BUG_ON(idx >= MAPCACHE_ENTRIES); > > >> > > >> printk idx is 1024 and BUG_ON is called. > > >> > > >> I print Xen call trace msg: > > >> > > >> [<ffcd3c2>] map_domain_page+0x1a2/0x230 > > >> [<ff1cd718>] unmap_domain_page+0x148/0x160 > > >> addr_to_dma_page_maddr+0x1f6/0x250 > > >> __find_next_zero_bit+0x80/0x90 > > >> intel_iommu_map_page+0x14a/0x250 > > >> domain_context_mapping+0x14a/0x250 > > >> rmrr_identity_mapping+0xb7/0x120 > > >> intel_iommu_dom0_init+0x143/0x1eb > > >> construct_dom0+0x138f/0x16b0 > > >> __start_xen+0x109a/0x1680 > > >> e820nf+0x0/0x4 > > >> __high_start+0x58/0x5a > > >> > > >> 2010/12/16 Pasi Kärkkäinen <[4]pasik@iki.fi> > > >> > > >>> On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: > > >>>> (XEN) Panic on CPU 0: > > >>>> (XEN) Xen BUG at domain_page.c:102 > > >>>> > > >>>> Any solutions? > > >>>> > > >>> > > >>> You need to post the full boot log, including all output from > both > > Xen and > > >>> dom0 Linux. > > >>> See: [5]http://wiki.xen.org/xenwiki/XenSerialConsole > > >>> > > >>> -- Pasi > > >>> > > >>>> 2010/12/16 ZhouPeng <[1][6]zpengxen@gmail.com> > > >>>> > > >>>> Hi all, > > >>>> > > >>>> I build xen4.1 from the tarbll (with kernel 2.6.32.26 > > downloaded by > > >>>> default) on fedora8. > > >>>> > > >>>> After installing, I get the err msg on startup: > > >>>> > > >>>> (XEN) Panic on CPU 0: > > >>>> (XEN) Xen BUG at domain_page.c:102 > > >>>> > > >>>> 5 seconds later, the machine reboot. > > >>>> > > >>>> How to deal with this problem. > > >>>> > > >>>> Thanks, > > >>>> -- > > >>>> Zhou Peng > > >>>> My daily E-Mail: [2][7]ailvpeng25@gmail.com > > >>>> > > >>>> -- > > >>>> Zhou Peng > > >>>> My daily E-Mail: [3][8]ailvpeng25@gmail.com > > >>>> > > >>>> References > > >>>> > > >>>> Visible links > > >>>> 1. mailto:[9]zpengxen@gmail.com > > >>>> 2. mailto:[10]ailvpeng25@gmail.com > > >>>> 3. mailto:[11]ailvpeng25@gmail.com > > >>> > > >>>> _______________________________________________ > > >>>> Xen-devel mailing list > > >>>> [12]Xen-devel@lists.xensource.com > > >>>> [13]http://lists.xensource.com/xen-devel > > >>> > > >> > > >> > > > > -- > > Zhou Peng > > My daily E-Mail: [14]ailvpeng25@gmail.com > > > > References > > > > Visible links > > 1. mailto:keir@xen.org > > 2. mailto:zpengxen@gmail.com > > 3. mailto:zpengxen@gmail.com > > 4. mailto:pasik@iki.fi > > 5. http://wiki.xen.org/xenwiki/XenSerialConsole > > 6. mailto:zpengxen@gmail.com > > 7. mailto:ailvpeng25@gmail.com > > 8. mailto:ailvpeng25@gmail.com > > 9. mailto:zpengxen@gmail.com > > 10. mailto:ailvpeng25@gmail.com > > 11. mailto:ailvpeng25@gmail.com > > 12. mailto:Xen-devel@lists.xensource.com > > 13. http://lists.xensource.com/xen-devel > > 14. mailto:ailvpeng25@gmail.com > -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 8339 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 15:25 ` ZhouPeng @ 2010-12-16 15:34 ` Pasi Kärkkäinen 2010-12-16 15:46 ` Jan Beulich 0 siblings, 1 reply; 21+ messages in thread From: Pasi Kärkkäinen @ 2010-12-16 15:34 UTC (permalink / raw) To: ZhouPeng; +Cc: Xen-Devel (E-mail), Keir Fraser, stephen.spector, keir.fraser On Thu, Dec 16, 2010 at 11:25:49PM +0800, ZhouPeng wrote: > Hi Pasi, > > How to build and load 32bit dom0 in 64bit Xen hypervisor? > > How to build 64 bit Xen hypervisor on my Linux 32 bits fc8 pls? > Usually you build them separately, maybe on different servers, or on different VMs, or on different chroot.. ie. have a 64bit environment for building the hypervisor, and 32bit environment to build the dom0 kernel and xen tools/userland. -- Pasi > 2010/12/16 Pasi Kärkkäinen <[1]pasik@iki.fi> > > On Thu, Dec 16, 2010 at 07:24:51PM +0800, ZhouPeng wrote: > > Thank you for your reply. > > > > We want to work in 32-bit system. > > > > You know you can have a 32bit dom0 kernel running on 64bit Xen > hypervisor? > > -- Pasi > > And fortunately we don't need IOMMU and passthr at the present. > > > > There is another problem: > > xend start failed > > err msg is: > > xen.lowlevel.xc.Error: (1, "Internal error"), 'Could not obtain > handle on > > privileged command interface (2 = No such file or directory)' > > > > I find there is nothing in "/proc/xen/" but there is privcmd.o in > > "bulid-linux-2.6-pvos_x86_32/drivers/xen/xenfs/" > > > > 2010/12/16 Keir Fraser <[1][2]keir@xen.org> > > > > Could you build a 64-bit hypervisor instead? In all honesty, the > 32-bit > > build gets hardly any testing these days, and not much love. > > -- Keir > > On 16/12/2010 09:41, "ZhouPeng" <[2][3]zpengxen@gmail.com> wrote: > > > > > The bug exist in iommu(Intel VT-d) support code. > > > > > > After I disabled the vt-d in bios, system can boot properly. > > > > > > 2010/12/16 ZhouPeng <[3][4]zpengxen@gmail.com> > > >> The err msg appears in > > >> void *map_domain_page(unsigned long mfn) > > >> BUG_ON(idx >= MAPCACHE_ENTRIES); > > >> > > >> printk idx is 1024 and BUG_ON is called. > > >> > > >> I print Xen call trace msg: > > >> > > >> [<ffcd3c2>] map_domain_page+0x1a2/0x230 > > >> [<ff1cd718>] unmap_domain_page+0x148/0x160 > > >> addr_to_dma_page_maddr+0x1f6/0x250 > > >> __find_next_zero_bit+0x80/0x90 > > >> intel_iommu_map_page+0x14a/0x250 > > >> domain_context_mapping+0x14a/0x250 > > >> rmrr_identity_mapping+0xb7/0x120 > > >> intel_iommu_dom0_init+0x143/0x1eb > > >> construct_dom0+0x138f/0x16b0 > > >> __start_xen+0x109a/0x1680 > > >> e820nf+0x0/0x4 > > >> __high_start+0x58/0x5a > > >> > > >> 2010/12/16 Pasi Kärkkäinen <[4][5]pasik@iki.fi> > > >> > > >>> On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: > > >>>> (XEN) Panic on CPU 0: > > >>>> (XEN) Xen BUG at domain_page.c:102 > > >>>> > > >>>> Any solutions? > > >>>> > > >>> > > >>> You need to post the full boot log, including all output from > both > > Xen and > > >>> dom0 Linux. > > >>> See: [5][6]http://wiki.xen.org/xenwiki/XenSerialConsole > > >>> > > >>> -- Pasi > > >>> > > >>>> 2010/12/16 ZhouPeng <[1][6][7]zpengxen@gmail.com> > > >>>> > > >>>> Hi all, > > >>>> > > >>>> I build xen4.1 from the tarbll (with kernel 2.6.32.26 > > downloaded by > > >>>> default) on fedora8. > > >>>> > > >>>> After installing, I get the err msg on startup: > > >>>> > > >>>> (XEN) Panic on CPU 0: > > >>>> (XEN) Xen BUG at domain_page.c:102 > > >>>> > > >>>> 5 seconds later, the machine reboot. > > >>>> > > >>>> How to deal with this problem. > > >>>> > > >>>> Thanks, > > >>>> -- > > >>>> Zhou Peng > > >>>> My daily E-Mail: [2][7][8]ailvpeng25@gmail.com > > >>>> > > >>>> -- > > >>>> Zhou Peng > > >>>> My daily E-Mail: [3][8][9]ailvpeng25@gmail.com > > >>>> > > >>>> References > > >>>> > > >>>> Visible links > > >>>> 1. mailto:[9][10]zpengxen@gmail.com > > >>>> 2. mailto:[10][11]ailvpeng25@gmail.com > > >>>> 3. mailto:[11][12]ailvpeng25@gmail.com > > >>> > > >>>> _______________________________________________ > > >>>> Xen-devel mailing list > > >>>> [12][13]Xen-devel@lists.xensource.com > > >>>> [13][14]http://lists.xensource.com/xen-devel > > >>> > > >> > > >> > > > > -- > > Zhou Peng > > My daily E-Mail: [14][15]ailvpeng25@gmail.com > > > > References > > > > Visible links > > 1. mailto:[16]keir@xen.org > > 2. mailto:[17]zpengxen@gmail.com > > 3. mailto:[18]zpengxen@gmail.com > > 4. mailto:[19]pasik@iki.fi > > 5. [20]http://wiki.xen.org/xenwiki/XenSerialConsole > > 6. mailto:[21]zpengxen@gmail.com > > 7. mailto:[22]ailvpeng25@gmail.com > > 8. mailto:[23]ailvpeng25@gmail.com > > 9. mailto:[24]zpengxen@gmail.com > > 10. mailto:[25]ailvpeng25@gmail.com > > 11. mailto:[26]ailvpeng25@gmail.com > > 12. mailto:[27]Xen-devel@lists.xensource.com > > 13. [28]http://lists.xensource.com/xen-devel > > 14. mailto:[29]ailvpeng25@gmail.com > > -- > Zhou Peng > My daily E-Mail: [30]ailvpeng25@gmail.com > > References > > Visible links > 1. mailto:pasik@iki.fi > 2. mailto:keir@xen.org > 3. mailto:zpengxen@gmail.com > 4. mailto:zpengxen@gmail.com > 5. mailto:pasik@iki.fi > 6. http://wiki.xen.org/xenwiki/XenSerialConsole > 7. mailto:zpengxen@gmail.com > 8. mailto:ailvpeng25@gmail.com > 9. mailto:ailvpeng25@gmail.com > 10. mailto:zpengxen@gmail.com > 11. mailto:ailvpeng25@gmail.com > 12. mailto:ailvpeng25@gmail.com > 13. mailto:Xen-devel@lists.xensource.com > 14. http://lists.xensource.com/xen-devel > 15. mailto:ailvpeng25@gmail.com > 16. mailto:keir@xen.org > 17. mailto:zpengxen@gmail.com > 18. mailto:zpengxen@gmail.com > 19. mailto:pasik@iki.fi > 20. http://wiki.xen.org/xenwiki/XenSerialConsole > 21. mailto:zpengxen@gmail.com > 22. mailto:ailvpeng25@gmail.com > 23. mailto:ailvpeng25@gmail.com > 24. mailto:zpengxen@gmail.com > 25. mailto:ailvpeng25@gmail.com > 26. mailto:ailvpeng25@gmail.com > 27. mailto:Xen-devel@lists.xensource.com > 28. http://lists.xensource.com/xen-devel > 29. mailto:ailvpeng25@gmail.com > 30. mailto:ailvpeng25@gmail.com ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 15:34 ` Pasi Kärkkäinen @ 2010-12-16 15:46 ` Jan Beulich 2011-01-05 13:37 ` Stefano Stabellini 0 siblings, 1 reply; 21+ messages in thread From: Jan Beulich @ 2010-12-16 15:46 UTC (permalink / raw) To: ZhouPeng, Pasi Kärkkäinen Cc: Xen-Devel (E-mail), Keir Fraser, stephen.spector, keir.fraser >>> On 16.12.10 at 16:34, Pasi Kärkkäinen<pasik@iki.fi> wrote: > On Thu, Dec 16, 2010 at 11:25:49PM +0800, ZhouPeng wrote: >> Hi Pasi, >> >> How to build and load 32bit dom0 in 64bit Xen hypervisor? >> >> How to build 64 bit Xen hypervisor on my Linux 32 bits fc8 pls? >> > > Usually you build them separately, maybe on different servers, > or on different VMs, or on different chroot.. > > ie. have a 64bit environment for building the hypervisor, > and 32bit environment to build the dom0 kernel and xen tools/userland. Actually, all you need is a cross tool chain. Jan ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 15:46 ` Jan Beulich @ 2011-01-05 13:37 ` Stefano Stabellini 2011-01-05 13:57 ` Ian Campbell 0 siblings, 1 reply; 21+ messages in thread From: Stefano Stabellini @ 2011-01-05 13:37 UTC (permalink / raw) To: Jan Beulich; +Cc: Xen-Devel (E-mail), Fraser, ZhouPeng, Keir Fraser [-- Attachment #1: Type: text/plain, Size: 816 bytes --] On Thu, 16 Dec 2010, Jan Beulich wrote: > >>> On 16.12.10 at 16:34, Pasi Kärkkäinen<pasik@iki.fi> wrote: > > On Thu, Dec 16, 2010 at 11:25:49PM +0800, ZhouPeng wrote: > >> Hi Pasi, > >> > >> How to build and load 32bit dom0 in 64bit Xen hypervisor? > >> > >> How to build 64 bit Xen hypervisor on my Linux 32 bits fc8 pls? > >> > > > > Usually you build them separately, maybe on different servers, > > or on different VMs, or on different chroot.. > > > > ie. have a 64bit environment for building the hypervisor, > > and 32bit environment to build the dom0 kernel and xen tools/userland. > > Actually, all you need is a cross tool chain. > That's right. On a Debian Lenny it works out of the box, you just need to export XEN_TARGET_ARCH=x86_64 before calling 'make xen' from. [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2011-01-05 13:37 ` Stefano Stabellini @ 2011-01-05 13:57 ` Ian Campbell 2011-01-07 7:24 ` ZhouPeng 0 siblings, 1 reply; 21+ messages in thread From: Ian Campbell @ 2011-01-05 13:57 UTC (permalink / raw) To: Stefano Stabellini; +Cc: ZhouPeng, Xen-Devel (E-mail), Keir Fraser, Jan Beulich On Wed, 2011-01-05 at 13:37 +0000, Stefano Stabellini wrote: > On a Debian Lenny it works out of the box, Or more generally any modern distro. Not sure if FC8 (2007?) quite qualifies as that though. Ian. ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2011-01-05 13:57 ` Ian Campbell @ 2011-01-07 7:24 ` ZhouPeng 2011-01-07 9:00 ` Ian Campbell 0 siblings, 1 reply; 21+ messages in thread From: ZhouPeng @ 2011-01-07 7:24 UTC (permalink / raw) To: Ian Campbell Cc: Xen-Devel (E-mail), Keir Fraser, Jan Beulich, Stefano Stabellini [-- Attachment #1.1: Type: text/plain, Size: 607 bytes --] Which linux distro do you use to build xen? We succeed to build on fc8(32 and 64 bits), Cent OS(32 and 64 bits), 32 bit ubuntu(it's boring to find and install many packages by manual). We tried on fc9~fc12 but failed and we don't know the exact reason. So we have been using fc8. 2011/1/5 Ian Campbell <Ian.Campbell@citrix.com> > On Wed, 2011-01-05 at 13:37 +0000, Stefano Stabellini wrote: > > On a Debian Lenny it works out of the box, > > Or more generally any modern distro. Not sure if FC8 (2007?) quite > qualifies as that though. > > Ian. > > -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 1050 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2011-01-07 7:24 ` ZhouPeng @ 2011-01-07 9:00 ` Ian Campbell 2011-01-07 9:24 ` Pasi Kärkkäinen 0 siblings, 1 reply; 21+ messages in thread From: Ian Campbell @ 2011-01-07 9:00 UTC (permalink / raw) To: ZhouPeng; +Cc: Xen-Devel (E-mail), Keir Fraser, Jan Beulich, Stefano Stabellini On Fri, 2011-01-07 at 07:24 +0000, ZhouPeng wrote: > Which linux distro do you use to build xen? I use Debian. Mainly Lenny for development work but also some Squeeze and Sid. > We succeed to build on fc8(32 and 64 bits), Cent OS(32 and 64 bits), > 32 bit ubuntu(it's boring to find and install many packages by > manual). Ubuntu has a huge number of packages available via APT (using apt-get, aptitude, synaptic, PackageKit or whatever tool is preferred/recommended under Ubuntu these days). I'd be surprised if you needed to find and install _many_ packages manually. Under Debian you don't, AFAIR, need anything which isn't packaged and available via APT in the main Debian repositories to build Xen -- I'd be surprised if Ubuntu wasn't in broadly the same position (since it inherits large parts of Debian's package pool). > We tried on fc9~fc12 but failed and we don't know the exact reason. So > we have been using fc8. I'm sure plenty of people on the list use Fedora and they are certainly using things newer than fc8. For example there is an FC13 howto at http://wiki.xen.org/xenwiki/Fedora13Xen4Tutorial Ian. > > 2011/1/5 Ian Campbell <Ian.Campbell@citrix.com> > On Wed, 2011-01-05 at 13:37 +0000, Stefano Stabellini wrote: > > On a Debian Lenny it works out of the box, > > > Or more generally any modern distro. Not sure if FC8 (2007?) > quite > qualifies as that though. > > Ian. > > > > > -- > Zhou Peng > My daily E-Mail: ailvpeng25@gmail.com ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2011-01-07 9:00 ` Ian Campbell @ 2011-01-07 9:24 ` Pasi Kärkkäinen 0 siblings, 0 replies; 21+ messages in thread From: Pasi Kärkkäinen @ 2011-01-07 9:24 UTC (permalink / raw) To: Ian Campbell Cc: ZhouPeng, Xen-Devel (E-mail), Keir Fraser, Jan Beulich, Stefano Stabellini On Fri, Jan 07, 2011 at 09:00:56AM +0000, Ian Campbell wrote: > On Fri, 2011-01-07 at 07:24 +0000, ZhouPeng wrote: > > Which linux distro do you use to build xen? > > I use Debian. Mainly Lenny for development work but also some Squeeze > and Sid. > > > We succeed to build on fc8(32 and 64 bits), Cent OS(32 and 64 bits), > > 32 bit ubuntu(it's boring to find and install many packages by > > manual). > > Ubuntu has a huge number of packages available via APT (using apt-get, > aptitude, synaptic, PackageKit or whatever tool is preferred/recommended > under Ubuntu these days). I'd be surprised if you needed to find and > install _many_ packages manually. Under Debian you don't, AFAIR, need > anything which isn't packaged and available via APT in the main Debian > repositories to build Xen -- I'd be surprised if Ubuntu wasn't in > broadly the same position (since it inherits large parts of Debian's > package pool). > > > We tried on fc9~fc12 but failed and we don't know the exact reason. So > > we have been using fc8. > > I'm sure plenty of people on the list use Fedora and they are certainly > using things newer than fc8. For example there is an FC13 howto at > http://wiki.xen.org/xenwiki/Fedora13Xen4Tutorial > Fedora 14 works aswell. I just installed F14 testbox yesterday. F14 also contains xen-4.0.1-6 rpms out-of-the-box. -- Pasi ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 11:24 ` ZhouPeng 2010-12-16 11:43 ` Pasi Kärkkäinen @ 2010-12-16 11:47 ` Keir Fraser 2010-12-16 11:52 ` Pasi Kärkkäinen 2010-12-16 15:20 ` ZhouPeng 1 sibling, 2 replies; 21+ messages in thread From: Keir Fraser @ 2010-12-16 11:47 UTC (permalink / raw) To: ZhouPeng; +Cc: Xen-Devel (E-mail) You might need a line like the following in /etc/fstab in dom0: none /proc/xen xenfs defaults 0 0 -- Keir On 16/12/2010 11:24, "ZhouPeng" <zpengxen@gmail.com> wrote: > Thank you for your reply. > > We want to work in 32-bit system. > And fortunately we don't need IOMMU and passthr at the present. > > There is another problem: > xend start failed > err msg is: > xen.lowlevel.xc.Error: (1, "Internal error"), 'Could not obtain handle on > privileged command interface (2 = No such file or directory)' > > I find there is nothing in "/proc/xen/" but there is privcmd.o in > "bulid-linux-2.6-pvos_x86_32/drivers/xen/xenfs/" > > 2010/12/16 Keir Fraser <keir@xen.org> >> Could you build a 64-bit hypervisor instead? In all honesty, the 32-bit >> build gets hardly any testing these days, and not much love. >> >> -- Keir >> >> On 16/12/2010 09:41, "ZhouPeng" <zpengxen@gmail.com> wrote: >> >>> The bug exist in iommu(Intel VT-d) support code. >>> >>> After I disabled the vt-d in bios, system can boot properly. >>> >>> 2010/12/16 ZhouPeng <zpengxen@gmail.com> >>>> The err msg appears in >>>> void *map_domain_page(unsigned long mfn) >>>> BUG_ON(idx >= MAPCACHE_ENTRIES); >>>> >>>> printk idx is 1024 and BUG_ON is called. >>>> >>>> I print Xen call trace msg: >>>> >>>> [<ffcd3c2>] map_domain_page+0x1a2/0x230 >>>> [<ff1cd718>] unmap_domain_page+0x148/0x160 >>>> addr_to_dma_page_maddr+0x1f6/0x250 >>>> __find_next_zero_bit+0x80/0x90 >>>> intel_iommu_map_page+0x14a/0x250 >>>> domain_context_mapping+0x14a/0x250 >>>> rmrr_identity_mapping+0xb7/0x120 >>>> intel_iommu_dom0_init+0x143/0x1eb >>>> construct_dom0+0x138f/0x16b0 >>>> __start_xen+0x109a/0x1680 >>>> e820nf+0x0/0x4 >>>> __high_start+0x58/0x5a >>>> >>>> 2010/12/16 Pasi Kärkkäinen <pasik@iki.fi> >>>> >>>>> On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: >>>>>> (XEN) Panic on CPU 0: >>>>>> (XEN) Xen BUG at domain_page.c:102 >>>>>> >>>>>> Any solutions? >>>>>> >>>>> >>>>> You need to post the full boot log, including all output from both Xen and >>>>> dom0 Linux. >>>>> See: http://wiki.xen.org/xenwiki/XenSerialConsole >>>>> >>>>> -- Pasi >>>>> >>>>>> 2010/12/16 ZhouPeng <[1]zpengxen@gmail.com> >>>>>> >>>>>> Hi all, >>>>>> >>>>>> I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded by >>>>>> default) on fedora8. >>>>>> >>>>>> After installing, I get the err msg on startup: >>>>>> >>>>>> (XEN) Panic on CPU 0: >>>>>> (XEN) Xen BUG at domain_page.c:102 >>>>>> >>>>>> 5 seconds later, the machine reboot. >>>>>> >>>>>> How to deal with this problem. >>>>>> >>>>>> Thanks, >>>>>> -- >>>>>> Zhou Peng >>>>>> My daily E-Mail: [2]ailvpeng25@gmail.com >>>>>> >>>>>> -- >>>>>> Zhou Peng >>>>>> My daily E-Mail: [3]ailvpeng25@gmail.com >>>>>> >>>>>> References >>>>>> >>>>>> Visible links >>>>>> 1. mailto:zpengxen@gmail.com >>>>>> 2. mailto:ailvpeng25@gmail.com >>>>>> 3. mailto:ailvpeng25@gmail.com >>>>> >>>>>> _______________________________________________ >>>>>> Xen-devel mailing list >>>>>> Xen-devel@lists.xensource.com >>>>>> http://lists.xensource.com/xen-devel >>>>> >>>> >>>> >> >> > > ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 11:47 ` Keir Fraser @ 2010-12-16 11:52 ` Pasi Kärkkäinen 2010-12-16 15:20 ` ZhouPeng 1 sibling, 0 replies; 21+ messages in thread From: Pasi Kärkkäinen @ 2010-12-16 11:52 UTC (permalink / raw) To: Keir Fraser; +Cc: ZhouPeng, Xen-Devel (E-mail) On Thu, Dec 16, 2010 at 11:47:19AM +0000, Keir Fraser wrote: > You might need a line like the following in /etc/fstab in dom0: > none /proc/xen xenfs defaults 0 0 > And if that doesn't help then there's this wiki page with troubleshooting info: http://wiki.xen.org/xenwiki/XenCommonProblems#head-26434581604cc8357d9762aaaf040e8d87b37752 -- Pasi > -- Keir > > On 16/12/2010 11:24, "ZhouPeng" <zpengxen@gmail.com> wrote: > > > Thank you for your reply. > > > > We want to work in 32-bit system. > > And fortunately we don't need IOMMU and passthr at the present. > > > > There is another problem: > > xend start failed > > err msg is: > > xen.lowlevel.xc.Error: (1, "Internal error"), 'Could not obtain handle on > > privileged command interface (2 = No such file or directory)' > > > > I find there is nothing in "/proc/xen/" but there is privcmd.o in > > "bulid-linux-2.6-pvos_x86_32/drivers/xen/xenfs/" > > > > 2010/12/16 Keir Fraser <keir@xen.org> > >> Could you build a 64-bit hypervisor instead? In all honesty, the 32-bit > >> build gets hardly any testing these days, and not much love. > >> > >> -- Keir > >> > >> On 16/12/2010 09:41, "ZhouPeng" <zpengxen@gmail.com> wrote: > >> > >>> The bug exist in iommu(Intel VT-d) support code. > >>> > >>> After I disabled the vt-d in bios, system can boot properly. > >>> > >>> 2010/12/16 ZhouPeng <zpengxen@gmail.com> > >>>> The err msg appears in > >>>> void *map_domain_page(unsigned long mfn) > >>>> BUG_ON(idx >= MAPCACHE_ENTRIES); > >>>> > >>>> printk idx is 1024 and BUG_ON is called. > >>>> > >>>> I print Xen call trace msg: > >>>> > >>>> [<ffcd3c2>] map_domain_page+0x1a2/0x230 > >>>> [<ff1cd718>] unmap_domain_page+0x148/0x160 > >>>> addr_to_dma_page_maddr+0x1f6/0x250 > >>>> __find_next_zero_bit+0x80/0x90 > >>>> intel_iommu_map_page+0x14a/0x250 > >>>> domain_context_mapping+0x14a/0x250 > >>>> rmrr_identity_mapping+0xb7/0x120 > >>>> intel_iommu_dom0_init+0x143/0x1eb > >>>> construct_dom0+0x138f/0x16b0 > >>>> __start_xen+0x109a/0x1680 > >>>> e820nf+0x0/0x4 > >>>> __high_start+0x58/0x5a > >>>> > >>>> 2010/12/16 Pasi Kärkkäinen <pasik@iki.fi> > >>>> > >>>>> On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: > >>>>>> (XEN) Panic on CPU 0: > >>>>>> (XEN) Xen BUG at domain_page.c:102 > >>>>>> > >>>>>> Any solutions? > >>>>>> > >>>>> > >>>>> You need to post the full boot log, including all output from both Xen and > >>>>> dom0 Linux. > >>>>> See: http://wiki.xen.org/xenwiki/XenSerialConsole > >>>>> > >>>>> -- Pasi > >>>>> > >>>>>> 2010/12/16 ZhouPeng <[1]zpengxen@gmail.com> > >>>>>> > >>>>>> Hi all, > >>>>>> > >>>>>> I build xen4.1 from the tarbll (with kernel 2.6.32.26 downloaded by > >>>>>> default) on fedora8. > >>>>>> > >>>>>> After installing, I get the err msg on startup: > >>>>>> > >>>>>> (XEN) Panic on CPU 0: > >>>>>> (XEN) Xen BUG at domain_page.c:102 > >>>>>> > >>>>>> 5 seconds later, the machine reboot. > >>>>>> > >>>>>> How to deal with this problem. > >>>>>> > >>>>>> Thanks, > >>>>>> -- > >>>>>> Zhou Peng > >>>>>> My daily E-Mail: [2]ailvpeng25@gmail.com > >>>>>> > >>>>>> -- > >>>>>> Zhou Peng > >>>>>> My daily E-Mail: [3]ailvpeng25@gmail.com > >>>>>> > >>>>>> References > >>>>>> > >>>>>> Visible links > >>>>>> 1. mailto:zpengxen@gmail.com > >>>>>> 2. mailto:ailvpeng25@gmail.com > >>>>>> 3. mailto:ailvpeng25@gmail.com > >>>>> > >>>>>> _______________________________________________ > >>>>>> Xen-devel mailing list > >>>>>> Xen-devel@lists.xensource.com > >>>>>> http://lists.xensource.com/xen-devel > >>>>> > >>>> > >>>> > >> > >> > > > > > > > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 11:47 ` Keir Fraser 2010-12-16 11:52 ` Pasi Kärkkäinen @ 2010-12-16 15:20 ` ZhouPeng 1 sibling, 0 replies; 21+ messages in thread From: ZhouPeng @ 2010-12-16 15:20 UTC (permalink / raw) To: Keir Fraser; +Cc: Xen-Devel (E-mail) [-- Attachment #1.1: Type: text/plain, Size: 3857 bytes --] Hi Kerr, It works. Thanks. 2010/12/16 Keir Fraser <keir@xen.org> > You might need a line like the following in /etc/fstab in dom0: > none /proc/xen xenfs defaults 0 0 > > -- Keir > > On 16/12/2010 11:24, "ZhouPeng" <zpengxen@gmail.com> wrote: > > > Thank you for your reply. > > > > We want to work in 32-bit system. > > And fortunately we don't need IOMMU and passthr at the present. > > > > There is another problem: > > xend start failed > > err msg is: > > xen.lowlevel.xc.Error: (1, "Internal error"), 'Could not obtain handle on > > privileged command interface (2 = No such file or directory)' > > > > I find there is nothing in "/proc/xen/" but there is privcmd.o in > > "bulid-linux-2.6-pvos_x86_32/drivers/xen/xenfs/" > > > > 2010/12/16 Keir Fraser <keir@xen.org> > >> Could you build a 64-bit hypervisor instead? In all honesty, the 32-bit > >> build gets hardly any testing these days, and not much love. > >> > >> -- Keir > >> > >> On 16/12/2010 09:41, "ZhouPeng" <zpengxen@gmail.com> wrote: > >> > >>> The bug exist in iommu(Intel VT-d) support code. > >>> > >>> After I disabled the vt-d in bios, system can boot properly. > >>> > >>> 2010/12/16 ZhouPeng <zpengxen@gmail.com> > >>>> The err msg appears in > >>>> void *map_domain_page(unsigned long mfn) > >>>> BUG_ON(idx >= MAPCACHE_ENTRIES); > >>>> > >>>> printk idx is 1024 and BUG_ON is called. > >>>> > >>>> I print Xen call trace msg: > >>>> > >>>> [<ffcd3c2>] map_domain_page+0x1a2/0x230 > >>>> [<ff1cd718>] unmap_domain_page+0x148/0x160 > >>>> addr_to_dma_page_maddr+0x1f6/0x250 > >>>> __find_next_zero_bit+0x80/0x90 > >>>> intel_iommu_map_page+0x14a/0x250 > >>>> domain_context_mapping+0x14a/0x250 > >>>> rmrr_identity_mapping+0xb7/0x120 > >>>> intel_iommu_dom0_init+0x143/0x1eb > >>>> construct_dom0+0x138f/0x16b0 > >>>> __start_xen+0x109a/0x1680 > >>>> e820nf+0x0/0x4 > >>>> __high_start+0x58/0x5a > >>>> > >>>> 2010/12/16 Pasi Kärkkäinen <pasik@iki.fi> > >>>> > >>>>> On Thu, Dec 16, 2010 at 03:41:17PM +0800, ZhouPeng wrote: > >>>>>> (XEN) Panic on CPU 0: > >>>>>> (XEN) Xen BUG at domain_page.c:102 > >>>>>> > >>>>>> Any solutions? > >>>>>> > >>>>> > >>>>> You need to post the full boot log, including all output from both > Xen and > >>>>> dom0 Linux. > >>>>> See: http://wiki.xen.org/xenwiki/XenSerialConsole > >>>>> > >>>>> -- Pasi > >>>>> > >>>>>> 2010/12/16 ZhouPeng <[1]zpengxen@gmail.com> > >>>>>> > >>>>>> Hi all, > >>>>>> > >>>>>> I build xen4.1 from the tarbll (with kernel 2.6.32.26 > downloaded by > >>>>>> default) on fedora8. > >>>>>> > >>>>>> After installing, I get the err msg on startup: > >>>>>> > >>>>>> (XEN) Panic on CPU 0: > >>>>>> (XEN) Xen BUG at domain_page.c:102 > >>>>>> > >>>>>> 5 seconds later, the machine reboot. > >>>>>> > >>>>>> How to deal with this problem. > >>>>>> > >>>>>> Thanks, > >>>>>> -- > >>>>>> Zhou Peng > >>>>>> My daily E-Mail: [2]ailvpeng25@gmail.com > >>>>>> > >>>>>> -- > >>>>>> Zhou Peng > >>>>>> My daily E-Mail: [3]ailvpeng25@gmail.com > >>>>>> > >>>>>> References > >>>>>> > >>>>>> Visible links > >>>>>> 1. mailto:zpengxen@gmail.com > >>>>>> 2. mailto:ailvpeng25@gmail.com > >>>>>> 3. mailto:ailvpeng25@gmail.com > >>>>> > >>>>>> _______________________________________________ > >>>>>> Xen-devel mailing list > >>>>>> Xen-devel@lists.xensource.com > >>>>>> http://lists.xensource.com/xen-devel > >>>>> > >>>> > >>>> > >> > >> > > > > > > > -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 6548 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 9:30 ` ZhouPeng 2010-12-16 9:41 ` ZhouPeng @ 2010-12-16 11:47 ` Jan Beulich 2010-12-16 15:18 ` ZhouPeng 1 sibling, 1 reply; 21+ messages in thread From: Jan Beulich @ 2010-12-16 11:47 UTC (permalink / raw) To: ZhouPeng; +Cc: Xen-Devel (E-mail), keir.fraser >>> On 16.12.10 at 10:30, ZhouPeng <zpengxen@gmail.com> wrote: > The err msg appears in > void *map_domain_page(unsigned long mfn) > BUG_ON(idx >= MAPCACHE_ENTRIES); > > printk idx is 1024 and BUG_ON is called. > > I print Xen call trace msg: > > [<ffcd3c2>] map_domain_page+0x1a2/0x230 > [<ff1cd718>] unmap_domain_page+0x148/0x160 > addr_to_dma_page_maddr+0x1f6/0x250 > __find_next_zero_bit+0x80/0x90 > intel_iommu_map_page+0x14a/0x250 > domain_context_mapping+0x14a/0x250 > rmrr_identity_mapping+0xb7/0x120 > intel_iommu_dom0_init+0x143/0x1eb > construct_dom0+0x138f/0x16b0 > __start_xen+0x109a/0x1680 > e820nf+0x0/0x4 > __high_start+0x58/0x5a Could you give the below patch a try? Jan --- a/xen/drivers/passthrough/vtd/iommu.c +++ b/xen/drivers/passthrough/vtd/iommu.c @@ -1331,6 +1331,7 @@ int domain_context_mapping_one( if ( context_set_domain_id(context, domain, iommu) ) { spin_unlock(&iommu->lock); + unmap_vtd_domain_page(context_entries); return -EFAULT; } @@ -1672,6 +1673,7 @@ static int intel_iommu_map_page( if ( old.val == new.val ) { spin_unlock(&hd->mapping_lock); + unmap_vtd_domain_page(page); return 0; } *pte = new; ^ permalink raw reply [flat|nested] 21+ messages in thread
* Re: Re: Panic on cpu0 2010-12-16 11:47 ` Jan Beulich @ 2010-12-16 15:18 ` ZhouPeng 0 siblings, 0 replies; 21+ messages in thread From: ZhouPeng @ 2010-12-16 15:18 UTC (permalink / raw) To: Jan Beulich; +Cc: Xen-Devel (E-mail), keir.fraser [-- Attachment #1.1: Type: text/plain, Size: 1630 bytes --] The patch works. Thanks. 2010/12/16 Jan Beulich <JBeulich@novell.com> > >>> On 16.12.10 at 10:30, ZhouPeng <zpengxen@gmail.com> wrote: > > The err msg appears in > > void *map_domain_page(unsigned long mfn) > > BUG_ON(idx >= MAPCACHE_ENTRIES); > > > > printk idx is 1024 and BUG_ON is called. > > > > I print Xen call trace msg: > > > > [<ffcd3c2>] map_domain_page+0x1a2/0x230 > > [<ff1cd718>] unmap_domain_page+0x148/0x160 > > addr_to_dma_page_maddr+0x1f6/0x250 > > __find_next_zero_bit+0x80/0x90 > > intel_iommu_map_page+0x14a/0x250 > > domain_context_mapping+0x14a/0x250 > > rmrr_identity_mapping+0xb7/0x120 > > intel_iommu_dom0_init+0x143/0x1eb > > construct_dom0+0x138f/0x16b0 > > __start_xen+0x109a/0x1680 > > e820nf+0x0/0x4 > > __high_start+0x58/0x5a > > Could you give the below patch a try? > > Jan > > --- a/xen/drivers/passthrough/vtd/iommu.c > +++ b/xen/drivers/passthrough/vtd/iommu.c > @@ -1331,6 +1331,7 @@ int domain_context_mapping_one( > if ( context_set_domain_id(context, domain, iommu) ) > { > spin_unlock(&iommu->lock); > + unmap_vtd_domain_page(context_entries); > return -EFAULT; > } > > @@ -1672,6 +1673,7 @@ static int intel_iommu_map_page( > if ( old.val == new.val ) > { > spin_unlock(&hd->mapping_lock); > + unmap_vtd_domain_page(page); > return 0; > } > *pte = new; > > > -- Zhou Peng My daily E-Mail: ailvpeng25@gmail.com [-- Attachment #1.2: Type: text/html, Size: 2296 bytes --] [-- Attachment #2: Type: text/plain, Size: 138 bytes --] _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel ^ permalink raw reply [flat|nested] 21+ messages in thread
end of thread, other threads:[~2011-01-07 9:24 UTC | newest] Thread overview: 21+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-12-16 6:40 Panic on cpu0 ZhouPeng 2010-12-16 7:41 ` ZhouPeng 2010-12-16 7:59 ` Pasi Kärkkäinen 2010-12-16 9:30 ` ZhouPeng 2010-12-16 9:41 ` ZhouPeng 2010-12-16 10:36 ` Keir Fraser 2010-12-16 11:24 ` ZhouPeng 2010-12-16 11:43 ` Pasi Kärkkäinen 2010-12-16 15:25 ` ZhouPeng 2010-12-16 15:34 ` Pasi Kärkkäinen 2010-12-16 15:46 ` Jan Beulich 2011-01-05 13:37 ` Stefano Stabellini 2011-01-05 13:57 ` Ian Campbell 2011-01-07 7:24 ` ZhouPeng 2011-01-07 9:00 ` Ian Campbell 2011-01-07 9:24 ` Pasi Kärkkäinen 2010-12-16 11:47 ` Keir Fraser 2010-12-16 11:52 ` Pasi Kärkkäinen 2010-12-16 15:20 ` ZhouPeng 2010-12-16 11:47 ` Jan Beulich 2010-12-16 15:18 ` ZhouPeng
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).