freebsd-dev/lib/libvmmapi
John Baldwin 0f735657aa bhyve: Remove vmctx member from struct vm_snapshot_meta.
This is a userland-only pointer that isn't relevant to the kernel and
doesn't belong in the ioctl structure shared between userland and the
kernel.  For the kernel, the old structure for the ioctl is still
supported under COMPAT_FREEBSD13.

This changes vm_snapshot_req() in libvmmapi to accept an explicit
vmctx argument.

It also changes vm_snapshot_guest2host_addr to take an explicit vmctx
argument.  As part of this change, move the declaration for this
function and its wrapper macro from vmm_snapshot.h to snapshot.h as it
is a userland-only API.

Reviewed by:	corvink, markj
Differential Revision:	https://reviews.freebsd.org/D38125
2023-03-24 11:49:06 -07:00
..
internal.h libvmmapi: Add a struct vcpu and use it in most APIs. 2023-03-24 11:49:06 -07:00
Makefile libvmmapi: Add a struct vcpu and use it in most APIs. 2023-03-24 11:49:06 -07:00
Makefile.depend Update Makefile.depend files 2019-12-11 17:37:53 +00:00
vmmapi_freebsd.c libvmmapi: Add a struct vcpu and use it in most APIs. 2023-03-24 11:49:06 -07:00
vmmapi.c bhyve: Remove vmctx member from struct vm_snapshot_meta. 2023-03-24 11:49:06 -07:00
vmmapi.h bhyve: Remove vmctx member from struct vm_snapshot_meta. 2023-03-24 11:49:06 -07:00