From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Jan Beulich <JBeulich@suse.com>, Petr Tesarik <ptesarik@suse.cz>
Cc: Juergen Gross <JGross@suse.com>, <olaf@aepfle.de>, <keir@xen.org>,
DanielKiper <daniel.kiper@oracle.com>,
<linux-kernel@vger.kernel.org>, <dslutz@verizon.com>,
<anderson@redhat.com>, David Vrabel <david.vrabel@citrix.com>,
David Mair <DMAIR@suse.com>, <xen-devel@lists.xenproject.org>,
<boris.ostrovsky@oracle.com>,
"Malcolm Crossley" <malcolm.crossley@citrix.com>,
<crash-utility@redhat.com>
Subject: Re: [Xen-devel] crash tool - problem with new Xen linear virtual mapped sparse p2m list
Date: Tue, 24 Nov 2015 13:41:01 +0000 [thread overview]
Message-ID: <565468ED.8060206@citrix.com> (raw)
In-Reply-To: <5654769502000078000B86AA@prv-mh.provo.novell.com>
On 24/11/15 13:39, Jan Beulich wrote:
>>>> On 24.11.15 at 13:57, <ptesarik@suse.cz> wrote:
>> V Tue, 24 Nov 2015 10:35:03 +0000
>> Andrew Cooper <andrew.cooper3@citrix.com> napsáno:
>>
>>> On 24/11/15 10:17, Petr Tesarik wrote:
>>>> On Tue, 24 Nov 2015 10:09:01 +0000
>>>> David Vrabel <david.vrabel@citrix.com> wrote:
>>>>
>>>>> On 24/11/15 09:55, Malcolm Crossley wrote:
>>>>>> On 24/11/15 08:59, Jan Beulich wrote:
>>>>>>>>>> On 24.11.15 at 07:55, <JGross@suse.com> wrote:
>>>>>>>> What about:
>>>>>>>>
>>>>>>>> 4) Instead of relying on the kernel maintained p2m list for m2p
>>>>>>>> conversion use the hypervisor maintained m2p list which should be
>>>>>>>> available in the dump as well. This is the way the alive kernel is
>>>>>>>> working, so mimic it during crash dump analysis.
>>>>>>> I fully agree; I have to admit that looking at the p2m when doing page
>>>>>>> table walks for a PV Dom0 (having all machine addresses in page table
>>>>>>> entries) seems kind of backwards. (But I say this knowing nothing
>>>>>>> about the tool.)
>>>>>>>
>>>>>> I don't think we can reliably use the m2p for PV domains because
>>>>>> PV domains don't always issue a m2p update hypercall when they change
>>>>>> their p2m mapping.
>>>>> This only applies to foreign pages which won't be very interesting to a
>>>>> crash tool.
>>>> True. I think the main reason crash hasn't done this is that it cannot
>>>> find the hypervisor maintained m2p list. It should be sufficient to add
>>>> some more fields to XEN_VMCOREINFO, so that crash can locate the
>>>> mapping in the dump.
>>> The M2P lives at an ABI-specified location in all virtual address spaces
>>> for PV guests.
>>>
>>> Either 0xF5800000 or 0xFFFF800000000000 depending on bitness.
>> Hm, this is nice, but kind of chicken-and-egg problem. A system dump
>> contains a snapshot of the machine's RAM. But the addresses you
>> mentioned are virtual addresses. How do I translate them to physical
>> addresses without an m2p mapping? I need at least the value of CR3 for
>> that domain, and most likely a way to determine if it is a PV domain.
> This ought to also be present in Xen's master page table
> (idle_pg_table[]), and I suppose we can take for granted a symbol
> table being available.
The idle_pg_table is already present in the VMCORE notes.
~Andrew
next prev parent reply other threads:[~2015-11-24 13:41 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-23 20:18 crash tool - problem with new Xen linear virtual mapped sparse p2m list Daniel Kiper
2015-11-24 6:55 ` Juergen Gross
2015-11-24 8:59 ` Jan Beulich
2015-11-24 9:55 ` [Xen-devel] " Malcolm Crossley
2015-11-24 10:09 ` David Vrabel
2015-11-24 10:17 ` Petr Tesarik
2015-11-24 10:35 ` Andrew Cooper
2015-11-24 12:57 ` Petr Tesarik
2015-11-24 13:39 ` Jan Beulich
2015-11-24 13:41 ` Andrew Cooper [this message]
2015-11-24 13:42 ` Andrew Cooper
2015-11-24 13:46 ` Ian Campbell
2015-11-24 13:55 ` 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=565468ED.8060206@citrix.com \
--to=andrew.cooper3@citrix.com \
--cc=DMAIR@suse.com \
--cc=JBeulich@suse.com \
--cc=JGross@suse.com \
--cc=anderson@redhat.com \
--cc=boris.ostrovsky@oracle.com \
--cc=crash-utility@redhat.com \
--cc=daniel.kiper@oracle.com \
--cc=david.vrabel@citrix.com \
--cc=dslutz@verizon.com \
--cc=keir@xen.org \
--cc=linux-kernel@vger.kernel.org \
--cc=malcolm.crossley@citrix.com \
--cc=olaf@aepfle.de \
--cc=ptesarik@suse.cz \
--cc=xen-devel@lists.xenproject.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