Skip to content

xenctrlext: do not truncate the amount of memory in claims to 32 bits #6372

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

Merged
merged 1 commit into from
Mar 19, 2025

Conversation

psafont
Copy link
Member

@psafont psafont commented Mar 19, 2025

Int_val truncates values to a 32-bit int. Instead use Long_val, which does not suffer from this.

This is a problem when claiming more than ≈ 9706GiBs for a domain.

Found after reading this PR ocaml/ocaml#13852

Int_val truncates values to a 32-bit int. Instead use Long_val, which does not
suffer from this.

This is a problem when claiming more than ≈ 9706GiBs for a domain.

Signed-off-by: Pau Ruiz Safont <pau.ruizsafont@cloud.com>
@psafont psafont added this pull request to the merge queue Mar 19, 2025
@andyhhp
Copy link
Collaborator

andyhhp commented Mar 19, 2025

yuck. I bet we've got plenty of problems like this throughout the C stubs

Merged via the queue into xapi-project:master with commit b050c78 Mar 19, 2025
17 checks passed
@psafont psafont deleted the trunc_claims branch March 20, 2025 14:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants