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
Unknown Object (File)
Sun, Apr 21, 6:22 PM
Unknown Object (File)
Dec 23 2023, 1:58 AM
Unknown Object (File)
Nov 29 2023, 1:20 PM
Unknown Object (File)
Jun 20 2023, 6:05 AM
Unknown Object (File)
Apr 8 2023, 8:46 PM
Unknown Object (File)
Apr 3 2023, 4:49 PM
Unknown Object (File)
Mar 24 2023, 7:27 PM
Unknown Object (File)
Mar 23 2023, 6:10 AM

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