Page MenuHomeFreeBSD

bhyve: Remove vmctx member from struct vm_snapshot_meta.
ClosedPublic

Authored by jhb on Jan 19 2023, 6:31 PM.
Tags
None
Referenced Files
F102163905: D38125.diff
Fri, Nov 8, 9:52 AM
Unknown Object (File)
Wed, Oct 16, 3:36 PM
Unknown Object (File)
Wed, Oct 16, 3:35 PM
Unknown Object (File)
Wed, Oct 16, 3:35 PM
Unknown Object (File)
Wed, Oct 16, 3:35 PM
Unknown Object (File)
Wed, Oct 16, 3:17 PM
Unknown Object (File)
Sep 27 2024, 5:36 AM
Unknown Object (File)
Sep 24 2024, 3:00 PM

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Jan 20 2023, 6:51 AM
markj added a subscriber: markj.

For the kernel, the old structure for the ioctl is still supported under COMPAT_FREEBSD13.

Do we really care about preserving compatibility for a feature that isn't compiled in (in userspace anyway) by default? Since you already did the work then I guess it might as well stay but it seems unnecessary.

For the kernel, the old structure for the ioctl is still supported under COMPAT_FREEBSD13.

Do we really care about preserving compatibility for a feature that isn't compiled in (in userspace anyway) by default? Since you already did the work then I guess it might as well stay but it seems unnecessary.

I think we probably mostly don't, but it was cheap to add.

This revision now requires review to proceed.Mar 1 2023, 10:57 PM
This revision is now accepted and ready to land.Mar 2 2023, 6:59 AM