Page MenuHomeFreeBSD

vmm: Improve register get/set handling a bit
ClosedPublic

Authored by markj on Thu, Oct 16, 10:30 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 18, 5:33 AM
Unknown Object (File)
Sat, Oct 18, 5:33 AM
Unknown Object (File)
Fri, Oct 17, 6:56 PM
Unknown Object (File)
Fri, Oct 17, 12:25 PM
Unknown Object (File)
Fri, Oct 17, 7:37 AM
Unknown Object (File)
Fri, Oct 17, 7:29 AM
Unknown Object (File)
Fri, Oct 17, 6:28 AM
Unknown Object (File)
Fri, Oct 17, 6:26 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