From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Michael D Labriola <mlabriol@gdeb.com>, Ian.Campbell@citrix.com
Cc: xen-devel@lists.xensource.com, ?????? <peb1611@gmail.com>,
xen-devel-bounces@lists.xensource.com
Subject: Re: I cannot get any message from domU by console / pv_ops domU kernel crashes with xen_create_contiguous_region failed
Date: Tue, 22 Dec 2009 10:40:10 -0500 [thread overview]
Message-ID: <20091222154010.GB5181@phenom.dumpdata.com> (raw)
In-Reply-To: <OFA9DD0CBA.CD926D6D-ON85257694.0050EAF5-85257694.0053BB4E@gdeb.com>
On Tue, Dec 22, 2009 at 10:14:34AM -0500, Michael D Labriola wrote:
> xen-devel-bounces@lists.xensource.com wrote on 12/22/2009 09:32:03 AM:
>
> > > > (early) [ 0.000000] Kernel panic - not syncing:
> > > > <3>xen_create_contiguous_region failed
> >
> > This implies you did not have enough DMA32 memory in the hypervisor
> > for the guest.
> > Meaning at least 64MB. When you launch your guest, run 'xm info' and
> > see what you have. The latest
> > from xen-unstable tries to have _at least_ that amount of memory
> available
> > for the guest. Here is what I see:
> >
> > free_memory : 3938
> > node_to_cpu : node0:0-1
> > node_to_memory : node0:3938
> > node_to_dma32_mem : node0:3514
> >
> > The node_to_dma32_mem needs to have at least 64.
>
> I'm using Xen 3.4.2. xm info doesn't have a 'node_to_dma32_mem' entry at
> all. I wasn't setting dom0 memory constraints via grub before, so I tried
> adding dom0_mem=512M. That makes free_memory=3533 on my system. Still
> get the same panic.
All of your memory is below 4GB, so you should not be hitting the problem
I thought you had (not enought memory under 4GB).
Maybe Xen 3.4.2 logic is much different than 4.0 when it comes to exchanging MFNs
and Ian's is right. Under 4.0 it I've no trouble exchanging the MFNs even without
any PCI devices being passed in.
Can you try this patch to help narrow down the problem:
diff --git a/arch/x86/xen/pci-swiotlb.c b/arch/x86/xen/pci-swiotlb.c
index ecdbfe2..37fd0e3 100644
--- a/arch/x86/xen/pci-swiotlb.c
+++ b/arch/x86/xen/pci-swiotlb.c
@@ -960,7 +960,7 @@ xen_swiotlb_fixup(void *buf, size_t size, unsigned long nslabs)
dma_bits);
} while (rc && dma_bits++ < max_dma_bits);
if (rc)
- panic(KERN_ERR "xen_create_contiguous_region failed\n");
+ panic(KERN_ERR "xen_create_contiguous_region failed: rc: %d\n", rc);
i += slabs;
} while(i < nslabs);
And also ensure that your command line for Xen has: console=com1,vga guest_loglvl=all
And tell me what environemtn you are using? Is the hypervisor a 64-bit
while dom0 is 32bit or 64bit? Is DomU 32bit or 64bit?
>
> > Or you can add 'iommu=off' to your boot arguments that should
> > disable the SWIOTLB.
>
> Is iommu=off for dom0 or domU boot args. If it's dom0, is it for the
> hypervisor or the kernel? I've tried adding it to all 3 places, but I
> still get the same panic message.
Well that is a surprise. My recollection of the code vs what is there
confirms that the code logic is a bit brute. It turns on SWIOTLB
irregardless of any flags you pass in. So nevermind the 'iommu=off'
attempt.
next prev parent reply other threads:[~2009-12-22 15:40 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-21 14:30 I cannot get any message from domU by console 박은병
2009-12-21 18:30 ` Pasi Kärkkäinen
[not found] ` <ebf0d9030912212002h6996f725kf4626bd02e03161b@mail.gmail.com>
2009-12-22 8:42 ` I cannot get any message from domU by console / pv_ops domU kernel crashes with xen_create_contiguous_region failed Pasi Kärkkäinen
2009-12-22 9:20 ` Ian Campbell
2009-12-22 13:04 ` Michael D Labriola
2009-12-22 13:20 ` Michael D Labriola
2009-12-22 14:09 ` Ian Campbell
2009-12-22 13:33 ` 박은병
2009-12-22 14:35 ` Konrad Rzeszutek Wilk
2009-12-22 14:50 ` Ian Campbell
2009-12-22 15:47 ` Konrad Rzeszutek Wilk
2009-12-22 16:09 ` Ian Campbell
2009-12-22 16:19 ` Konrad Rzeszutek Wilk
2009-12-22 16:59 ` Konrad Rzeszutek Wilk
2009-12-22 18:02 ` Ian Campbell
2009-12-22 18:08 ` Konrad Rzeszutek Wilk
2009-12-22 14:32 ` Konrad Rzeszutek Wilk
2009-12-22 14:58 ` Ian Campbell
2009-12-22 15:27 ` Konrad Rzeszutek Wilk
2009-12-22 15:14 ` Michael D Labriola
2009-12-22 15:40 ` Konrad Rzeszutek Wilk [this message]
2009-12-22 16:44 ` Michael D Labriola
2009-12-22 16:55 ` Michael D Labriola
2009-12-22 17:00 ` Konrad Rzeszutek Wilk
2009-12-22 17:20 ` Michael D Labriola
2009-12-22 17:59 ` Michael D Labriola
2009-12-22 18:23 ` Konrad Rzeszutek Wilk
2009-12-22 18:47 ` Michael D Labriola
2009-12-22 19:14 ` Konrad Rzeszutek Wilk
2009-12-22 19:50 ` Michael D Labriola
2009-12-22 20:03 ` Ian Campbell
2009-12-22 21:00 ` Michael D Labriola
2009-12-22 20:07 ` Konrad Rzeszutek Wilk
2009-12-22 20:37 ` Konrad Rzeszutek Wilk
2009-12-22 21:49 ` Michael D Labriola
2009-12-23 18:49 ` Michael D Labriola
2009-12-23 20:15 ` Michael D Labriola
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20091222154010.GB5181@phenom.dumpdata.com \
--to=konrad.wilk@oracle.com \
--cc=Ian.Campbell@citrix.com \
--cc=mlabriol@gdeb.com \
--cc=peb1611@gmail.com \
--cc=xen-devel-bounces@lists.xensource.com \
--cc=xen-devel@lists.xensource.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.