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

Limit RAM+VRAM to avoid exceeding IPA addressing #19

Merged
merged 1 commit into from
Nov 5, 2024

Conversation

slp
Copy link
Collaborator

@slp slp commented Nov 4, 2024

Automatically adjust VRAM so VRAM+RAM doesn't exceed the space available in a 36 bit IPA, accounting for the start address and rounding in libkrun, which sets an upper limit of ~62GiB.

Also, reject a memory configuration larger than 60 GiB to ensure we leave some room for VRAM.

Fixes: #17

Automatically adjust VRAM so VRAM+RAM doesn't exceed the space
available in a 36 bit IPA, accounting for the start address and
rounding in libkrun, which sets an upper limit of ~62GiB.

Also, reject a memory configuration larger than 60 GiB to ensure
we leave some room for VRAM.

Fixes: containers#17

Signed-off-by: Sergio Lopez <[email protected]>
@slp slp requested a review from tylerfanelli as a code owner November 4, 2024 16:11
@tylerfanelli tylerfanelli merged commit ce48e7c into containers:main Nov 5, 2024
2 checks passed
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.

[BUG]: Unable to start when memory exceeds 27647
2 participants