All of lore.kernel.org
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
To: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: "Alan J. Wylie" <NDA5OWUy@wylie.me.uk>,
	"xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Gianni Tedesco <gianni.tedesco@citrix.com>,
	Stefan Kuhne <stefan.kuhne@gmx.net>, sven <ml@infinitumb.de>,
	Andreas Kinzler <ml-xen-devel@hfp.de>
Subject: Re: Xen dom0 crash: "d0:v0: unhandled page	fault (ec=0000)"
Date: Mon, 1 Nov 2010 13:39:40 -0400	[thread overview]
Message-ID: <20101101173940.GA6068@dumpdata.com> (raw)
In-Reply-To: <4CCEC2A8.6040103@goop.org>

> >> http://pastebin.com/3m0DpDdW - 2.6.32.24-gd0054d6-dirty - broken
.. snip..
> The way is this is supposed to work is:
> 
>    1. Xen gives the domain N pages
>    2. There's an E820 which describes M pages (M > N)
>    3. The kernel traverses the existing E820 and finds holes and adds
>       the memory to a new E820_RAM region beyond M
>    4. Set up P2M for pages up to N
>    5. When the kernel maps all "RAM", the region from N-M is not
>       present, and has no valid P2M mapping; in that case, xen_make_pte
>       will return a non-present pte.

Right, and somehow his machine/kernel is not doing this. His 'N' ends up being 'M' so
the region N-M is added to the "RAM", and xen_make_pte I _think_ returns a non-present pte
(or maybe it does present a present pte?) In the previous kernel (2.6.32.18), it
does exactly what you described.

Take a look at his http://pastebin.com/3m0DpDdW

[    0.000000]  Xen: 0000000000000000 - 000000000009e000 (usable)
[    0.000000]  Xen: 0000000000100000 - 000000002f000000 (usable)
[    0.000000]  Xen: 00000000bf699000 - 00000000bf6af000 (reserved)
[    0.000000]  Xen: 00000000bf6af000 - 00000000bf6ce000 (ACPI data)
[    0.000000]  Xen: 00000000bf6ce000 - 00000000c0000000 (reserved)
[    0.000000]  Xen: 00000000e0000000 - 00000000f0000000 (reserved)
[    0.000000]  Xen: 00000000fe000000 - 0000000100000000 (reserved)
[    0.000000]  Xen: 0000000240000000 - 00000002d0699000 (usable)

He passes in dom0_mem=752M flag, so it should stop right at pfn 2f0000,
but it continues on with 0x2d0699.
> 
> The important part of making XEN EXTRA E820_RAM is that the kernel will
> allocate page structures for them, even if the pages are absent.  Making
> it RESERVED will suppress that and make the exercise pointless.

<nods> Happens in 2.6.32.18, but not 2.6.32.24 with his kernel. That region ends
up being allocated.

  reply	other threads:[~2010-11-01 17:39 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-07  9:57 Xen dom0 crash: "d0:v0: unhandled page fault (ec=0000)" Alan J. Wylie
2010-10-07 10:25 ` Alan J. Wylie
2010-10-08 14:08 ` Alan J. Wylie
2010-10-12  8:10 ` Andreas Kinzler
2010-10-12 18:49   ` Jeremy Fitzhardinge
2010-10-12 20:02     ` Valtteri Kiviniemi
2010-10-13  0:26       ` Jeremy Fitzhardinge
2010-10-13  7:03         ` Valtteri Kiviniemi
2010-10-13  7:26     ` Alan J. Wylie
2010-10-13 11:04       ` Alan J. Wylie
2010-10-13 13:52         ` Alan J. Wylie
2010-10-13 14:17           ` Alan J. Wylie
2010-10-13 15:52             ` Alan J. Wylie
2010-10-19 13:15     ` Andreas Kinzler
2010-10-19 13:51       ` Alan J. Wylie
2010-10-19 14:29 ` Gianni Tedesco
2010-10-19 14:58   ` sven
2010-10-19 15:45     ` Gianni Tedesco
2010-10-19 18:01       ` sven
2010-10-19 18:20         ` Gianni Tedesco
2010-10-19 19:05           ` sven
2010-10-19 23:31       ` Andreas Kinzler
2010-10-20  8:54         ` Gianni Tedesco
2010-10-29 15:44           ` Gianni Tedesco
2010-10-29 16:15             ` Konrad Rzeszutek Wilk
2010-11-01 13:37               ` Jeremy Fitzhardinge
2010-11-01 17:39                 ` Konrad Rzeszutek Wilk [this message]
2010-11-01 17:46                   ` Jeremy Fitzhardinge
2010-11-01 17:46                   ` Konrad Rzeszutek Wilk
2010-11-01 18:16                     ` Jeremy Fitzhardinge
2010-11-01 18:19                       ` Gianni Tedesco

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=20101101173940.GA6068@dumpdata.com \
    --to=konrad.wilk@oracle.com \
    --cc=NDA5OWUy@wylie.me.uk \
    --cc=gianni.tedesco@citrix.com \
    --cc=jeremy@goop.org \
    --cc=ml-xen-devel@hfp.de \
    --cc=ml@infinitumb.de \
    --cc=stefan.kuhne@gmx.net \
    --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.