Page MenuHomeFreeBSD

vmm: Improve register get/set handling a bit
ClosedPublic

Authored by markj on Oct 16 2025, 10:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Jul 27, 9:15 PM
Unknown Object (File)
Mon, Jul 27, 6:02 AM
Unknown Object (File)
Tue, Jul 21, 2:47 PM
Unknown Object (File)
Tue, Jul 21, 6:47 AM
Unknown Object (File)
Mon, Jul 20, 12:18 PM
Unknown Object (File)
Mon, Jul 20, 1:32 AM
Unknown Object (File)
Sat, Jul 18, 2:45 PM
Unknown Object (File)
Fri, Jul 17, 8:03 AM

Details

Summary

On non-amd64 platforms, check for negative register indices. This isn't
required today since we match against individual register indices, but
we might as well check it. On amd64, add a comment explaining why we
permit negative register indices.

Use mallocarray() for allocating register arrays in the ioctl layer.

No functional change intended.

Diff Detail

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