x86/alternatives: Clear CR4.CET when clearing CR0.WP
authorAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 1 Nov 2021 10:17:59 +0000 (10:17 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 25 Mar 2022 17:06:38 +0000 (17:06 +0000)
commit9c8a0179039e523cee6de194073c7e3731b952e9
treee0335dc3ee3d8625b4e05be04d7c942ac716ac5a
parent875830393a420eedd2fb0cdba3e8512532c7daee
x86/alternatives: Clear CR4.CET when clearing CR0.WP

This allows us to have CET active much earlier in boot.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
(cherry picked from commit 48cdc15a424f9fadad7f9aed00e7dc8ef16a2196)
xen/arch/x86/alternative.c