diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-15 19:12:03 -0500 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-15 19:12:03 -0500 |
| commit | 0eacc7d84d896767d536aba61bd468bf1a41e656 (patch) | |
| tree | 6aab374a7d4f831be791eeef876337b22b0261d9 /kernel | |
| parent | 61177d1dcccf179f00cd3d737e9cd19c0b2e6095 (diff) | |
| download | open-iov-0eacc7d84d896767d536aba61bd468bf1a41e656.tar.gz open-iov-0eacc7d84d896767d536aba61bd468bf1a41e656.zip | |
vgsp: eng72 - witness the launch operand pages in GUEST-WIT (RT store visibility)
The c817 release now binds VS0 (relocated shadow 0x1e107d0) and SIZE
(0x1930) and runs the DRAW_IAB, but the no-writes tracker still reads
0/1025: the RT0 alias page (target 0xc000000 in c817) is one of the
launch's req->pages operands, not one of the 1025 tracked data
records, so an RT store is invisible to both the bounce scan and
GUEST-WIT. Add the req->pages guest VAs/HPAs to the WIT set; a change
on the RT page becomes the direct store witness.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/gsp_phys_booter.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/gsp_phys_booter.c b/kernel/gsp_phys_booter.c index 821357b..3269233 100644 --- a/kernel/gsp_phys_booter.c +++ b/kernel/gsp_phys_booter.c @@ -28426,6 +28426,17 @@ static void gsp_phys_gr_wit_capture(const struct gsp_phys_gr_submit *req) */ for (k = 0; req && k < req->n_data; k++) gsp_phys_gr_wit_note(req->data[k].va, req->data[k].hpa); + /* + * eng72: also witness the launch's operand pages (req->pages: the + * program/RT/surface alias pages). The DRAW_IAB's render target is + * the RT0 alias page, which is NOT among the 1025 tracked data + * records - the no-writes tracker could not see an RT store. With + * these pages in the set, a GUEST-WIT change on the RT page is the + * direct store witness. + */ + for (k = 0; req && k < req->n_pages; k++) + gsp_phys_gr_wit_note(req->pages[k].guest_va, + req->pages[k].hpa); for (k = 0; k < gsp_phys_gr_gap_n; k++) gsp_phys_gr_wit_note(gsp_phys_gr_gap[k].va, gsp_phys_gr_gap[k].hpa); |
