Skip to content

x86: init improvements

Roger Pau Monne xen-devel 2 versions In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 12 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86/head: check base address alignmentxen/arch/x86/boot/head.S+14 -02 replies
2/2x86/trampoline: load the GDT located in the trampoline pagexen/arch/x86/boot/trampoline.S+3 -00 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchAndrew CooperJan Beulich
1/2R-b
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH v2 0/2] x86: init improvements

Hello,

The following series contain two minor improvements for early boot: the first one is an alignment check when building the initial page tables, the second is a consistency fix for the GDT used by the BSP for the trampoline code.

Both are a result of some debugging work done on a system with broken firmware that resulted in Xen text not being loaded at a 2Mb aligned address. This resulted in corrupted page tables that would manifest as the ljmp from compatibility mode in trampoline_protmode_entry causing a triple fault due to the GDT being located in the Xen text section, and the page table entry for that address being corrupt because Xen was not loaded a 2Mb boundary.

The aim of the series (specially the first patch) is not to allow booting on such broken firmware, but to print an error message instead of causing a triple fault.

Thanks, Roger.

Roger Pau Monne (2):
x86/head: check base address alignment x86/trampoline: load the GDT located in the trampoline page

 xen/arch/x86/boot/head.S       | 14 ++++++++++++++
 xen/arch/x86/boot/trampoline.S |  3 +++
 2 files changed, 17 insertions(+)
Signature · 1 line
2.40.0