The SEND / RECV Protocol
The SEND/RECY protocol defines a transaction calling for two-way transfer of
data, as described in Figure 8 The SEND/RECY protocol uses the SEND/RECY,
RECEIYE, andREPLY subfunctions.
The source virtual machine initiates the transaction using the SEND /RECY sub
function.Using an external interrupt, CP notifies the sink virtual machine that
there is a message waiting. The sink virtual machine uses the RECEIYE subfunc
tion to cause the data to be transferredfrom the source virtual machine's storage to
the sink virtual machine storage. The sink virtual machine now uses theREPLY subfunction to cause data to be transferred from its storage to the source virtual
machine's storage. When theREPLY sub function completes processing, CP causes
an external interrupt in the source virtual machine, notifying it that the transaction
is complete.
The SEND /RECY request requires that the source virtual machine specify the
address and length of the data to be transferred and the address where data is
expected from theREPLY subfunction. (Both addresses are in source virtual
machine storage.) These addresses, along with the length of the data to be trans
ferred, are specified via theYMCP ARM parameter list, described below.
When RECEIYE is issued by the sink virtual machine in response to the
SEND/RECY request,YMCPARM contains the address in sink virtual machine
storage where data is to be received. Finally, when theREPLY request is issued, YMCP ARM contains the address in the sink virtual machine storage from which
data is to be transferred.Source Virtual
MachineCONTROL PROGRAM DMKVMC vr1CF Interface
ModuleSEND/RECV-->---------------- > Sink Virtual
Machine
-Extern al Interrupt >
<
>Data Transfer
<------------------
<--External Interrupt
(Final Response)
Figure 8. The SEND/RECV Protocol 1 1< Data Transfer
<RECEIVE >
<REPLY <
The Virtual Machine Communication Facility 89
The SEND/RECY protocol defines a transaction calling for two-way transfer of
data, as described in Figure 8 The SEND/RECY protocol uses the SEND/RECY,
RECEIYE, and
The source virtual machine initiates the transaction using the SEND /RECY sub
function.
there is a message waiting. The sink virtual machine uses the RECEIYE subfunc
tion to cause the data to be transferred
the sink virtual machine storage. The sink virtual machine now uses the
machine's storage. When the
an external interrupt in the source virtual machine, notifying it that the transaction
is complete.
The SEND /RECY request requires that the source virtual machine specify the
address and length of the data to be transferred and the address where data is
expected from the
machine storage.) These addresses, along with the length of the data to be trans
ferred, are specified via the
When RECEIYE is issued by the sink virtual machine in response to the
SEND/RECY request,
storage where data is to be received. Finally, when the
data is to be transferred.
Machine
Module
Machine
-Extern al Interrupt >
<
>Data Transfer
<------------------
<--External Interrupt
(Final Response)
Figure 8. The SEND
<
<
The Virtual Machine Communication Facility 89