xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
* [RFC v2 0/6] x86/init: use linker table
@ 2016-02-19 14:15 Luis R. Rodriguez
  2016-02-19 14:15 ` [RFC v2 1/6] x86/boot: add BIT() to boot/bitops.h Luis R. Rodriguez
                   ` (5 more replies)
  0 siblings, 6 replies; 13+ messages in thread
From: Luis R. Rodriguez @ 2016-02-19 14:15 UTC (permalink / raw)
  To: hpa, tglx, mingo, bp
  Cc: jgross, rusty, x86, linux-kernel, luto, Luis R. Rodriguez,
	xen-devel, david.vrabel, boris.ostrovsky, andriy.shevchenko,
	mcb30

This v2 is a re-work of the original linker table work [0],
I've split that original series out into 3:

  * paravirt_enabled() work [1]
  * linker table alone and proof of concepts [2]
  * this series - a new use for linker tables on x86 init

Since the crux of this work is the the linker tables,
I expect most feedback to come through there, but this
also had a few comments, which I've addressed in this
series.

The key here is we drop the direct use of the subarch and
instead make them an explicit requirement consideration
for early x86 boot code. Without this we have no ways but
code review to ensure mismatches will not happen. In
theory code review should catch this, in practice -- its
not happening. This takes a proactive approach to the
problem.

The full set of patches (from all related series) are also
available on linux-next [3] and Linus based tree [4].

[0] http://lkml.kernel.org/r/1450217797-19295-1-git-send-email-mcgrof@do-not-panic.com
[1] http://lkml.kernel.org/r/1455887316-9223-1-git-send-email-mcgrof@kernel.org
[2] http://lkml.kernel.org/r/1455889559-9428-1-git-send-email-mcgrof@kernel.org
[3] https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux-next.git/log/?h=20160219-linker-table-v2
[4] https://git.kernel.org/cgit/linux/kernel/git/mcgrof/linux.git/log/?h=20160219-linker-table-v2

Luis R. Rodriguez (6):
  x86/boot: add BIT() to boot/bitops.h
  x86/init: use linker tables to simplify x86 init and annotate
    dependencies
  x86/init: move ebda reservations into linker table
  x86/init: use linker table for i386 early setup
  x86/init: user linker table for ce4100 early setup
  x86/init: use linker table for mid early setup

 arch/x86/Kconfig.debug                  |  47 ++++++
 arch/x86/Makefile                       |   1 -
 arch/x86/boot/bitops.h                  |   2 +
 arch/x86/boot/boot.h                    |   2 +-
 arch/x86/include/asm/bios_ebda.h        |   2 -
 arch/x86/include/asm/setup.h            |  12 --
 arch/x86/include/asm/x86_init.h         |   1 +
 arch/x86/include/asm/x86_init_fn.h      | 263 ++++++++++++++++++++++++++++++++
 arch/x86/kernel/Makefile                |   5 +-
 arch/x86/kernel/dbg-tables/Makefile     |  18 +++
 arch/x86/kernel/dbg-tables/alpha.c      |  10 ++
 arch/x86/kernel/dbg-tables/beta.c       |  18 +++
 arch/x86/kernel/dbg-tables/delta.c      |  10 ++
 arch/x86/kernel/dbg-tables/gamma.c      |  18 +++
 arch/x86/kernel/dbg-tables/gamma.h      |   3 +
 arch/x86/kernel/{head.c => ebda.c}      |   6 +-
 arch/x86/kernel/head32.c                |  23 +--
 arch/x86/kernel/head64.c                |  12 +-
 arch/x86/kernel/init.c                  |  55 +++++++
 arch/x86/kernel/sort-init.c             | 114 ++++++++++++++
 arch/x86/platform/ce4100/ce4100.c       |   4 +-
 arch/x86/platform/intel-mid/intel-mid.c |   4 +-
 22 files changed, 584 insertions(+), 46 deletions(-)
 create mode 100644 arch/x86/include/asm/x86_init_fn.h
 create mode 100644 arch/x86/kernel/dbg-tables/Makefile
 create mode 100644 arch/x86/kernel/dbg-tables/alpha.c
 create mode 100644 arch/x86/kernel/dbg-tables/beta.c
 create mode 100644 arch/x86/kernel/dbg-tables/delta.c
 create mode 100644 arch/x86/kernel/dbg-tables/gamma.c
 create mode 100644 arch/x86/kernel/dbg-tables/gamma.h
 rename arch/x86/kernel/{head.c => ebda.c} (94%)
 create mode 100644 arch/x86/kernel/init.c
 create mode 100644 arch/x86/kernel/sort-init.c

-- 
2.7.0

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2016-02-27  0:19 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-19 14:15 [RFC v2 0/6] x86/init: use linker table Luis R. Rodriguez
2016-02-19 14:15 ` [RFC v2 1/6] x86/boot: add BIT() to boot/bitops.h Luis R. Rodriguez
2016-02-19 15:14   ` Boris Ostrovsky
2016-02-19 21:03     ` Luis R. Rodriguez
2016-02-19 14:15 ` [RFC v2 2/6] x86/init: use linker tables to simplify x86 init and annotate dependencies Luis R. Rodriguez
2016-02-19 16:40   ` Andy Lutomirski
2016-02-20  0:42     ` Luis R. Rodriguez
2016-02-20  7:30       ` Andy Lutomirski
2016-02-27  0:19         ` Luis R. Rodriguez
2016-02-19 14:15 ` [RFC v2 3/6] x86/init: move ebda reservations into linker table Luis R. Rodriguez
2016-02-19 14:15 ` [RFC v2 4/6] x86/init: use linker table for i386 early setup Luis R. Rodriguez
2016-02-19 14:15 ` [RFC v2 5/6] x86/init: user linker table for ce4100 " Luis R. Rodriguez
2016-02-19 14:15 ` [RFC v2 6/6] x86/init: use linker table for mid " Luis R. Rodriguez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).