Page MenuHomeFreeBSD

vmm/amd64: VM_SET_CPUID ioctl should refuse zero-entry non-legacy cpuid cfg
Needs ReviewPublic

Authored by rosenfeld_grumpf.hope-2000.org on Jul 26 2025, 11:19 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Oct 9, 9:20 PM
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:55 PM
Unknown Object (File)
Thu, Oct 9, 2:52 PM
Unknown Object (File)
Mon, Oct 6, 12:41 AM
Unknown Object (File)
Fri, Oct 3, 6:03 AM

Details

Reviewers
None
Group Reviewers
bhyve
Summary

The kernel shouldn't accept a cpuid configuration that has no entries
without having the legacy flag set and just return EINVAL. A VCPU cpuid
configuration must either have zero cpuid entries and the legacy flag
set, or it must have the legacy flag clear and at least one cpuid entry.

Diff Detail

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