[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 0/2] x86: init improvements
- To: xen-devel@xxxxxxxxxxxxxxxxxxxx
- From: Roger Pau Monne <roger.pau@xxxxxxxxxx>
- Date: Tue, 2 May 2023 11:22:22 +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=6wsYJPe0iu0Z4mSkpPhl8HsiIbXw2+t+onLantpeZho=; b=Huhr7yj6GmH9BlDJZfUfroHMePtFb1yp3J4Jt/GauGiODO4r23G+mDEsWOdzdhOvIIuauyTmPt6gJIlI9wDE4sLxvklB+CGgCp1tAgE60GG1NnfAY9aG2S22A+JGuG1S7zCX3C1k4f//WZq8DkF410w5WLYiaEyjtO/TMH3wsdry3tPWdv1F6PFrwP3srFZGfJlhcfGGcUlSck7NQjrHcdoVIWNYynu9VAhBb2Q4b9stON8vZkpSMV4ud1ca8w0r2w5rHapLZBvVof6tylyFAFbzfv5wLZ9c3ewnkdckADdU1rNWWDXVIY/0Ht/IVnIc2Pdvz3ET5+pHuBxrkCbQ0Q==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=oEoxG0VdALQg+l7WgfIC+Jgz7G7BisD9OG/30gA3LKQ3Y75lHzwNDk+20pPKW52/wX9KkiyHxrC67JZBgwLEZ4jN3+QFH0dpqRxqZ0erZp+iryw0yQfSlJA4wgD2CNRKKc7coZn8ClK61Y3pD6QQoyveTR9AJKUd2moRcPuaSROIrtYd/LP0SQr8XuLnrhrhi1zR9Ic3yq5+9me4kzvgMVFh4xNawQJAzsuIx2tagUd+Vk9Bb7hKLalwLf88J8Y4h+KiOhG47tpvXqhdhHo4xS7iwBmmMeiSOIgDfukC1ZhfMBRMeCX+w36waqZvWipXF40LabcVk2qzK855UT8gIw==
- 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 09:23:00 +0000
- Ironport-data: A9a23:pKlYPq8d9/v/dYFMoADsDrUDpn+TJUtcMsCJ2f8bNWPcYEJGY0x3m jQbUW/XbvfcMGXwL950PNmw9RhV657RmtRkTldv+S48E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjUAOG6UKicYXoZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ire7kI+1BjOkGlA5AdmOKgR5Aa2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDklep N83DBkGUSmfjvqt2pWnSM99weIaeZyD0IM34hmMzBn/JNN/G9XvZvuP4tVVmjAtmspJAPDSI dIDbiZiZwjBZBsJPUoLDJU5n6GjgXyXnz9w8QrJ4/ZopTWCilUuitABM/KMEjCObd9SkUuC4 HrP4kzyAw0ANczZwj2Amp6prraXwn6lB95JS9VU8NZrr1646UwdFiQGbnbloOeY0FKOCvJQf hl8Fi0G6PJaGFaQZsnwWVi0rWCJujYYWsFMCKsq5QeV0K3W7g2FQG8eQVZpatYrqcs3TjwCz UKSkpXiAjkHmKKRYWKQ8PGTtzzaBMQOBWoLZCtBQQ5b5dDm+ds3lkiWEYwlF7OphNroHz222 yqNsCU1m7QUi4gMyrm/+lfExTmro/AlUzII2+keZUr9hisRWWJvT9bABYTzhRqYELukcw==
- Ironport-hdrordr: A9a23:d0fq5KAqEkL55m7lHejXsceALOsnbusQ8zAXPo5KOHhom62j5r STdZEgvnHJYVkqOE3I5urwR5VoLUm8yXcX2/hiAV7dZniFhILAFugLh7cKqAeQeBEWmNQtsJ uJeMBFeaPN5TARt6rHCGLTKbkdKBbsys2VrNab9lMoaTxDL5hn6QIRMHfvLqW1LjM2dKbQ0P Cnl7l6T//LQwVmUi3BPAhjY8Hz4+fTkY7gY1ovHgdP0nj3sRqYrITiFgSe3FM0TzNLzN4ZgB T4uj283Lynr/a4jjjV02O71eUxpPLRjuFbAdCKiIwyNDLhkW+TFf1ccozHhikxvOasrGwLvb D30mwdFvU20WrVYma25SHgwBbtyxEn73OK8y7jvVLT5fbhQS48CY5/iZlCch3fgnBQwe1B7A ==
- 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 | 9 +++++++++
xen/arch/x86/boot/trampoline.S | 6 ++++++
2 files changed, 15 insertions(+)
--
2.40.0
|