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
F136181597: D51554.diff
Sun, Nov 16, 12:25 PM
Unknown Object (File)
Fri, Nov 14, 12:03 AM
Unknown Object (File)
Wed, Oct 29, 7:29 AM
Unknown Object (File)
Wed, Oct 29, 6:07 AM
Unknown Object (File)
Wed, Oct 29, 6:02 AM
Unknown Object (File)
Wed, Oct 29, 3:55 AM
Unknown Object (File)
Mon, Oct 27, 10:04 AM
Unknown Object (File)
Oct 9 2025, 6:51 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.