vm-memory: Retry short guest memory reads #191
All Vouch review confidence checks passed
Residual risk 0.23 = Change Risk (0.42) × (1 − Review Confidence (0.45)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.42 · 174 lines diff across 2 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.02 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Shallow Review Depth
shallow_review_depth
0.344
Diff Size
diff_size
0.309
Real PR Conversation Timeline
1 comments
"Review active on #191"
general
weight: 0.35
aiqubits
Summary of the PR
GuestMemory::read_exact_volatile_fromcurrently performs one read per guest memory slice. A successful short read causes the operation to returnPartialBuffer, even when the source can provide more data. For accesses spanning adjacent regions, this can leave part of the current region unwritten before advancing to the next region.Use the existing per-slice exact-read operation so each region is filled before continuing. This preserves the existing
ReadVolatileretry behavior for short reads andInterruptederrors while continuing to propagate unrecoverable I/O errors.Fixes #43.
Requirements
git commit -s), and the commit message has max 60 characters for thesummary and max 75 characters for each description line.
test.
Release" section of CHANGELOG.md (if no such section exists, please create one).
unsafecode is properly documented.Validation
cargo fmt --all -- --checkcargo test -p vm-memory --all-featurescargo test -p vm-memory --no-default-featurescargo clippy -p vm-memory --all-features --all-targets -- -D warningscargo check --workspace --all-targets