x86/hvm: Introduce control register handling for CET
authorAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 21 Apr 2020 16:43:56 +0000 (17:43 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 30 Apr 2021 16:29:48 +0000 (17:29 +0100)
commit48f2a10a71bb4bc3053142996dd581ebcfa3e3ab
tree6646f5541f7ba82595bb6685285e2f52d03dcd4f
parent95aaafb5e2a09cad2ab42223e4aa55f88833ef3c
x86/hvm: Introduce control register handling for CET

Allow CR4.CET to be set, based on the CPUID policy (although these bits are
not selectable yet for VMs).  CR4.CET needs interlocing with CR0.WP to
prohibit CET && !WP as a legal combination.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/hvm/hvm.c