Merge branch 'local/next' into night/card
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
commit
73fcfa8735
30 files changed
+3605
-185
No files matched your search
@@ -947,6 +947,15 @@ extern "system" fn copy_page_mappings(
|
||||
unsafe { std::slice::from_raw_parts(batches, count as usize) }
|
||||
});
|
||||
let mut ok = true;
|
||||
let many = crate::resource::many_page_mapper();
|
||||
let mut gathered: Vec<(u64, u64, u64)> = Vec::new();
|
||||
let mut map = |to: u64, from: u64, len: u64| match many {
|
||||
Some(_) => {
|
||||
gathered.push((to, from, len));
|
||||
true
|
||||
}
|
||||
None => map(to, from, len),
|
||||
};
|
||||
for b in batches.into_iter().flatten() {
|
||||
if b.ranges.is_null() {
|
||||
continue;
|
||||
@@ -968,6 +977,9 @@ extern "system" fn copy_page_mappings(
|
||||
at += len;
|
||||
}
|
||||
}
|
||||
if let Some(many) = many {
|
||||
ok &= many(&gathered);
|
||||
}
|
||||
if !ok {
|
||||
static ONCE: std::sync::Once = std::sync::Once::new();
|
||||
ONCE.call_once(|| tracing::warn!(pool = format_args!("{pool:#x}"), "a page mapping failed"));
|
||||
|
||||
Reference in new issue
Block a user