Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1276492

Re: [Xen-devel] crash tool - problem with new Xen linear virtual mapped sparse p2m list

From "Jan Beulich" <JBeulich@suse.com>
Newsgroups linux.kernel
Subject Re: [Xen-devel] crash tool - problem with new Xen linear virtual mapped sparse p2m list
Date 2015-11-24 15:00 +0100
Message-ID <qymiv-n6-33@gated-at.bofh.it> (permalink)
References (3 earlier) <qyiyf-6qf-43@gated-at.bofh.it> <qyiHV-6J0-21@gated-at.bofh.it> <qyiRA-6MT-9@gated-at.bofh.it> <qyjaX-6V9-35@gated-at.bofh.it> <qym8N-jw-1@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


>>> On 24.11.15 at 14:46, <ian.campbell@citrix.com> wrote:
> On Tue, 2015-11-24 at 10:35 +0000, Andrew Cooper wrote:
>> 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.
> 
> In theory it can actually be dynamic. XENMEM_machphys_mapping is the way to
> get at it (for both bitnesses).
> 
> For 64-bit guests I think that is most an "in theory" thing and it never
> has actually been so.
> 
> For a 32-bit guest case I don't recall if it is just a 32on32 vs 32on64
> thing, or if something (either guest or toolstack) gets to pick more
> dynamically or even if it is a dom0 vs domU thing.

It's only for 32-on-64 where this range can change (and there it's the
64-bit address that crash would care about anyway).

Jan

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

crash tool - problem with new Xen linear virtual mapped sparse p2m  list Daniel Kiper <daniel.kiper@oracle.com> - 2015-11-23 21:20 +0100
  Re: crash tool - problem with new Xen linear virtual mapped sparse  p2m list Juergen Gross <jgross@suse.com> - 2015-11-24 08:00 +0100
    Re: crash tool - problem with new Xen linear virtual mapped  sparse p2m list "Jan Beulich" <JBeulich@suse.com> - 2015-11-24 10:00 +0100
      Re: [Xen-devel] crash tool - problem with new Xen linear virtual  mapped sparse p2m list Malcolm Crossley <malcolm.crossley@citrix.com> - 2015-11-24 11:00 +0100
        Re: [Xen-devel] crash tool - problem with new Xen linear virtual  mapped sparse p2m list David Vrabel <david.vrabel@citrix.com> - 2015-11-24 11:10 +0100
          Re: [Xen-devel] crash tool - problem with new Xen linear virtual  mapped sparse p2m list Petr Tesarik <ptesarik@suse.cz> - 2015-11-24 11:20 +0100
            Re: [Xen-devel] crash tool - problem with new Xen linear virtual  mapped sparse p2m list Andrew Cooper <andrew.cooper3@citrix.com> - 2015-11-24 11:40 +0100
              Re: [Xen-devel] crash tool - problem with new Xen linear virtual  mapped sparse p2m list Petr Tesarik <ptesarik@suse.cz> - 2015-11-24 14:00 +0100
                Re: [Xen-devel] crash tool - problem with new Xen linear  virtual mapped sparse p2m list "Jan Beulich" <JBeulich@suse.com> - 2015-11-24 14:40 +0100
                Re: [Xen-devel] crash tool - problem with new Xen linear virtual  mapped sparse p2m list Andrew Cooper <andrew.cooper3@citrix.com> - 2015-11-24 14:50 +0100
                Re: [Xen-devel] crash tool - problem with new Xen linear virtual  mapped sparse p2m list Andrew Cooper <andrew.cooper3@citrix.com> - 2015-11-24 14:50 +0100
              Re: [Xen-devel] crash tool - problem with new Xen linear virtual  mapped sparse p2m list Ian Campbell <ian.campbell@citrix.com> - 2015-11-24 14:50 +0100
                Re: [Xen-devel] crash tool - problem with new Xen linear  virtual mapped sparse p2m list "Jan Beulich" <JBeulich@suse.com> - 2015-11-24 15:00 +0100

csiph-web