Repository navigation
UCT/CUDA_COPY/MD: Don't widen VMM range crossing a handle boundary #12186
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
Changes from 3 commits
90d1a90
e33ab94
2730801
5fc426a
c12f69b
42a2aa2
2b622d5
9383b84
6fb2d69
350a262
500dc06
9eca2bb
b006d5a
4ed46a1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -610,9 +610,9 @@ static void uct_cuda_copy_md_sync_memops_get_address_range( | |||||||||||||||||||||||
| ucs_assert(md->config.alloc_whole_reg == UCS_CONFIG_ON); | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
| /* For multi-handle VMM, the physical allocation may be smaller than the | ||||||||||||||||||||||||
| * mapped virtual range; preserve the caller's requested extent. */ | ||||||||||||||||||||||||
| if (is_vmm && (alloc_length < length)) { | ||||||||||||||||||||||||
| /* For multi-handle VMM, the physical allocation containing the address | ||||||||||||||||||||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. minor: the zero-base case is unrelated to multi-handle VMM (and not VMM-specific), pls split it out so each condition carries its own comment:
Suggested change
|
||||||||||||||||||||||||
| * may not cover the whole requested range; keep the caller's extent. */ | ||||||||||||||||||||||||
| if (is_vmm && ((base_address + alloc_length) < (address + length))) { | ||||||||||||||||||||||||
|
d4l3k marked this conversation as resolved.
Resolved
d4l3k marked this conversation as resolved.
Resolved
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why keep |
||||||||||||||||||||||||
| goto out_ctx_pop; | ||||||||||||||||||||||||
| } | ||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
|
|
||||||||||||||||||||||||
Uh oh!
There was an error while loading. Please reload this page.