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)
Tue, Jul 7, 11:06 PM
Unknown Object (File)
Fri, Jul 3, 2:13 PM
Unknown Object (File)
Wed, Jul 1, 11:14 AM
Unknown Object (File)
Sat, Jun 27, 2:04 AM
Unknown Object (File)
Thu, Jun 25, 9:14 PM
Unknown Object (File)
Thu, Jun 25, 12:28 AM
Unknown Object (File)
Wed, Jun 24, 6:15 PM
Unknown Object (File)
Wed, Jun 24, 9:03 AM

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 Skipped
Unit
Tests Skipped
Build Status
Buildable 48030
Build 44917: arc lint + arc unit

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
2721

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