]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
libvmmapi: Conditionalize compilation of some functions
authorMark Johnston <markj@FreeBSD.org>
Wed, 3 Apr 2024 17:45:06 +0000 (13:45 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 10 Apr 2024 15:17:56 +0000 (11:17 -0400)
commit56a26fc1af60e31732f8913ebe4c058095b6c721
treefcd98360a5569b1e4600e41f6e9d29db444f482b
parent981f9f7495bb8247e0eba48e15dcc7f2e0b1b342
libvmmapi: Conditionalize compilation of some functions

Hide definitions of several functions that currently don't have
implementatations in the arm64 vmm port.  In particular, add a
WITH_VMMAPI_SNAPSHOT preprocessor variable that can be used to enable
compilation of save/restore functions, and conditionalize compilation of
some functions only used by amd64 bhyve.  If in the long term they
remain amd64-only, they can move to vmmapi_machdep.c, but for now it's
not clear to me that that's the right thing to do.

MFC after: 2 weeks
Sponsored by: Innovate UK
lib/libvmmapi/Makefile
lib/libvmmapi/amd64/Makefile.inc
lib/libvmmapi/amd64/vmmapi_machdep.c
lib/libvmmapi/internal.h
lib/libvmmapi/vmmapi.c
lib/libvmmapi/vmmapi.h