[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/2] x86: init improvements
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Date: Tue, 2 May 2023 16:59:18 +0200
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=tHaYVkPXio4QryvASgtAEsRqT3MTpTQ6WEtH/GK1i0g=; b=i12GEvfcX9k5w65irzejnvOXmoylmMpoe8CTXeqM0b4c3W0AYfxkMjYYnnldBqHQ6I3OprOJmFMI3ERZFSFytJicck9yGp6OLYoMVUcNqjDKi1fM2Ujy1IINttvVEvEyWxILhzi0fG7uBa9DHQfgocXG6MoNnb51ErghpKDjfN32zm2Z7nAUab2M8hOfuVNs5x1p93N+G3kvSza/de1i+pPtnXEFkuiPYd2oloZUWjTYAD2i8CRApMzuSb6pN0xcuEFCzI5TB9sBT+vGYyT2LIwRcF3dnWWWngyHF9jubmPx9At0dzAqNXt7k5CrTmCX0rp/H91PiZHo3wQJTk3a4w==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i+cWA6A9WKM13hyyjNPxyAFyLMjEmp8toj8HqQ8JA3ZUJ0fneiUB86W0/Gic6lQ3AcaJpS9qriLTBBfj7iInr6bpXozB2bFG4cRio4WJbM5ObI+SJJl9T9XT4XBwWwQiik8FcS1zSpp4oCWeme42DdQkb6ctLJJG/xo5wu6hyYX+Hlg0nxu5O9XEPxnTZb6Zvr4z427LoH97TqNUfSlTpgPFEL6G0sbX0fwgVOL7x2/xM9rI62HrTpz1jQH+XwCViGzXe2/WX3rWPpfsMELFXhEfDZzBtvtCac/s9GBtnzmRY24nyhzILJqeMs/5AVElBN2sVsJWmEOrvaYgaq05RA==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Roger Pau Monne <roger.pau@xxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
- Delivery-date: Tue, 02 May 2023 15:02:42 +0000
- Ironport-data: A9a23:7yhQdqD5MSjlzRVW/w/iw5YqxClBgxIJ4kV8jS/XYbTApG5x0WYOy mMfD2mBa/qDZWqge9kkbti+oEoGv5WHnYQ1QQY4rX1jcSlH+JHPbTi7wuUcHAvJd5GeExg3h yk6QoOdRCzhZiaE/n9BCpC48T8nk/nOHuGmYAL9EngZbRd+Tys8gg5Ulec8g4p56fC0GArIs t7pyyHlEAbNNwVcbyRFuspvlDs15K6p4G5A5ARkDRx2lAS2e0c9Xcp3yZ6ZdxMUcqEMdsamS uDKyq2O/2+x13/B3fv8z94X2mVTKlLjFVDmZkh+AsBOsTAbzsAG6Y4pNeJ0VKtio27hc+ada jl6ncfYpQ8BZsUgkQmGOvVSO3kW0aZuoNcrLZUj2CA6IoKvn3bEmp1T4E8K0YIw5el9G3oU+ 9chMylKfyuPnqGW7ZacVbw57igjBJGD0II3nFhFlGmcKMl8BJfJTuPN+MNS2yo2ioZWB/HCa sEFaD1pKhPdfxlIPVRRA5U79AuqriCnL3sE9xTI+OxuuzW7IA9ZidABNPLPfdOHX4NNl1uwr WPa5WXpRBodMbRzzBLcqyr03baRzXOTtIQ6PrKk08Z2oWSqzFNDNyI5anH84vqAsxvrMz5YA wlOksY0loAi+UruQtTjUhmQpH+fogVaS9dWC/c96gyG1uzT+QnxLmoOQyNFadcmnNQrXjFs3 ViM9/v2ARR/vbvTTmiSnop4thu3MCkRaGodPykNSFJd58G5+dluyBXSUtxkDai5yMXvHi39y CyLqy54gKgPickM1OOw+lWvby+Qm6UlhzUdvm3/Nl9JJCsgDGJ5T+REMWTm0Ms=
- Ironport-hdrordr: A9a23:HAsQlqE00bQEPJPFpLqE0seALOsnbusQ8zAXPidKJSC9E/b2qy nKpp8mPHDP5gr5NEtApTnjAtjifZqsz/5ICOAqVN/JMTUO01HYTr2Kg7GSpAHIKmnT8fNcyL clU4UWMqyXMbGit7ee3OBvKadF/OW6
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
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(+)
--
2.40.0
|