HomeFreeBSD

bhyve: Remove vmctx member from struct vm_snapshot_meta.

Description

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

Details

Provenance
jhbAuthored on Mar 24 2023, 6:49 PM
Reviewer
corvink
Differential Revision
D38125: bhyve: Remove vmctx member from struct vm_snapshot_meta.
Parents
rG7d9ef309bd09: libvmmapi: Add a struct vcpu and use it in most APIs.
Branches
Unknown
Tags
Unknown