Page MenuHomeFreeBSD

libvmm: remove unused enum vm_mmap_style argument from vm_setup_memory()
AbandonedPublic

Authored by rew on Jul 10 2021, 3:44 AM.
Tags
None
Referenced Files
Unknown Object (File)
Jan 2 2024, 10:11 AM
Unknown Object (File)
Jan 2 2024, 6:40 AM
Unknown Object (File)
Nov 4 2023, 4:20 PM

Details

Reviewers
None
Group Reviewers
bhyve
Summary

This enum became unused when support for devmem was introduced in
9b1aa8d622e84cde39 (svn: r284539).

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 40427
Build 37316: arc lint + arc unit

Event Timeline

rew requested review of this revision.Jul 10 2021, 3:44 AM
markj added inline comments.
lib/libvmmapi/vmmapi.h
121

This technically breaks compatibility with external consumers (i.e., bhyve(8) and bhyveload(8)). In practice I suspect it's mostly harmless since old executables will pass an extra parameter which gets ignored. On amd64 at least this is usually ok.

OTOH, I'm not sure that this kind of change is warranted just for some minor simplification. It might be useful to add new "styles" in the future, so it would be convenient to keep this extra parameter around to avoid having to bump SHLIB_MAJOR later.

I don't have a strong feeling either way but just wanted to point out that this change has some implications beyond simple cleanup.

Thanks for the feedback - good info there, I'll consider those points when I consider (other) changes in the future.

I'll let this revision go.