Commit 15787c0
committed
Allow overriding UVM start timeout.
Currently the uvm.Start() method hardcodes 2 minute timeout value in the context that gets
used when making hvsocket connections to the UVM (for entropy, output handling & GCS)
. This timeout is good enough for general scenario but is very restrictive when debugging
uvm boot issues. This change allows overriding the default timeout via environment
variables.
Another option that was considered, was to use the deadline/timeout passed in the context
instead of hardcoding it. However, there is code in the Start method that explicitly
assumes that the parent context won't have a timeout(we could probably get around that
problem by creating a new context without a deadline). Another problem is that there are
lot of existing callers of the Start method who may or may not include a proper
timeout/deadline in the context. If we suddenly start using that value, they might start
seeing unexpected timeouts
(for smaller context deadlines) or they may start noticing uvm start hanging (for longer
deadlines).
Signed-off-by: Amit Barve <[email protected]>1 parent cb6213a commit 15787c0
2 files changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
50 | 55 | | |
51 | 56 | | |
52 | 57 | | |
| |||
60 | 65 | | |
61 | 66 | | |
62 | 67 | | |
| 68 | + | |
63 | 69 | | |
64 | 70 | | |
65 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| |||
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
160 | | - | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
161 | 164 | | |
162 | 165 | | |
163 | 166 | | |
| |||
0 commit comments