Incorporate r1.140 and r1.141 of vmm.c:
authormlarkin <mlarkin@openbsd.org>
Wed, 26 Apr 2023 15:40:51 +0000 (15:40 +0000)
committermlarkin <mlarkin@openbsd.org>
Wed, 26 Apr 2023 15:40:51 +0000 (15:40 +0000)
commitc68291b4a3d0bcfb48a836752563ffa0637a9625
tree5ce54a1b67682830bc0417a658763d34aa847f7a
parentd01d1292a1593a2ed351bdf9b15377cd2b288f16
Incorporate r1.140 and r1.141 of vmm.c:

----------------------------
revision 1.341
date: 2023/04/26 09:39:56;  author: dv;  state: Exp;  lines: +3 -3;  commitid: 1XztmVbxa8OP2xYi;
Unbreak vmm on Intel. Mistakenly enabled CET on non-CET systems.

Found by anton@ & jsg@
----------------------------
revision 1.340
date: 2023/04/24 16:53:57;  author: dv;  state: Exp;  lines: +11 -1;  commitid: q9qQ55f7h2gen8N4;
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.
sys/arch/amd64/amd64/vmm_machdep.c