Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No way to determine buffer size contents at runtime #111

Open
rountree opened this issue Oct 6, 2022 · 1 comment
Open

No way to determine buffer size contents at runtime #111

rountree opened this issue Oct 6, 2022 · 1 comment
Assignees

Comments

@rountree
Copy link
Collaborator

rountree commented Oct 6, 2022

MAX_WLIST_BSIZE is the maximum size of an allowlist and is #defined in msr_whitelist.c as ((128 * 1024) + 1).

The maximum size of a batch array is (2^14-1), which is a function of the ioctl() interface.

While both limits can be added to the documentation, it's not clear that most users will have access to the documentation (as we're not installing man pages in expected places and the sysadmin will be doing the installation).

Should these limits be provided as part of the msr_version device?

@rountree
Copy link
Collaborator Author

rountree commented Oct 8, 2022

Looks like the maximum size of a batch array is whatever can be described by an unsigned long. Need to do some testing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants