]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Convert vmm_ops calls to IFUNC
authorPeter Grehan <grehan@FreeBSD.org>
Sat, 28 Nov 2020 01:16:59 +0000 (01:16 +0000)
committerPeter Grehan <grehan@FreeBSD.org>
Sat, 28 Nov 2020 01:16:59 +0000 (01:16 +0000)
commit15add60d3743ceb019dd1b5fe3ece68608f65949
tree2d0676f3456bedcad1cfc537e93bb69ee1bf0ee8
parenta36179937e7e768d1840896ac1ea13ba6f118a09
Convert vmm_ops calls to IFUNC

There is no need for these to be function pointers since they are
never modified post-module load.

Rename AMD/Intel ops to be more consistent.

Submitted by: adam_fenn.io
Reviewed by: markj, grehan
Approved by: grehan (bhyve)
MFC after: 3 weeks
Differential Revision: https://reviews.freebsd.org/D27375
sys/amd64/include/vmm.h
sys/amd64/vmm/amd/svm.c
sys/amd64/vmm/intel/vmx.c
sys/amd64/vmm/intel/vmx.h
sys/amd64/vmm/vmm.c
sys/amd64/vmm/vmm_util.c
sys/amd64/vmm/vmm_util.h