You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+83Lines changed: 83 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -322,6 +322,89 @@ libnvcuda.so.1
322
322
libnvcuda.so
323
323
```
324
324
325
+
## Packaged QEMU/Spack Flow
326
+
327
+
For macOS and repeatable QEMU smoke tests, use the companion Spack environment from the Ocean Spack fork. That environment builds the x86_64 CXL-capable QEMU tree, builds `cxlmemsim_server`, installs launch scripts, and documents the runtime variables used by QEMU and the server.
The launcher reads the following runtime variables:
371
+
372
+
| Variable | Default | Meaning |
373
+
| --- | --- | --- |
374
+
|`CXL_TRANSPORT_MODE`|`shm`| QEMU transport mode: `shm` or `tcp`. |
375
+
|`CXL_MEMSIM_HOST`|`127.0.0.1`| Local host for TCP mode. |
376
+
|`CXL_MEMSIM_PORT`|`9999`| Local TCP server port. |
377
+
|`CXL_PGAS_SHM`|`/cxlmemsim_pgas`| POSIX shared-memory object used by QEMU SHM mode. |
378
+
|`CXL_MEMSIM_SERVER_BINARY`| package `bin/cxlmemsim_server`| Server binary started before QEMU. |
379
+
|`CXL_MEMSIM_SERVER_AUTOSTART`|`auto`| Set to `1` to require server startup or `0` to disable it. |
380
+
381
+
QEMU's `shm` transport uses the PGAS shared-memory protocol, so the packaged launcher maps `CXL_TRANSPORT_MODE=shm` to the server's `--comm-mode pgas-shm`.
0 commit comments