From: "Marek Marczykowski-Górecki" <marmarek@invisiblethingslab.com>
To: Jan Beulich <jbeulich@suse.com>
Cc: Milan Djokic <milandjokic1995@gmail.com>,
oleksii.kurochko@gmail.com, Nikola Jelic <nikola.jelic@rt-rk.com>,
"Daniel P. Smith" <dpsmith@apertussolutions.com>,
Milan Djokic <milan.djokic@rt-rk.com>,
xen-devel@lists.xenproject.org
Subject: Re: [PATCH v2] xen: PE/COFF image header
Date: Fri, 23 Aug 2024 23:44:24 +0200 [thread overview]
Message-ID: <ZskCubBvCcmd0jJZ@mail-itl> (raw)
In-Reply-To: <1e898a3c-b881-4ca8-99f0-48f51ed28098@suse.com>
[-- Attachment #1: Type: text/plain, Size: 2762 bytes --]
On Mon, Jul 29, 2024 at 01:42:46PM +0200, Jan Beulich wrote:
> On 23.07.2024 20:22, Milan Djokic wrote:
> > From: Nikola Jelic <nikola.jelic@rt-rk.com>
> >
> > Added PE/COFF generic image header which shall be used for EFI
> > application format for x86/risc-v. x86 and risc-v source shall be adjusted
> > to use this header in following commits. pe.h header is taken over from
> > linux kernel with minor changes in terms of formatting and structure member comments.
> > Also, COFF relocation and win cert structures are ommited, since these are not relevant for Xen.
> >
> > Origin: git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git 36e4fc57fc16
> >
> > Signed-off-by: Nikola Jelic <nikola.jelic@rt-rk.com>
> > Signed-off-by: Milan Djokic <milan.djokic@rt-rk.com>
Acked-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> This looks okay to me now, but I can't ack it (or more precisely my ack
> wouldn't mean anything). There are a few style issues in comments, but
> leaving them as they are in Linux may be intentional. Just one question,
> more to other maintainers than to you:
>
> > +#define IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE 0x0040
> > +#define IMAGE_DLL_CHARACTERISTICS_FORCE_INTEGRITY 0x0080
> > +#define IMAGE_DLL_CHARACTERISTICS_NX_COMPAT 0x0100
> > +#define IMAGE_DLLCHARACTERISTICS_NO_ISOLATION 0x0200
> > +#define IMAGE_DLLCHARACTERISTICS_NO_SEH 0x0400
> > +#define IMAGE_DLLCHARACTERISTICS_NO_BIND 0x0800
> > +#define IMAGE_DLLCHARACTERISTICS_WDM_DRIVER 0x2000
> > +#define IMAGE_DLLCHARACTERISTICS_TERMINAL_SERVER_AWARE 0x8000
> > +
> > +#define IMAGE_DLLCHARACTERISTICS_EX_CET_COMPAT 0x0001
> > +#define IMAGE_DLLCHARACTERISTICS_EX_FORWARD_CFI_COMPAT 0x0040
>
> The naming inconsistency (underscore or not after DLL) is somewhat
> unhelpful. Do we maybe want to diverge from what Linux has here? Note
> that e.g. the GNU binutils header has at least a comment there.
Indeed it doesn't look great, but IMO leaving it consistent with Linux
is okay as it ease updating and porting/comparing other code if needed.
> What I'm puzzled by is IMAGE_DLLCHARACTERISTICS_EX_FORWARD_CFI_COMPAT
> having the same value as IMAGE_DLL_CHARACTERISTICS_DYNAMIC_BASE. Are
> these meant to apply to the same field? Or do these values rather
> relate to IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS? Some clarification
> may be needed here, or the two entries may simply want omitting for
> now.
One has _EX_ infix and the other doesn't so IMO together with visual
separation it's clear they apply to a different field.
--
Best Regards,
Marek Marczykowski-Górecki
Invisible Things Lab
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
next prev parent reply other threads:[~2024-08-23 21:44 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-07-19 12:31 [PATCH] xen: PE/COFF image header Milan Djokic
2024-07-22 11:32 ` Jan Beulich
2024-07-23 18:22 ` [PATCH v2] " Milan Djokic
2024-07-29 11:42 ` Jan Beulich
2024-08-19 15:34 ` Milan Đokić
2024-08-19 15:39 ` Jan Beulich
2024-08-26 16:16 ` Daniel P. Smith
2024-08-26 20:10 ` Milan Đokić
2024-08-23 21:44 ` Marek Marczykowski-Górecki [this message]
2024-08-19 17:27 ` oleksii.kurochko
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=ZskCubBvCcmd0jJZ@mail-itl \
--to=marmarek@invisiblethingslab.com \
--cc=dpsmith@apertussolutions.com \
--cc=jbeulich@suse.com \
--cc=milan.djokic@rt-rk.com \
--cc=milandjokic1995@gmail.com \
--cc=nikola.jelic@rt-rk.com \
--cc=oleksii.kurochko@gmail.com \
--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.