xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Konrad Rzeszutek Wilk <konrad@kernel.org>
To: Jan Beulich <JBeulich@suse.com>
Cc: xen-devel <xen-devel@lists.xen.org>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Subject: Re: [PATCH 2 of 4] get_page_type: Print out extra information when failing to get page_type
Date: Wed, 22 Aug 2012 10:24:59 -0400	[thread overview]
Message-ID: <20120822142457.GA31341@phenom.dumpdata.com> (raw)
In-Reply-To: <503505710200007800096F0B@nat28.tlf.novell.com>

On Wed, Aug 22, 2012 at 03:14:41PM +0100, Jan Beulich wrote:
> >>> On 21.08.12 at 22:08, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> wrote:
> > # HG changeset patch
> > # User Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
> > # Date 1345579709 14400
> > # Node ID 8ed3eef706710c9c476a8d984bfb2861d92bedfb
> > # Parent  635917c6dac4ab8748572fcbeb3e745428684e15
> > get_page_type: Print out extra information when failing to get page_type.
> > 
> > When any reference to __get_page_type is called and it fails, we get:
> > 
> > (XEN) mm.c:2429:d0 Bad type (saw 1400000000000002 != exp 7000000000000000) 
> > for mfn 10e392 (pfn 1bf6c)
> > 
> > with this patch we get some extra details such as:
> > (XEN) debug.c:127:d0 cr3: 10d80b000, searching for 10e392
> > (XEN) debug.c:111:d0 cr3(10d80b000) has mfn(10e392) in level PUD/L3: [258][272]
> > (XEN) debug.c:111:d0 cr3(10d80b000) has mfn(10e392) in level PMD/L2: [258][511][511]
> > (XEN) debug.c:111:d0 cr3(10d80b000) has mfn(10e392) in level PGD/L4: [272]
> > (XEN) debug.c:111:d0 cr3(10d80b000) has mfn(10e392) in level PUD/L3: [511][511]
> > 
> > where it actually is in the pagetable of the guest. This is useful
> > b/c we can figure out where it is, and use that to figure out where
> > the OS thinks it is.
> 
> In addition to my earlier reply, I also think that the printing
> should be done at info level, so that nothing would get
> additionally printed without special command line options.

I will be more than happy to make those changes. However I think
you are feeling that this is not really that useful? Perhaps if I spiced
it up by also dumping what those 'types' are and added some
rudimentary logic troubleshooting (its an L2 type, and you are trying to
add it as an L1 entry as writeable, so on..)

> 
> Jan
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
> 

  reply	other threads:[~2012-08-22 14:24 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-21 20:08 [PATCH 0 of 4] [RFC PATCH] Various docs and inthe field help patches Konrad Rzeszutek Wilk
2012-08-21 20:08 ` [PATCH 1 of 4] xen/vga: Add 'vga_delay' parameter to delay screen output by X miliseconds per line Konrad Rzeszutek Wilk
2012-08-21 20:08 ` [PATCH 2 of 4] get_page_type: Print out extra information when failing to get page_type Konrad Rzeszutek Wilk
2012-08-22  8:04   ` Jan Beulich
2012-08-22 14:14   ` Jan Beulich
2012-08-22 14:24     ` Konrad Rzeszutek Wilk [this message]
2012-08-22 14:51       ` Jan Beulich
2012-08-21 20:08 ` [PATCH 3 of 4] xen/pagetables: Document that all of the initial regions are mapped Konrad Rzeszutek Wilk
2012-08-22 14:17   ` Jan Beulich
2012-08-22 14:27     ` Konrad Rzeszutek Wilk
2012-08-22 15:24       ` Stefano Stabellini
2012-08-22 15:35         ` Jan Beulich
2012-08-22 16:15           ` Konrad Rzeszutek Wilk
2012-08-21 20:08 ` [PATCH 4 of 4] xen/pagetables: Document pt_base inconsistency when running in COMPAT mode Konrad Rzeszutek Wilk
2012-08-22  9:21   ` Ian Campbell
2012-08-22 14:06     ` Konrad Rzeszutek Wilk
2012-08-22 14:17   ` Jan Beulich

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=20120822142457.GA31341@phenom.dumpdata.com \
    --to=konrad@kernel.org \
    --cc=JBeulich@suse.com \
    --cc=konrad.wilk@oracle.com \
    --cc=xen-devel@lists.xen.org \
    /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 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).