Re: [PATCH RFC 0/2] x86/boot: Introduce the setup_header2

From: Daniel Kiper
Date: Thu Jun 06 2019 - 13:51:00 EST


On Thu, Jun 06, 2019 at 01:30:46PM -0400, Konrad Rzeszutek Wilk wrote:
> On Thu, Jun 06, 2019 at 01:51:08PM +0200, Daniel Kiper wrote:
> > On Wed, Jun 05, 2019 at 10:01:17AM -0400, Konrad Rzeszutek Wilk wrote:
> > > On Wed, Jun 05, 2019 at 03:50:31PM +0200, Daniel Kiper wrote:
> > > > On Fri, May 24, 2019 at 11:55:02AM +0200, Daniel Kiper wrote:
> > > > > Hi,
> > > > >
> > > > > This change is needed to properly start the Linux kernel in Intel TXT mode and
> > > > > is a part of the TrenchBoot project (https://github.com/TrenchBoot).
> > >
> > > Can you please expand more on this?
> > >
> > > Nice explanation of why, other alternative solutions that didn't work, and so on.
> >
> > OK.
> >
> > > > > Daniel
> > > > >
> > > > > Documentation/x86/boot.txt | 55 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
> > > > > arch/x86/Kconfig | 7 +++++++
> > > > > arch/x86/boot/Makefile | 2 +-
> > > > > arch/x86/boot/compressed/Makefile | 5 +++--
> > > > > arch/x86/boot/compressed/setup_header2.S | 18 ++++++++++++++++++
> > > > > arch/x86/boot/compressed/sl_stub.S | 28 ++++++++++++++++++++++++++++
> > > > > arch/x86/boot/header.S | 3 ++-
> > > > > arch/x86/boot/tools/build.c | 8 ++++++++
> > > > > arch/x86/include/uapi/asm/bootparam.h | 1 +
> > > > > 9 files changed, 123 insertions(+), 4 deletions(-)
> > > > >
> > > > > Daniel Kiper (2):
> > > > > x86/boot: Introduce the setup_header2
> > > > > x86/boot: Introduce dummy MLE header
> > > >
> > > > Ping?
> > >
> > > Can you add Ingo and Thomas to the To: next time please?
> >
> > OK.
> >
> > > Also please drop the second patch.
> >
> > Why? This is an example how to use the setup_header2.
>
> If you are going to post it as non-RFC (which I suspect you will
> for the next), then why post a patch that is not to be checked in?

Nope, this will be an RFC. And the second patch is an example. I hope
that it eases understanding how all pieces fit together. If the idea
is approved then first patch will be posted with full Intel TXT
implementation and second patch will contain fully fledged MLE header.

Daniel