[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 00/16] x86/cpu: Cleanup for NX adjustments


  • To: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, Teddy Astie <teddy.astie@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 27 Jan 2026 13:54:52 +0100
  • Autocrypt: addr=jbeulich@xxxxxxxx; keydata= xsDiBFk3nEQRBADAEaSw6zC/EJkiwGPXbWtPxl2xCdSoeepS07jW8UgcHNurfHvUzogEq5xk hu507c3BarVjyWCJOylMNR98Yd8VqD9UfmX0Hb8/BrA+Hl6/DB/eqGptrf4BSRwcZQM32aZK 7Pj2XbGWIUrZrd70x1eAP9QE3P79Y2oLrsCgbZJfEwCgvz9JjGmQqQkRiTVzlZVCJYcyGGsD /0tbFCzD2h20ahe8rC1gbb3K3qk+LpBtvjBu1RY9drYk0NymiGbJWZgab6t1jM7sk2vuf0Py O9Hf9XBmK0uE9IgMaiCpc32XV9oASz6UJebwkX+zF2jG5I1BfnO9g7KlotcA/v5ClMjgo6Gl MDY4HxoSRu3i1cqqSDtVlt+AOVBJBACrZcnHAUSuCXBPy0jOlBhxPqRWv6ND4c9PH1xjQ3NP nxJuMBS8rnNg22uyfAgmBKNLpLgAGVRMZGaGoJObGf72s6TeIqKJo/LtggAS9qAUiuKVnygo 3wjfkS9A3DRO+SpU7JqWdsveeIQyeyEJ/8PTowmSQLakF+3fote9ybzd880fSmFuIEJldWxp Y2ggPGpiZXVsaWNoQHN1c2UuY29tPsJgBBMRAgAgBQJZN5xEAhsDBgsJCAcDAgQVAggDBBYC AwECHgECF4AACgkQoDSui/t3IH4J+wCfQ5jHdEjCRHj23O/5ttg9r9OIruwAn3103WUITZee e7Sbg12UgcQ5lv7SzsFNBFk3nEQQCACCuTjCjFOUdi5Nm244F+78kLghRcin/awv+IrTcIWF hUpSs1Y91iQQ7KItirz5uwCPlwejSJDQJLIS+QtJHaXDXeV6NI0Uef1hP20+y8qydDiVkv6l IreXjTb7DvksRgJNvCkWtYnlS3mYvQ9NzS9PhyALWbXnH6sIJd2O9lKS1Mrfq+y0IXCP10eS FFGg+Av3IQeFatkJAyju0PPthyTqxSI4lZYuJVPknzgaeuJv/2NccrPvmeDg6Coe7ZIeQ8Yj t0ARxu2xytAkkLCel1Lz1WLmwLstV30g80nkgZf/wr+/BXJW/oIvRlonUkxv+IbBM3dX2OV8 AmRv1ySWPTP7AAMFB/9PQK/VtlNUJvg8GXj9ootzrteGfVZVVT4XBJkfwBcpC/XcPzldjv+3 HYudvpdNK3lLujXeA5fLOH+Z/G9WBc5pFVSMocI71I8bT8lIAzreg0WvkWg5V2WZsUMlnDL9 mpwIGFhlbM3gfDMs7MPMu8YQRFVdUvtSpaAs8OFfGQ0ia3LGZcjA6Ik2+xcqscEJzNH+qh8V m5jjp28yZgaqTaRbg3M/+MTbMpicpZuqF4rnB0AQD12/3BNWDR6bmh+EkYSMcEIpQmBM51qM EKYTQGybRCjpnKHGOxG0rfFY1085mBDZCH5Kx0cl0HVJuQKC+dV2ZY5AqjcKwAxpE75MLFkr wkkEGBECAAkFAlk3nEQCGwwACgkQoDSui/t3IH7nnwCfcJWUDUFKdCsBH/E5d+0ZnMQi+G0A nAuWpQkjM1ASeQwSHEeAWPgskBQL
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Julian Vetter <julian.vetter@xxxxxxxxxx>, Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Tue, 27 Jan 2026 12:55:03 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 27.01.2026 13:29, Andrew Cooper wrote:
> On 27/01/2026 12:09 pm, Teddy Astie wrote:
>> Le 27/01/2026 à 12:39, Andrew Cooper a écrit :
>>> On 27/01/2026 11:23 am, Teddy Astie wrote:
>>>> Le 26/01/2026 à 18:56, Andrew Cooper a écrit :
>>>>> I was hoping this to be a patch or two, but it got out of hand...
>>>>>
>>>>> https://gitlab.com/xen-project/hardware/xen-staging/-/pipelines/2287078891
>>>>> https://gitlab.com/xen-project/hardware/xen-staging/-/commits/andrew/nx
>>>>>
>>>>> The branch has one extra patch to fake up the firmware settings being set 
>>>>> to
>>>>> Gitlab CI, not included in this series.
>>>>>
>>>>> Julien: This ought to suitable to rebase your cleanup on to.  In the end, 
>>>>> I
>>>>> did the AMD adjustment mostly because I needed it to test the correctness 
>>>>> of
>>>>> the prior cleanup.
>>>>>
>>>>> The final 4 patches are tangential cleanup which I've kept out of the 
>>>>> prior
>>>>> work in case we wish to backport it.  Everything prior is relevant to
>>>>> untangling, and mostly for the benefit of the AMD side.
>>>>>
>>>>> The early patches are hopefully non-controvertial.  Later patches are a 
>>>>> little
>>>>> more RFC, and in need of further testing.
>>>>>
>>>>> <snip>
>>>>>
>>>> Tested on a Intel machine with "DEP" disabled, and "Require NX support"
>>>> disabled, I get a pagefault in hpet code
>>>  From above:
>>>
>>>> Julien: This ought to suitable to rebase your cleanup on to.
>>> This is cleanup only.  I've not got the bugfixes for EFI boot yet, so
>>> the behaviour you see is still expected for now.
>>>
>>> Although, thinking about it, it might be better if I try to merge the
>>> two series, so everyone can test the end result.
>>>
>>> Thoughts?
>>>
>> +1
>>
>>>>> (XEN) Xen version 4.22-unstable (tsnake41@(none)) (gcc (Alpine 15.2.0) 
>>>>> 15.2.0) debug=y Tue Jan 27 12:06:46 CET 2026
>>>>> (XEN) Latest ChangeSet: Mon Jan 26 17:53:45 2026 +0000 git:6491616ddd
>>>>> (XEN) build-id: 035024497a4cadebf9e5a2ded61f63ac
>>>>> (XEN) re-enabled NX (Execute Disable) protection
>>>>> (XEN) CPU Vendor: Intel, Family 6 (0x6), Model 60 (0x3c), Stepping 3 (raw 
>>>>> 000306c3)
>>>>> (XEN) BSP microcode revision: 0x0000001a
>>>>> (XEN) microcode: Bad data in container
>>>>> (XEN) Microcode: Parse error -22
>>> As a tangent, what's going on here?
>>>
>>> This is the first time I've seen the error outside of my own testing.
>>> Is it a container you expect to be good, or some leftovers on a test
>>> machine?
>>>
>> I'm trying to load a Intel ucode (taken from Alpine Linux intel-ucode 
>> package) using `ucode=intel-ucode.img` in xen.cfg (UEFI direct boot).
>>
>> Many distros ship microcode in a single CPIO image with e.g 
>> "kernel/x86/microcode/GenuineIntel.bin" in it.
> 
> Ah, that's a known thing that doesn't work and has never been
> addressed.  People have been complaining for years, but not on xen-devel.
> 
> It's also the subject of a documentation fix that is still pending (and
> now needs yet another rebase). 
> https://lore.kernel.org/xen-devel/20251215153245.2675388-1-andrew.cooper3@xxxxxxxxxx
> 
> Now that the ucode boot module handling is clean, we can probably try
> both a CPIO and raw probe when given a fixed module.

What does "raw probe" here mean? "ucode=" with a proper ucode blob specified
has always been working for me ... (In fact I don't think I ever really tried
the "scan" approach.)

Jan



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.