libvmmapi: Split the ioctl list into MI and MD lists
authorMark Johnston <markj@FreeBSD.org>
Wed, 3 Apr 2024 16:55:54 +0000 (12:55 -0400)
committerMark Johnston <markj@FreeBSD.org>
Wed, 10 Apr 2024 15:17:56 +0000 (11:17 -0400)
commit7f00e46b85e8c60259ad0bdd53593ea246f3e549
tree3d250d4d6d15c618c6db73c45d384ff771595b38
parent85efb31d50af3cf6987d74f4abe9c54ae493f3a6
libvmmapi: Split the ioctl list into MI and MD lists

To enable use in capability mode, libvmmapi needs a list of all the
ioctls that might be invoked on the vmm device handle.  Some of these
ioctls are amd64-specific.  Move the ioctl list to vmmapi_machdep.c and
define a list of MI ioctls so that the arm64 port can build its own list
without duplicating common ioctls.  No functional change intended.

Reviewed by: corvink, jhb
MFC after: 2 weeks
Sponsored by: Innovate UK
Differential Revision: https://reviews.freebsd.org/D41001
lib/libvmmapi/amd64/vmmapi_machdep.c
lib/libvmmapi/internal.h
lib/libvmmapi/vmmapi.c