From: Simon Horman <horms@verge.net.au>
To: Itsuro ODA <oda@valinux.co.jp>
Cc: xen-devel@lists.xensource.com, kexec@lists.infradead.org,
crash-utility@redhat.com
Subject: Re: handle x86_64 xen code/data relocation
Date: Tue, 20 May 2008 14:45:18 +1000 [thread overview]
Message-ID: <20080520044517.GA308@verge.net.au> (raw)
In-Reply-To: <20080520131910.308D.ODA@valinux.co.jp>
[-- Attachment #1: Type: text/plain, Size: 2884 bytes --]
On Tue, May 20, 2008 at 01:39:26PM +0900, Itsuro ODA wrote:
> Hi all,
>
> On Tue, 20 May 2008 13:58:39 +1000
> Simon Horman <horms@verge.net.au> wrote:
>
> > On Tue, Apr 22, 2008 at 05:32:03PM +0900, Itsuro ODA wrote:
> > > Hi all,
> > >
> > > Recent version of xen (ex. RHEL5.2, 3.2.0) on the x86_64
> > > moves the physical(machine) address of xen code/data area after
> > > the system started up. The start address of this is stored in
> > > 'xen_phys_start'. Thus to get a machine address of a xen text symbol
> > > from its virtual address, calculate
> > > "va - __XEN_VIRT_START + xen_phys_start".
> > >
> > > crash and makedumpfile command need the value of xen_phys_start.
> > > They know the virtual address of 'xen_phys_start' symbol but
> > > no way to extract the value of xen_phys_start.
> > >
> > > I think adding the xen_phys_start value to the CRASHINFO ElfNote
> > > section at first. (Plan A: patch for xen hypervisor code attaced)
> > > It is smallest modification necessary over all.
> > >
> > > On the other hand there is a opinion that it is better to upgrade
> > > a user-package than a hypervisor or kernel package.
> > > The xen_phys_start value can be got from /proc/iomem.
> > > -------------------------------------------------------
> > > # cat /proc/iomem
> > > ...
> > > 7e600000-7f5fffff : Hypervisor code and data *** this line
> > > ...
> > > -------------------------------------------------------
> > > So the kexec-tools can handle it theoretically.
> > >
> > > The Plan B is that kexec-tools adds another ElfNote section which
> > > holds the xen_phys_start value. The attached patch works well
> > > though I am concern about it is a bit tricky.
> > >
> > > Which plan is better ? Or more good implementation ?
> > > Please comment.
> > >
> > > (note that crash and makedumpfile modification is same degree
> > > for both plan.)
> >
> > Hi Oda-san,
> >
> > I think that in terms of simplicity plan A is a clear
> > winner. That is assuming tha the changes to crash
> > and makedumpfile are more or less the same for both
> > plan A and plan B.
>
> The changes to crash and makedumpfile is almost same
> for both plan A and plan B.
>
> Yes, Plan A is simple.
> The point under discussion is that the already released
> versions of xen need to apply the fix, and from the view point
> of the users for such versions they may prefer to update
> the kexec-tools rather than the hypervisor.
>
> > However, if there is a reason that it makes sense to include
> > the change in kexec-tools and make a fresh release, I'm happy to do so.
>
> Thanks.
>
> I am concerned about the changes of the Plan B is little tricky.
> So I will think that the changes become simpler or more reasonable.
Yes, i am concerned about that too.
--
宝曼 西門 (ホウマン・サイモン) | Simon Horman (Horms)
[-- Attachment #2: Type: text/plain, Size: 143 bytes --]
_______________________________________________
kexec mailing list
kexec@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/kexec
next prev parent reply other threads:[~2008-05-20 4:45 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-04-22 8:32 handle x86_64 xen code/data relocation Itsuro ODA
2008-04-22 8:53 ` [Xen-devel] " Keir Fraser
2008-05-20 3:58 ` Simon Horman
2008-05-20 4:39 ` Itsuro ODA
2008-05-20 4:45 ` Simon Horman [this message]
2008-05-20 12:49 ` [Crash-utility] " Dave Anderson
2008-05-30 0:56 ` Itsuro ODA
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=20080520044517.GA308@verge.net.au \
--to=horms@verge.net.au \
--cc=crash-utility@redhat.com \
--cc=kexec@lists.infradead.org \
--cc=oda@valinux.co.jp \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox