-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.ECPSVM
361 lines (258 loc) · 15 KB
/
README.ECPSVM
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
-------------------------------------------------------------------------------
ECPS:VM : Extended Control Program Support : VM/370
- AND -
Extended VM Assists - Partial Privop Simulation And Virtual Interval Timer
-------------------------------------------------------------------------------
CHANGE LOG
04/12/17 : Updated supported functions to include LRA instruction
assist; fixed DISP0 assist issue where VMPSWAIT was not
being set.
02/18/17 : Updated supported functions to include CCW translation
assists DFCCW,DNCCW,CCWGN, and CCW untranslation assists
UXCCW, FCCWS.
02/10/17 : Updated supported functions to include SIO/SIOF assist,
CP LINK/RETURN (SVC 8/12) assist.
02/05/17 : Changed description for configuration and commands
for ECPSVM YES TRAP/NOTRAP; updated relevant text;
updated supported features list; sample output.
07/07/03 : Changed description for configuration and commands
ECPS:VM changed to ECPSVM (configuration)
evm changed to ecpsvm (command)
-------------------------------------------------------------------------------
Supported Systems
Affected operating systems:
VM/370 Release 6 (PTFs required - PLC 029 works fine)
up to:
VM/SP 6 (with or without HPO option)
VM/XA SF, VM/XA SP, VM/ESA and z/VM do NOT use these Assists, but
instead rely on the SIE instruction to perform some of these functions.
A VM/SP Guest (or VM/370 Guest with 4K Storage key updates) running under
[z/]VM[/[XA|ESA]] will NOT have access to either the CP assists or VM Assists.
The ECPS:VM Feature is disabled when running under SIE.
-------------------------------------------------------------------------------
How to enable/disable VM Assists
In the HERCULES.CNF file within the configuration section, insert one of
the following statements:
ECPSVM LEVEL n Where n is the requested level (see CAUTION below!)
ECPSVM NO Assist not enabled (default)
ECPSVM YES [ TRAP ] Assist enabled with CP FREE/FRET trap support
[ NOTRAP ] Assist enabled without FREE/FRET trap support
If "YES" is specified, the most appropriate level is returned (Level 20).
If TRAP or NOTRAP is not specified with ECPSVM YES, TRAP is the default.
Refer to the Special Situations section further below for more information
about TRAP/NOTRAP.
NOTE: The ECPSVM LEVEL 'n' level number doesn't affect the operations of the
assist but rather only defines what level number is reported to the program.
+-----------------+
| CAUTION!! |
+-----------------+
Use of the LEVEL 'n' form is NOT recommended, and is only provided for
engineering use!
-------------------------------------------------------------------------------
New panel command: 'ecpsvm'
ecpsvm help Summary of these commands
ecpsvm stats Shows ECPS:VM Call/Hit statistics
(example further below)
ecpsvm enable feature Enable named feature
ecpsvm disable feature Disable named feature
ecpsvm level [nn] Force ECPS:VM to report a certain support level
(or display the current support level)
ecpsvm debug [feature] Turn on debugging messages for a specific
feature, where feature is either ALL (default),
CPASSIST, VMASSIST, or one of the many named
features listed further below, e.g. SCNRU,
LCTL, etc
ecpsvm nodebug [feature] Turn off debugging messages
NOTE: ecpsvm disable does NOT entirely disable all CP ASSISTS. If it did
(i.e. generate a program interrupt whenever a E6xx instruction is invoked)
VM would abend immediately. Rather, omit the ECPSVM statement altogether
from the configuration file.
To determine the feature names, type "ecpsvm enable ALL". All of the enabled
features will then be listed.
The ecpsvm command is NOT case sensitive.
-------------------------------------------------------------------------------
Determining if the assist is used by VM
Use the 2 following CLASS A commands:
CP QUERY CPASSIST
CP QUERY SASSIST
Both queries should return 'ON'.
Also use the following CLASS G Command:
CP QUERY SET
2nd line should indicate:
ASSIST ON SVC TMR
-------------------------------------------------------------------------------
Technical information
The CP Assists provides the VM System Control Program (SCP) with various
microcoded instructions to shorten the supervisor pathlength. All microcoded
instructions are privileged instructions and have an opcode of E6xx. They
are native representation of what the SCP would do in a similar case. For all
cases where the assist is not able to correctly assist the SCP, the E6xx
instructions resolve to a no-op, thus leaving the responsibility of the task
to the original CP code.
The VM Assists alter the behavior of certain privileged instructions when
executed in problem state (controlled by the Problem State bit in the PSW).
The VM Assist will either completely simulate the instruction (when feasible),
branch directly to the CP support module for that instruction (thereby
bypassing program interruption processing and instruction decoding), or
generate a privileged operation exception program interruption for all other
cases so that CP can provide the simulation.
The VM Virtual Interval Timer assist allows updating of a Virtual Machine
virtual interval timer directly by the microcode.
Both CP And VM Assists are controlled by real Control Register 6 which
controls the availability and behavior of the assists.
-------------------------------------------------------------------------------
Troubleshooting
In the event that a certain CP or VM Assist disrupts normal operations, it
is possible to selectively disable each discrete component. The best method
is to disable ALL VM and CP Assists (except STEVL and SSM if done prior to
IPL) and then to enable each feature until the problem occurs. If it is
unknown whether the problem lies in the VM or CP Assist, it is also possible
to enable/disable the entire group of assists.
Refer to the ECPSVM ENABLE|DISABLE command documented further above.
ECPSVM STATS allows you to see how often each assist is invoked. The hit count
and hit ratio makes it possible to determine how effective the assists are.
A low hit ratio may be normal in some situations. For example, the LPSW hit
ratio will be very low when running VM under VM, because most PSW switches
cannot be resolved by the assist.
A low invocation count simply shows that the related assist is not often
issued. For example, there are very few LCTLs when running CMS.
Some assists are just invoked once at IPL (STEVL). This is normal behavior.
-------------------------------------------------------------------------------
Implemented Assists
CP ASSISTS:
FREEX, FRETX CP Free Storage management
DISP0, DISP1, DISP2 CP Dispatching
LCKPG, ULKPG Real page frame locking/unlocking
TRBRG, TRLCK Virtual frame addressing/locking
SCNRU, SCNVU Real/Virtual Device control block scan
VIST, VIPT Invalidate shadow segment/page tables
STEVL Store ECPS:VM support level
LINK, RETRN CP SVC 8/12 LINK and RETURN function
DFCCW, DNCCW, CCWGN CCW translation
UXCCW, FCCWS CCW untranslation
VM ASSISTS:
Virtual Interval Timer
LPSW Simulation
SIO/SIOF Simulation
SSM Simulation
SVC Simulation
LCTL Simulation
STNSM Simulation
STOSM Simulation
LRA Simulation
-------------------------------------------------------------------------------
Non-Implemented assists
CP ASSISTS:
FREE/FRET Original CP Free Storage Management (up to level 19)
LCSPG Locate Changed Shared Page
PMASS Preferred Machine Assist (insufficient information)
VM ASSISTS:
STCTL
DIAG
IUCV
ISK/SSK/ISKE/SSKE/IVSK Extended Key Operations assist
V=R Shadow Table Bypass assists
Note: The V=R Shadow Table Bypass assist
is a feature which requires the guest program
to be aware of the feature (Page 0 Relocation).
-------------------------------------------------------------------------------
Special Situations
1. ECPS:VM will NOT work in an AP or MP system. An AP or MP generated
system locks various system control blocks being manipulated by the
assisted functions (VMBLOK, RDEVBLOK, VDEVBLOK, etc..). However, the
current ECPS:VM implementation doesn't lock any of those structures.
Therefore, CP will fairly quickly abend because it will find some of
the control blocks to not have been locked when they should, resulting
in various LOKxxx abends. Consequently, ECPS:VM *must* be disabled
when a AP or MP system is used.
2. Many users that run VM/370 are also using a diagnostic tool called the
FREE/FRET trap. This tool is used to help diagnose problems with CP's
management of free storage. The various builds of VM in use by emulator
users typically have the trap already in effect. However, ECPS:VM
normally cannot perform several of the CP Assists when the trap is in
effect and the affected assists are turned off. Unfortunately, the
assists that are turned off are otherwise highly used and losing the
assist capability for these functions is a significant performance impact.
This updated version of the ECPS:VM support provides the capability to
operate with or without the FREE/FRET trap in effect. The assist can
automatically determine at IPL time whether it needs to operate with the
trap or without the trap. If the trap is enabled, all of the supported
assists listed above are enabled.
It is still possible to use ECPS:VM without any additional support for
the FREE/FRET trap by simply specifying:
ECPSVM YES NOTRAP
in the Hercules configuration file. In this case, the assists that
cannot operate with the trap in effect will automatically be disabled
as before. This means that the DISP1, DISP2, FREEX, and FRETX assists
will be disabled. If the trap is not present, all assists are enabled
and NOTRAP has no meaning.
Otherwise, regardless of whether the FREE/FRET trap is present, ECPS:VM
will attempt to operate with all assists enabled with or without the trap
when specifying:
ECPSVM YES
or:
ECPSVM YES TRAP
("ECPSVM YES" and "ECPSVM YES TRAP" are functionally equivalent.)
You can determine if ECPS:VM is operating with the trap after IPL by
issuing the 'ecpsvm stats' command at the Hercules console. If the
trap is in effect and ECPS:VM has recognized it, the following message
will also be displayed at the beginning of the normal stats report:
"ECPS:VM Operating with CP FREE/FRET trap in effect"
-------------------------------------------------------------------------------
Example 'ecpsvm stats' report
16:04:07 HHC01603I ecpsvm sta
16:04:07 HHC01719I ECPS:VM Command processor invoked
16:04:07 HHC01725I ECPS:VM Code version 1.81
16:04:07 HHC01724I ECPS:VM Operating with CP FREE/FRET trap in effect
16:04:07 HHC01702I +-----------+------------+------------+-------+
16:04:07 HHC01706I | VM ASSIST | Calls | Hits | Ratio |
16:04:07 HHC01702I +-----------+------------+------------+-------+
16:04:07 HHC01701I | LRA | 5971197 | 5971197 | 100% |
16:04:07 HHC01701I | STNSM | 3793385 | 3780107 | 99% |
16:04:07 HHC01701I | STOSM | 2555856 | 2457050 | 96% |
16:04:07 HHC01701I | LPSW | 1714621 | 1689625 | 98% |
16:04:07 HHC01701I | LCTL | 1642906 | 539138 | 32% |
16:04:07 HHC01701I | SVC | 604066 | 604061 | 99% |
16:04:07 HHC01701I | STCTL* | 354527 | 0 | 0% |
16:04:07 HHC01701I | SIO | 252790 | 252384 | 99% |
16:04:07 HHC01701I | DIAG* | 1547 | 0 | 0% |
16:04:07 HHC01701I | SSM | 238 | 236 | 99% |
16:04:07 HHC01702I +-----------+------------+------------+-------+
16:04:07 HHC01701I | Total | 16891133 | 15293798 | 90% |
16:04:07 HHC01702I +-----------+------------+------------+-------+
16:04:07 HHC01703I * : Unsupported, - : Disabled, % - Debug
16:04:07 HHC01704I 2 entries not shown and never invoked
16:04:07 HHC01705I 356074 call(s) were made to unsupported functions
16:04:07 HHC01702I +-----------+------------+------------+-------+
16:04:07 HHC01706I | CP ASSIST | Calls | Hits | Ratio |
16:04:07 HHC01702I +-----------+------------+------------+-------+
16:04:07 HHC01701I | DISP0 | 3497746 | 3497746 | 100% |
16:04:07 HHC01701I | DISP1 | 3478979 | 3478979 | 100% |
16:04:07 HHC01701I | DFCCW | 1857819 | 1617010 | 87% |
16:04:07 HHC01701I | TRBRG | 1436418 | 1436418 | 100% |
16:04:07 HHC01701I | DNCCW | 1298279 | 1298064 | 99% |
16:04:07 HHC01701I | CCWGN | 1215345 | 981291 | 80% |
16:04:07 HHC01701I | TRLOK | 1112524 | 1112524 | 100% |
16:04:07 HHC01701I | FREEX | 844095 | 773177 | 91% |
16:04:07 HHC01701I | RETRN | 785714 | 773377 | 98% |
16:04:07 HHC01701I | LINK | 785714 | 773377 | 98% |
16:04:07 HHC01701I | SCNVU | 574565 | 390106 | 67% |
16:04:07 HHC01701I | FRETX | 423849 | 353332 | 83% |
16:04:07 HHC01701I | DISP2 | 331465 | 331465 | 100% |
16:04:07 HHC01701I | SCNRU | 281634 | 258780 | 91% |
16:04:07 HHC01701I | UXCCW | 252403 | 252403 | 100% |
16:04:07 HHC01701I | FCCWS | 251862 | 181397 | 72% |
16:04:07 HHC01701I | VIST | 51759 | 51759 | 100% |
16:04:07 HHC01701I | ULKPG | 14201 | 14201 | 100% |
16:04:07 HHC01701I | LCKPG | 14186 | 14186 | 100% |
16:04:07 HHC01701I | VIPT | 294 | 294 | 100% |
16:04:07 HHC01701I | LCSPG* | 2 | 0 | 0% |
16:04:07 HHC01701I | STEVL | 1 | 1 | 100% |
16:04:07 HHC01702I +-----------+------------+------------+-------+
16:04:07 HHC01701I | Total | 18508854 | 17589887 | 95% |
16:04:07 HHC01702I +-----------+------------+------------+-------+
16:04:07 HHC01703I * : Unsupported, - : Disabled, % - Debug
16:04:07 HHC01704I 3 entries not shown and never invoked
16:04:07 HHC01705I 2 call(s) were made to unsupported functions
16:04:07 HHC01722I ECPS:VM Command processor complete
-------------------------------------------------------------------------------