Commit f39a608
committed
distinguish probes across NVMe devices
NVMe commands are unique in a device across queue ID (`qid` in various
parts of Propolis) and command ID (`cid` in various parts of Propolis),
but are ambiguous when looking at an entire VM: two different NVMe
devices will have a "queue 1", and their distinct "queue 1" may also
have "command 1234" submitted at the same time.
Pick a device ID for NVMe controllers, and plumb that through to
distinguish queues similar to how we distinguish queues for block
devices: a `devq_id` construction that makes a device and queue unique
across the VM.
In the NVMe case, a `devq_id` is not uniquely identifying across the
life of a VM, as the queues can be destroyed, recreated, the controller
reset, etc. But absent such an administrative operation, this helps
untangle what's happening across a VM with many disks.
Note that block attachment IDs and NVMe IDs are similar in name, and
probably similar in practice, but are tracked distinctly. This is
similar to the difference between block qeuue IDs and NVMe queue IDs:
the architcture is similar, but the mapping between them is more
arbitrary and may change as an implementation detail of Propolis.1 parent fa5c1a8 commit f39a608
File tree
7 files changed
+177
-68
lines changed- lib/propolis
- src
- block
- hw/nvme
7 files changed
+177
-68
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| 48 | + | |
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
42 | | - | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
43 | 46 | | |
44 | 47 | | |
45 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
17 | 18 | | |
18 | 19 | | |
19 | 20 | | |
20 | | - | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
25 | 26 | | |
26 | 27 | | |
27 | 28 | | |
28 | | - | |
| 29 | + | |
| 30 | + | |
29 | 31 | | |
30 | 32 | | |
31 | 33 | | |
| |||
74 | 76 | | |
75 | 77 | | |
76 | 78 | | |
| 79 | + | |
77 | 80 | | |
78 | 81 | | |
79 | 82 | | |
| |||
119 | 122 | | |
120 | 123 | | |
121 | 124 | | |
| 125 | + | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
34 | 47 | | |
35 | 48 | | |
36 | | - | |
| 49 | + | |
37 | 50 | | |
38 | 51 | | |
39 | 52 | | |
40 | | - | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
41 | 69 | | |
42 | 70 | | |
43 | 71 | | |
| |||
154 | 182 | | |
155 | 183 | | |
156 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
157 | 189 | | |
158 | 190 | | |
159 | 191 | | |
| |||
185 | 217 | | |
186 | 218 | | |
187 | 219 | | |
| 220 | + | |
188 | 221 | | |
189 | 222 | | |
190 | 223 | | |
| |||
196 | 229 | | |
197 | 230 | | |
198 | 231 | | |
| 232 | + | |
199 | 233 | | |
200 | 234 | | |
201 | 235 | | |
| |||
589 | 623 | | |
590 | 624 | | |
591 | 625 | | |
| 626 | + | |
592 | 627 | | |
593 | 628 | | |
594 | 629 | | |
| |||
611 | 646 | | |
612 | 647 | | |
613 | 648 | | |
| 649 | + | |
614 | 650 | | |
615 | 651 | | |
616 | 652 | | |
| |||
742 | 778 | | |
743 | 779 | | |
744 | 780 | | |
| 781 | + | |
| 782 | + | |
| 783 | + | |
| 784 | + | |
| 785 | + | |
745 | 786 | | |
746 | 787 | | |
747 | 788 | | |
| |||
849 | 890 | | |
850 | 891 | | |
851 | 892 | | |
| 893 | + | |
852 | 894 | | |
853 | 895 | | |
854 | 896 | | |
| |||
879 | 921 | | |
880 | 922 | | |
881 | 923 | | |
| 924 | + | |
| 925 | + | |
| 926 | + | |
882 | 927 | | |
883 | 928 | | |
884 | 929 | | |
| 930 | + | |
885 | 931 | | |
886 | 932 | | |
887 | 933 | | |
| |||
1110 | 1156 | | |
1111 | 1157 | | |
1112 | 1158 | | |
| 1159 | + | |
| 1160 | + | |
| 1161 | + | |
1113 | 1162 | | |
1114 | 1163 | | |
1115 | | - | |
| 1164 | + | |
1116 | 1165 | | |
1117 | 1166 | | |
1118 | 1167 | | |
| |||
1188 | 1237 | | |
1189 | 1238 | | |
1190 | 1239 | | |
| 1240 | + | |
| 1241 | + | |
| 1242 | + | |
1191 | 1243 | | |
1192 | | - | |
1193 | | - | |
| 1244 | + | |
| 1245 | + | |
1194 | 1246 | | |
1195 | 1247 | | |
1196 | 1248 | | |
| |||
1207 | 1259 | | |
1208 | 1260 | | |
1209 | 1261 | | |
| 1262 | + | |
1210 | 1263 | | |
1211 | 1264 | | |
1212 | 1265 | | |
1213 | 1266 | | |
1214 | 1267 | | |
| 1268 | + | |
| 1269 | + | |
1215 | 1270 | | |
1216 | | - | |
1217 | | - | |
| 1271 | + | |
| 1272 | + | |
1218 | 1273 | | |
1219 | 1274 | | |
1220 | 1275 | | |
| |||
0 commit comments