Shared Segment Protection
When the named segment is no longer needed, it can be detached. TheCP DIAGNOSE code X'64' subcode X'0008', is called the PURGESYS function; it
detaches named segments. 'Nhen a named segment is detached, its storage is no
longer addressable by the virtual machine andCP updates its segment tables. The
entries for segments beyond the original virtual machine size are deleted and the
associated real storage is released.
Installations may optionally protect or not protect shared segments. When seg
ments are protected,CP ensures that a virtual machine does not access a shared
segment that another virtual machine has modified. When segments are not pro
tected,CP does not provide this service.
If a virtual machine modifies an unprotected shared segment, other virtual
machines sharing the segment may be affected by the modification. Therefore,
before running without shared segment protection, ensure that none of the virtual
machines modify shared segments.
Shared segments modified by theCP commands TRACE, ADSTOP, or STORE are handled differently by CP. In this case, CP gives exclusive use of the modified
segment to the virtual machine that modified it.CP provides an unmodified copy
of the segment for other virtual machines.
TheVM/SP default is to protect shared segments. To turn off segment protection,
use the NAMESYS macro instruction. This macro instruction can also turn on
segment protection. Instructions for using the NAMESYS macro instruction are in
the section"The NAMESYS Macro for Saved Systems". When segment protection is on, CP protects segments in the following way. Before
dispatching a virtual machine,CP determines if the current virtual machine altered
any pages within the shared segments. If a page was altered,CP sends a message
to the current virtual machine to identify the altered page, makes the altered page
inaccessible, and stops the current virtual machine by placing it into console func
tion mode.CP then dispatches another virtual machine. To resume execution on
the virtual machine thatCP stopped, the operator of that machine must issue the
class G BEGIN command.
To make an altered page inaccessible,CP frees the storage the page occupied.
Later, when a virtual machine references the page,CP brings a fresh copy of the
page into storage.
Shared segment protection supports:• The virtual machine assist feature and Extended Control-Program Support for
named shared systems.
The execution of all options of theCP STORE command in shared segments,
including branch and instruction tracing.
The execution of theCP STORE and ADSTOP commands in shared segments.
The execution of theSTORE and BREAK subcommands of the CMS DEBUG
command.CP's handling of storage keys includes the following:
Generating Saved Systems 79
When the named segment is no longer needed, it can be detached. The
detaches named segments. 'Nhen a named segment is detached, its storage is no
longer addressable by the virtual machine and
entries for segments beyond the original virtual machine size are deleted and the
associated real storage is released.
Installations may optionally protect or not protect shared segments. When seg
ments are protected,
segment that another virtual machine has modified. When segments are not pro
tected,
If a virtual machine modifies an unprotected shared segment, other virtual
machines sharing the segment may be affected by the modification. Therefore,
before running without shared segment protection, ensure that none of the virtual
machines modify shared segments.
Shared segments modified by the
segment to the virtual machine that modified it.
of the segment for other virtual machines.
The
use the NAMESYS macro instruction. This macro instruction can also turn on
segment protection. Instructions for using the NAMESYS macro instruction are in
the section
dispatching a virtual machine,
any pages within the shared segments. If a page was altered,
to the current virtual machine to identify the altered page, makes the altered page
inaccessible, and stops the current virtual machine by placing it into console func
tion mode.
the virtual machine that
class G BEGIN command.
To make an altered page inaccessible,
Later, when a virtual machine references the page,
page into storage.
Shared segment protection supports:
named shared systems.
The execution of all options of the
including branch and instruction tracing.
The execution of the
The execution of the
command.
Generating Saved Systems 79