[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH] x86/PV: ignore PAE_MODE ELF note for 64-bit Dom0
- To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
- From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
- Date: Wed, 15 Feb 2023 18:41:25 +0000
- 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=lykSCFFb1jWk2L6ZixKPdzXlFh/amYP04xaYscp0+T4=; b=oZ+50zMa45iA2PCMuS4O1B/8Bip4ya4m/6XiV2+lldW4guByj0xc8Qpwju4SmwXgSBAhaGYhTzsa2Ql0y3QH8nbu7RrjLeOKaMQdxEivxeTVhkK9tW1pj4NxzXjNeIPzjMjI2AaSZwnkBT7joUJIJbJBpWJUy4hl3jS0nfkbqX0B8svN4K59GoofyHRA/G5JlI34BIFGAb1AICKkRalpqiU0Xel2t4EJ/fmiixF9DPjawj0NQGJjmeiwETJvELdmW4c+UUOZXjP8acuQt1eePHSxIJlksgsAzqKWIDiScLUOrFkYMKkm5HE+U3AriHj7+POr81gtMDBXewMDQ07LNw==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IUHRIqsUWaRrQQB7kn/VVrbFWxQS3X5Lh2eH2agAH+YlCMVCefNjwINNZM8HUIm+PQJnEo4YC6n0eKrYXr5cBQjY17talTULa0SRTebYTdJoqiqT+F9KpUDqhvc5fEDsQGfUQbS45HeWmNfg0NlqEX5FkkCdmrVZUswXSOgegb7aYWUvYcpP0PiB3heTtDdtauF6EOufRjq/06RwQF1zUC9zQEce4PKpKHL+vA3EbCgs0/V7+E3XEYWnhlWgutBIjXVjfjOMfEF4rDrsTYHmyVv9ZTvd6g5duGGypYjIrdYI8z9ET4sVDrhlQteR53GwA7lqKS8og4mK5RyT9Mx0Fg==
- Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com;
- Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>
- Delivery-date: Wed, 15 Feb 2023 18:42:06 +0000
- Ironport-data: A9a23:A3Nru6nDZRuSKNqsejSwFWPo5gyjJ0RdPkR7XQ2eYbSJt1+Wr1Gzt xIeW26PPamOZTP8ctEjO4Wz9EkBsJODnIQwSlc6qno2EiMWpZLJC+rCIxarNUt+DCFhoGFPt JxCN4aafKjYaleG+39B55C49SEUOZmgH+a6U6icfHgqH2eIcQ954Tp7gek1n4V0ttawBgKJq LvartbWfVSowFaYCEpNg064gE4p7auaVA8w5ARkPqgR5QKGzRH5MbpETU2PByqgKmVrNrbSq 9brlNmR4m7f9hExPdKp+p6TnpoiG+O60aCm0xK6aoD66vRwjnVaPpUTbZLwXXx/mTSR9+2d/ f0W3XCGpaXFCYWX8AgVe0Ew/yiTpsSq8pefSZS0mZT7I0Er7xIAahihZa07FdRwxwp5PY1B3 aAiATMwaEGevP2Nh7amb7k3oJ17cfC+aevzulk4pd3YJdAPZMmbBo/suppf1jp2gd1SF/HDY cZfcSBocBnLfxxIPBEQFY46m+CrwHL4dlW0qnrM/fZxvzeVk1Q3ieC2WDbWUoXiqcF9t0CUv G/ZuU/+BQkXLoe3wjuZ6HO8wOTImEsXXapDSuDnqac63jV/wEQ4OSA7TV+EpcKYqUmnCpVQN FQF6gkx+P1aGEuDC4OVsweDiHyOswMYWtFQO/Yn8wzLwa3Riy6JC25BQjNfZdgOsM4tWSdsx lKPh8nuBzFkrPuSU3313qiQhSO/P24SN2BqWMMfZQ4M4t2mqodsiBvKF45nCPTs1oazHizsy TeXqiR4n68UkcMAy6S8+xbAni6ooZ/KCAUy4207Q16Y0++wX6b9D6TA1LQRxa8owFqxJrVZg EU5pg==
- Ironport-hdrordr: A9a23:IzUTra3ZjOEutGF1712cBAqjBEgkLtp133Aq2lEZdPU0SKGlfg 6V/MjztCWE7Ar5PUtLpTnuAsa9qB/nm6KdgrNhWItKPjOW21dARbsKheffKlXbcBEWndQtt5 uIHZIeNDXxZ2IK8PoT4mODYqodKA/sytHWuQ/cpU0dMz2Dc8tbnmBE4p7wKDwMeOFBb6BJcq a01458iBeLX28YVci/DmltZZm4mzWa/KiWGCLvHnQcmXGzsQ8=
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
On 15/02/2023 3:10 pm, Jan Beulich wrote:
> Besides a printk() the main effect is slight corruption of the start
> info magic: While that's meant to be xen-3.0-x86_64, it wrongly ended
> up as xen-3.0-x86_64p.
>
> Fixes: 460060f83d41 ("libelf: use for x86 dom0 builder")
> Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
> ---
> RFC: While Linux works fine with the adjustment, I'm not entirely
> certain of external tools (kexec?) having grown a dependency.
Again, I wonder why you think regular kexec has any anything to do with
this?
Are you mixing it up with (legacy) pvgrub which does end up doing a
kexec inside the context of a PV guest? If so, it's MiniOS's support
you need to care about, and I cant see any logic that even inspects the
start_info->magic[] (either in MiniOS itself, or the pvgrub patches).
Like plenty of other fields in the undocumented PV ABI, it's not
interesting at all to software. There's nothing I can see in it that
you don't know at compile time.
> It
> may be worth noting that XenoLinux and its forward ports never had
> this ELF note in 64-bit kernels, so in principle it may be
> reasonable to expect that no such dependency exists anywhere.
NetBSD sets PAE_MODE for 32bit and 64bit but, like everything else,
doesn't appear to inspect start_info->magic[].
xen-3.0-x86_64p is obviously bogus. I find it far more likely that
noone has ever noticed this bug, than anyone gaining a dependency on it.
Insert usual rant about the PV ABI being entirely undocumented...
~Andrew
|