WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
Xen

xen-devel

[Top] [All Lists]

Re: [Xen-devel] [PATCH][ELF] Correct space calculation for symtab when B

To: "Keir Fraser" <keir@xxxxxxxxxxxxx>
Subject: Re: [Xen-devel] [PATCH][ELF] Correct space calculation for symtab when BSD_SYMTAB=yes
From: "Christoph Egger" <Christoph.Egger@xxxxxxx>
Date: Thu, 2 Aug 2007 18:52:49 +0200
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: 2007年8月02日 09:51:00 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <C2D798EE.137AC%keir@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <C2D798EE.137AC%keir@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: KMail/1.9.6
On Thursday 02 August 2007 15:21:34 Keir Fraser wrote:
> On 2/8/07 13:26, "Christoph Egger" <Christoph.Egger@xxxxxxx> wrote:
> >> What do the virtual addresses of the symtab/strtab sections have to
> >> do with their location in the final address space, after loading? And
> >> since you pack the sections into the domain address space in
> >> elf_xen_dom_load_binary(), should you not simply sum the sizes of the
> >> sections, then sstart=virt_kend and send=sstart+size_sum, rather than
> >> taking max(end addresses in elf image) minus min(start addresses in elf
> >> image).
> >
> > You're right. Attached is a patch, which does it that way.
>
> Please try changeset 15679 in the -unstable staging tree. It's less code
> and also fixed up to work with the domU domain builder too. Except it's not
> actually been tested with a bsd_symtab guest kernel. It shouldn't need more
> than a few lines of fixing to get it working though, if that.
>
> -- Keir
I tested this both with a Dom0 and DomU guest domain. It works!
Thanks a lot.
Christoph
-- 
AMD Saxony, Dresden, Germany
Operating System Research Center
Legal Information:
AMD Saxony Limited Liability Company & Co. KG
Sitz (Geschäftsanschrift):
 Wilschdorfer Landstr. 101, 01109 Dresden, Deutschland
Registergericht Dresden: HRA 4896
vertretungsberechtigter Komplementär:
 AMD Saxony LLC (Sitz Wilmington, Delaware, USA)
Geschäftsführer der AMD Saxony LLC:
 Dr. Hans-R. Deppe, Thomas McCoy
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: [Xen-devel] Re: please pull ppc/xen-unstable.hg , Hollis Blanchard
Next by Date: [Xen-devel] [PATCH] [ACM] Support for running unlabeled domains alongside labeled ones , Stefan Berger
Previous by Thread: Re: [Xen-devel] [PATCH][ELF] Correct space calculation for symtab when BSD_SYMTAB=yes , Keir Fraser
Next by Thread: [Xen-devel] LRU for recycling shadow pages , Sangmin Lee
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /