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)
Thu, Oct 24, 1:47 PM
Unknown Object (File)
Tue, Oct 22, 7:57 PM
Unknown Object (File)
Oct 8 2024, 4:49 AM
Unknown Object (File)
Oct 8 2024, 4:49 AM
Unknown Object (File)
Oct 8 2024, 4:05 AM
Unknown Object (File)
Oct 5 2024, 10:35 AM
Unknown Object (File)
Sep 27 2024, 11:17 PM
Unknown Object (File)
Sep 24 2024, 8:28 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