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


Groups > linux.kernel > #1315021

Re: [Xen-devel] [PATCH] xen: Add support for dom0 with Linux kernel 3.19 and newer

Path csiph.com!aioe.org!bofh.it!news.nic.it!robomod
From Daniel Kiper <daniel.kiper@oracle.com>
Newsgroups linux.kernel
Subject Re: [Xen-devel] [PATCH] xen: Add support for dom0 with Linux kernel 3.19 and newer
Date Fri, 22 Jan 2016 15:30:02 +0100
Message-ID <qTKSS-5dr-13@gated-at.bofh.it> (permalink)
References <qTtS1-1R8-1@gated-at.bofh.it> <qTGPg-2B3-11@gated-at.bofh.it>
X-Original-To David Vrabel <david.vrabel@citrix.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.21 (2010-09-15)
X-Source-IP userv0021.oracle.com [156.151.31.71]
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 23
Organization linux.* mail to news gateway
X-Original-Cc crash-utility@redhat.com, kexec@lists.infradead.org, linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, jgross@suse.com, olaf@aepfle.de, keir@xen.org, andrew.cooper3@citrix.com, ptesarik@suse.cz, dslutz@verizon.com, anderson@redhat.com, dmair@suse.com, boris.ostrovsky@oracle.com
X-Original-Date Fri, 22 Jan 2016 15:22:06 +0100
X-Original-Message-ID <20160122142206.GZ3485@olila.local.net-space.pl>
X-Original-References <1453407231-25432-1-git-send-email-daniel.kiper@oracle.com> <56A1FE76.40201@citrix.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1315021

Show key headers only | View raw


On Fri, Jan 22, 2016 at 10:03:34AM +0000, David Vrabel wrote:
> On 21/01/16 20:13, Daniel Kiper wrote:
> > Linux kernel commit 054954eb051f35e74b75a566a96fe756015352c8
> > (xen: switch to linear virtual mapped sparse p2m list), which
> > appeared in 3.19, introduced linear virtual mapped sparse p2m
> > list. If readmem() reads p2m then it access this list using
> > physical addresses. Sadly, VMA to physical address translation
> > in crash requires access to p2m list. This means that we have
> > a chicken and egg problem. In general this issue must be solved
> > by introducing some changes in libxl, Linux kernel and crash
> > (I have added this task to my long TODO list). However, in dom0
> > case we can use crash_xen_info_t.dom0_pfn_to_mfn_frame_list_list
> > which is available out of the box. So, let's use it and make
> > at least some users happy.
>
> I'm confused.  How does a virtual address to (pseudo-)physical address
> lookup require access to the p2m?  Surely this is a walk of the page
> tables followed by a M2P lookup on the MFN in the L1 PTE?

Correct but crash does it a bit backward and scans p2m. I am not sure way,
however, I am going to look at it during work on PV guests support.

Daniel

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


Thread

[PATCH] xen: Add support for dom0 with Linux kernel 3.19 and newer Daniel Kiper <daniel.kiper@oracle.com> - 2016-01-21 21:20 +0100
  Re: [Xen-devel] [PATCH] xen: Add support for dom0 with Linux kernel  3.19 and newer David Vrabel <david.vrabel@citrix.com> - 2016-01-22 11:10 +0100
    Re: [Xen-devel] [PATCH] xen: Add support for dom0 with Linux kernel  3.19 and newer Daniel Kiper <daniel.kiper@oracle.com> - 2016-01-22 15:30 +0100

csiph-web