The other "trick" I should mention is that PGSCPLOK is only set if the pa ge was explicitly locked to host real. If locked by command to host logical , SXSCPLOK is set in the corresponding SXSTE (another structure entirely, which is used to manage System Execution Space (Host Logical) page usage and mappings). If there is an associated SXSTE (as indicated by PGSALIAS bei ng set), it can be found via the FRMSXPN field in the corresponding FRMTE. So if you know that pages have been locked by CP LOCK, but don't know whethe r they were locked to real or logical or both, you would have to check multiple places to determine whether an individual page was locked by com mand.
- Bill Holder, z/VM Development, IBM
