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)
Tue, May 19, 11:24 AM
Unknown Object (File)
Mon, May 18, 3:20 PM
Unknown Object (File)
Mon, May 18, 3:13 PM
Unknown Object (File)
Sun, May 17, 1:40 PM
Unknown Object (File)
Sun, May 17, 9:58 AM
Unknown Object (File)
Fri, May 15, 1:24 PM
Unknown Object (File)
Fri, May 15, 9:55 AM
Unknown Object (File)
Fri, May 15, 9:47 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 Not Applicable
Unit
Tests Not Applicable