diff options
| author | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-16 02:26:20 -0500 |
|---|---|---|
| committer | Arthur Hanson Rasmusson <arthur@vgpu.io> | 2026-11-16 02:26:20 -0500 |
| commit | c9466885f8da0905d87e6c2191258d5f609c09a4 (patch) | |
| tree | cc4a6a4005ccd8e31a5b74769b5b3f8e57724198 /kernel | |
| parent | ca40a5851d2beec9a1645f16541b4309e7a210f1 (diff) | |
| download | open-iov-c9466885f8da0905d87e6c2191258d5f609c09a4.tar.gz open-iov-c9466885f8da0905d87e6c2191258d5f609c09a4.zip | |
vgsp: eng82 - collect the CALL(2) VERTEX_STREAM VB VA into the GL page set
c840: VS-BLOB2 va=0x450e100 unresolved - the slot-2 VERTEX_STREAM
payload's VB page (0x450e000) was never part of the forwarded launch's
page set, so the sema resolver cannot map it and the synthesized
stream-location pair cannot be relocated (the engine would fetch an
unmapped guest VA).
svc_gl_field now handles 0x3810: every plausible address word
(>=0x100000, <2^40, 4-byte aligned) in the CALL(2) payload is added
via svc_gl_add_ptr, so the candidate/forward page set includes the VB
page and the release's pair relocation can resolve it.
Diffstat (limited to 'kernel')
| -rw-r--r-- | kernel/gsp_sema_service.c | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/kernel/gsp_sema_service.c b/kernel/gsp_sema_service.c index 180979b..aeddb7f 100644 --- a/kernel/gsp_sema_service.c +++ b/kernel/gsp_sema_service.c @@ -10959,6 +10959,27 @@ static void svc_gl_field(u32 addr, u32 count, const u8 *data, u32 dlen) } return; } + /* + * eng82: the client's VERTEX_STREAM_TURING CALL(2) (0x3810) payload + * carries the VTG vertex-buffer VA (e.g. 0x0450e100). Collect the + * plausible address words into the section's page set so the + * forward fill resolves/maps the VB page and the release's + * synthesized stream-location pair can be relocated (c840: + * VS-BLOB2 va=0x450e100 unresolved - the VB page was never in the + * candidate set). + */ + if (addr == 0x3810u) { + u32 k; + + for (k = 1; k < count && k < 4u; k++) { + u32 w = v[k]; + + if (w >= 0x100000u && w < 0x1000000000ULL && + !(w & 3u)) + svc_gl_add_ptr((u64)w); + } + return; + } if (addr == 0x1b00) { if (count >= 2) svc_gl_add_ptr(((u64)(v[0] & 0xffu) << 32) | |
