Page MenuHomeFreeBSD

bhyve: Remove unused vm and vcpu arguments from vm_copy routines.
ClosedPublic

Authored by jhb on Oct 27 2022, 3:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 1:41 PM
Unknown Object (File)
Wed, May 8, 1:40 PM
Unknown Object (File)
Wed, May 8, 1:40 PM
Unknown Object (File)
Wed, May 8, 1:40 PM
Unknown Object (File)
Wed, May 8, 12:03 PM
Unknown Object (File)
Mar 8 2024, 10:37 PM
Unknown Object (File)
Mar 8 2024, 10:15 PM
Unknown Object (File)
Mar 8 2024, 10:15 PM

Details

Summary

The arguments identifying the VM and vCPU are only needed for
vm_copy_setup.

Diff Detail

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

Event Timeline

jhb requested review of this revision.Oct 27 2022, 3:04 PM
corvink added inline comments.
lib/libvmmapi/vmmapi.c
1471

This function is empty and seems to be unused. Have you considered removing it?

lib/libvmmapi/vmmapi.c
1471

So this API is kind of funky as the shared vmm_instruction_emul.c calls it both in the kernel and in userland. The in-kernel version is non-empty.

sys/amd64/vmm/vmm.c
2726

This is the in-kernel version.

corvink added inline comments.
lib/libvmmapi/vmmapi.c
1471

Thanks for clarification.

This revision is now accepted and ready to land.Nov 7 2022, 7:00 AM
markj added inline comments.
lib/libvmmapi/vmmapi.c
1471

Might be worth adding a comment to that effect.

jhb marked an inline comment as done.Nov 11 2022, 5:01 PM

Add comment to empty function

This revision now requires review to proceed.Nov 14 2022, 6:19 PM
This revision is now accepted and ready to land.Nov 15 2022, 6:14 AM