All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jan Beulich <jbeulich@suse.com>
To: Ian Jackson <iwj@xenproject.org>, Wei Liu <wl@xen.org>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	George Dunlap <george.dunlap@citrix.com>,
	Julien Grall <julien@xen.org>,
	Stefano Stabellini <sstabellini@kernel.org>,
	xen-devel@lists.xenproject.org,
	Roger Pau Monne <roger.pau@citrix.com>
Subject: Re: [PATCH v3 1/2] libelf: don't attempt to parse __xen_guest for PVH
Date: Fri, 28 May 2021 09:21:42 +0200	[thread overview]
Message-ID: <e6145998-0736-a213-36b2-ace27c3844be@suse.com> (raw)
In-Reply-To: <6dd3d6fe-04cc-4b9d-e92f-6d4c81785300@suse.com>

On 21.05.2021 15:31, Jan Beulich wrote:
> On 20.05.2021 14:35, Jan Beulich wrote:
>> On 20.05.2021 14:30, Roger Pau Monne wrote:
>>> The legacy __xen_guest section doesn't support the PHYS32_ENTRY
>>> elfnote, so it's pointless to attempt to parse the elfnotes from that
>>> section when called from an hvm container.
>>>
>>> Suggested-by: Jan Beulich <jbeulich@suse.com>
>>> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
>>> ---
>>> Changes since v2:
>>>  - New in this version.
>>> ---
>>>  xen/common/libelf/libelf-dominfo.c | 6 ++----
>>>  1 file changed, 2 insertions(+), 4 deletions(-)
>>>
>>> diff --git a/xen/common/libelf/libelf-dominfo.c b/xen/common/libelf/libelf-dominfo.c
>>> index 69c94b6f3bb..abea1011c18 100644
>>> --- a/xen/common/libelf/libelf-dominfo.c
>>> +++ b/xen/common/libelf/libelf-dominfo.c
>>> @@ -577,10 +577,8 @@ elf_errorstatus elf_xen_parse(struct elf_binary *elf,
>>>  
>>>      }
>>>  
>>> -    /*
>>> -     * Finally fall back to the __xen_guest section.
>>> -     */
>>> -    if ( xen_elfnotes == 0 )
>>> +    /* Finally fall back to the __xen_guest section for PV guests only. */
>>> +    if ( xen_elfnotes == 0 && !hvm )
>>
>> Isn't this depending on the 2nd patch adding the function parameter?
>> IOW doesn't this break the build, even if just transiently? With the
>> respective hunk from patch 2 moved here
>> Reviewed-by: Jan Beulich <jbeulich@suse.com>
> 
> With the intention of committing I did this hunk movement, noticing
> that
> - it's more than just one hunk,
> - a tool stack maintainer ack is actually going to be needed (all
>   respective hunks are now in the first patch).
> I'll keep the massaged patches locally, until the missing ack arrives.

I've timed out waiting for an ack and committed the patches, considering
the tool stack parts of them are mechanical enough.

Jan


  reply	other threads:[~2021-05-28  7:22 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-20 12:30 [PATCH v3 0/2] libelf: small fixes for PVH Roger Pau Monne
2021-05-20 12:30 ` [PATCH v3 1/2] libelf: don't attempt to parse __xen_guest " Roger Pau Monne
2021-05-20 12:35   ` Jan Beulich
2021-05-21 13:31     ` Jan Beulich
2021-05-28  7:21       ` Jan Beulich [this message]
2021-05-20 12:30 ` [PATCH v3 2/2] libelf: improve PVH elfnote parsing Roger Pau Monne
2021-05-20 12:37   ` 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=e6145998-0736-a213-36b2-ace27c3844be@suse.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=george.dunlap@citrix.com \
    --cc=iwj@xenproject.org \
    --cc=julien@xen.org \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=wl@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.