vmm(4): allow guests to enable and use supervisor IBT.
authordv <dv@openbsd.org>
Mon, 24 Apr 2023 16:53:57 +0000 (16:53 +0000)
committerdv <dv@openbsd.org>
Mon, 24 Apr 2023 16:53:57 +0000 (16:53 +0000)
commit159fde136b98719c58737948f2e7fbf648c1c470
tree38d7819c6f265505ec4a44739a88af5d5cf6cbd1
parenta684b1d89f4b3459cc990a70c83867100bb5751d
vmm(4): allow guests to enable and use supervisor IBT.

Why should hosts have all the fun? Conditionally unmask the cpuid
bits for IBT and allow r/w access to the supervisor CET msr.

Will need revisiting when we introduce usage of userland CET msr.

ok marlkin@
sys/arch/amd64/amd64/vmm.c