Page MenuHomeFreeBSD

libvmmapi/amd64: add support for CPUID ioctls to libvmmapi
AcceptedPublic

Authored by rosenfeld_grumpf.hope-2000.org on Jul 26 2025, 11:21 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 6:51 PM
Unknown Object (File)
Thu, Oct 9, 4:28 PM
Unknown Object (File)
Thu, Oct 9, 4:28 PM
Unknown Object (File)
Thu, Oct 9, 2:52 PM
Unknown Object (File)
Sun, Oct 5, 12:11 PM
Unknown Object (File)
Wed, Oct 1, 8:50 PM
Unknown Object (File)
Sep 22 2025, 9:31 PM
Unknown Object (File)
Sep 21 2025, 4:36 PM

Details

Reviewers
corvink
markj
Group Reviewers
bhyve
Summary

libvmmapi needs wrapper functions for the new vmm cpuid ioctls.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 65753
Build 62636: arc lint + arc unit

Event Timeline

corvink added a subscriber: corvink.
corvink added inline comments.
lib/libvmmapi/amd64/vmmapi_machdep.c
359

Should cfg be cleared before calling the ioctl?

This revision is now accepted and ready to land.Jul 28 2025, 9:39 AM
lib/libvmmapi/amd64/vmmapi_machdep.c
359

No, as it actually passes a parameter for the VM_GET_CPUID ioctl: cfg->vvcc_nent gives the size of the user-supplied buffer in units of cpuid entries.