The hypercall page populated with instructions by the hypervisor is not IBT
authoranton <anton@openbsd.org>
Wed, 5 Jul 2023 18:23:10 +0000 (18:23 +0000)
committeranton <anton@openbsd.org>
Wed, 5 Jul 2023 18:23:10 +0000 (18:23 +0000)
commitbc3c2f6195973bddd45dfa99715740ad80b376fd
treed9208ffffca3ce7bd5eca65bc18b530100c6504c
parentde3309eee246ab22f714794c6ed0d90cabe5acc6
The hypercall page populated with instructions by the hypervisor is not IBT
compatible due to lack of endbr64. Replace the indirect call with a new
hv_hypercall_trampoline() routine which jumps to the hypercall page without any
indirection.

Allows me to boot OpenBSD using Hyper-V on Windows 11 again.

ok guenther@
sys/arch/amd64/amd64/locore.S
sys/dev/pv/hyperv.c