We don't do compat32 so MSR_CSTAR shouldn't be set up: delete the
authorguenther <guenther@openbsd.org>
Sun, 25 Feb 2024 22:33:09 +0000 (22:33 +0000)
committerguenther <guenther@openbsd.org>
Sun, 25 Feb 2024 22:33:09 +0000 (22:33 +0000)
commit073d4874bad48a3c63c4dc7856fc2e2a893a7964
treeddc2dfb6c822faaecd7b40ba9afc2929cc026a2a
parentc737cf90c555ea2a43d15654d58c047b881e67da
We don't do compat32 so MSR_CSTAR shouldn't be set up: delete the
Xsyscall32 stub and UCODE32 selector, set MSR_CSTAR to zero at CPU
startup, and rezero on ACPI resume and VM exit.

requested a while ago by deraadt@
AMD VM testing chris@
testing and ok krw@
sys/arch/amd64/amd64/acpi_wakecode.S
sys/arch/amd64/amd64/cpu.c
sys/arch/amd64/amd64/locore.S
sys/arch/amd64/amd64/machdep.c
sys/arch/amd64/amd64/vmm_machdep.c
sys/arch/amd64/amd64/vmm_support.S
sys/arch/amd64/include/segments.h