From: George Dunlap <george.dunlap@citrix.com>
To: Jan Beulich <JBeulich@suse.com>,
xen-devel <xen-devel@lists.xenproject.org>
Cc: George Dunlap <George.Dunlap@eu.citrix.com>,
Andrew Cooper <andrew.cooper3@citrix.com>,
Keir Fraser <keir@xen.org>, Tim Deegan <tim@xen.org>
Subject: Re: [PATCH 02/10] x86/mm: override stored file names for multiply built sources
Date: Tue, 20 Oct 2015 11:43:13 +0100 [thread overview]
Message-ID: <56261AC1.6090406@citrix.com> (raw)
In-Reply-To: <562635FC02000078000ACB35@prv-mh.provo.novell.com>
On 20/10/15 11:39, Jan Beulich wrote:
> To make it possible to tell apart the static symbols therein, use their
> object file names instead of their source ones.
>
> Signed-off-by: Jan Beulich <jbeulich@suse.com>
I have no idea if the runes are correct, but the idea sounds great:
Acked-by: George Dunlap <george.dunlap@citrix.com>
>
> --- a/xen/arch/x86/mm/guest_walk.c
> +++ b/xen/arch/x86/mm/guest_walk.c
> @@ -29,6 +29,8 @@
> #include <asm/page.h>
> #include <asm/guest_pt.h>
>
> +/* Allow uniquely identifying static symbols in the 3 generated objects. */
> +asm(".file \"guest_walk_" __stringify(GUEST_PAGING_LEVELS) ".o\"");
>
> /* Flags that are needed in a pagetable entry, with the sense of NX inverted */
> static uint32_t mandatory_flags(struct vcpu *v, uint32_t pfec)
> --- a/xen/arch/x86/mm/hap/guest_walk.c
> +++ b/xen/arch/x86/mm/hap/guest_walk.c
> @@ -38,6 +38,9 @@
> #include <asm/guest_pt.h>
> #include <asm/p2m.h>
>
> +/* Allow uniquely identifying static symbols in the 3 generated objects. */
> +asm(".file \"guest_walk_" __stringify(GUEST_PAGING_LEVELS) "level.o\"");
> +
> unsigned long hap_gva_to_gfn(GUEST_PAGING_LEVELS)(
> struct vcpu *v, struct p2m_domain *p2m, unsigned long gva, uint32_t *pfec)
> {
> --- a/xen/arch/x86/mm/shadow/multi.c
> +++ b/xen/arch/x86/mm/shadow/multi.c
> @@ -41,6 +41,9 @@
> #include "private.h"
> #include "types.h"
>
> +/* Allow uniquely identifying static symbols in the 3 generated objects. */
> +asm(".file \"guest_" __stringify(GUEST_PAGING_LEVELS) ".o\"");
> +
> /* THINGS TO DO LATER:
> *
> * TEARDOWN HEURISTICS
>
>
>
next prev parent reply other threads:[~2015-10-20 10:43 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-10-20 10:31 [PATCH 00/10] disambiguate symbol names Jan Beulich
2015-10-20 10:38 ` [PATCH 01/10] symbols: prefix static symbols with their source file name Jan Beulich
2015-10-21 8:43 ` Ian Campbell
2015-10-21 9:14 ` Jan Beulich
2015-10-20 10:39 ` [PATCH 02/10] x86/mm: override stored file names for multiply built sources Jan Beulich
2015-10-20 10:43 ` George Dunlap [this message]
2015-10-20 12:43 ` Tim Deegan
2015-10-20 12:44 ` Andrew Cooper
2015-10-20 13:12 ` Jan Beulich
2015-10-20 13:21 ` Andrew Cooper
2015-10-20 10:40 ` [PATCH 03/10] x86: don't build platform hypercall helpers multiple times Jan Beulich
2015-10-20 12:48 ` Andrew Cooper
2015-10-20 10:41 ` [PATCH 04/10] x86/HVM: prefix both instances of enable_intr_window() Jan Beulich
2015-10-20 12:49 ` Andrew Cooper
2015-10-20 14:45 ` Aravind Gopalakrishnan
2015-10-21 3:01 ` Tian, Kevin
2015-10-20 10:41 ` [PATCH 05/10] x86/mm: build map_domain_gfn() just once Jan Beulich
2015-10-20 12:54 ` Andrew Cooper
2015-10-20 13:15 ` Jan Beulich
2015-10-20 10:42 ` [PATCH 06/10] x86/mm: only a single instance of gw_page_flags[] is needed Jan Beulich
2015-10-20 13:00 ` Andrew Cooper
2015-10-20 10:43 ` [PATCH 07/10] x86/shadow: only a single instance of fetch_type_names[] " Jan Beulich
2015-10-20 12:44 ` Tim Deegan
2015-10-20 10:44 ` [PATCH 08/10] x86/shadow: adjust sh_{make, destroy}_monitor_table() name tags Jan Beulich
2015-10-20 12:45 ` Tim Deegan
2015-10-20 10:45 ` [PATCH 09/10] x86/shadow: drop stray name tags from sh_{guest_get, map}_eff_l1e() Jan Beulich
2015-10-20 12:49 ` Tim Deegan
2015-10-20 10:45 ` [PATCH RFC 10/10] memory/compat: rename get_reserved_device_memory() 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=56261AC1.6090406@citrix.com \
--to=george.dunlap@citrix.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=JBeulich@suse.com \
--cc=andrew.cooper3@citrix.com \
--cc=keir@xen.org \
--cc=tim@xen.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.