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
F172241615: D51553.diff
Thu, Sep 17, 4:27 AM
Unknown Object (File)
Tue, Sep 15, 4:26 PM
Unknown Object (File)
Tue, Sep 15, 3:48 AM
Unknown Object (File)
Mon, Sep 14, 1:43 AM
Unknown Object (File)
Sun, Sep 13, 4:35 AM
Unknown Object (File)
Sat, Sep 12, 2:35 AM
Unknown Object (File)
Fri, Sep 11, 1:14 PM
Unknown Object (File)
Fri, Sep 11, 12:28 PM

Details

Reviewers
markj
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 72121
Build 69004: arc lint + arc unit

Event Timeline

This should be merged into the previous commit D51552 shouldn't it?

This should be merged into the previous commit D51552 shouldn't it?

Yes, eventually it will be.

It's currently a separate change as it fixes an issue in the illumos code in D51552, and as such will be submitted to illumos separately eventually.

This revision is now accepted and ready to land.Oct 21 2025, 3:21 PM
This revision now requires review to proceed.Apr 10 2026, 6:38 PM