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>
Wed, 23 Feb 2022 15:33:43 +0000 (15:33 +0000)
commit48cdc15a424f9fadad7f9aed00e7dc8ef16a2196
treef46a908579a32a2de31dac38584c5c2ecc9996d6
parent9851bc4939101828d2ad7634b93c0d9ccaef5b7e
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>
xen/arch/x86/alternative.c