AP queue status overview
Multiple configuration steps are required to make AP queues available to user space programs on Linux®.
- LPAR configuration status
- a hardware status that can either be
orconfigured
.not configured
- Online status
- a state,
oronline
, that is controlled by the zcrypt device driver and that is maintained by the Linux kernel.offline
Changing the online status of an AP queue does not affect its LPAR configuration status. In
contrast, changing the LPAR configuration status can affect a queue's online status. For example,
changing the LPAR configuration status from
to
not configured
also changes its online status from offline to online. AP queues
that are not configured are always offline. Configured AP queues can be online or offline, but an AP
queue that is not configured cannot be online.configured
An AP queue is available to cryptographic applications on Linux if its LPAR configuration status is
and its on line status is configured
.online
- Assigning adapters and domains to the LPAR
- You use the HMC to assign cryptographic adapters and domains to an LPAR. Implicitly, this assignment provides a matrix of AP queues to the LPAR. These queues can now be detected by operating systems in the LPAR.
- Setting the LPAR configuration status of adapters
- Before AP queues can be used by an operating system, the LPAR configuration status of the
corresponding adapter must be set to
. AP queues inherit the LPAR configuration status of the associated adapter.configured
Depending on the version, your HMC interface might show AP queues in the state
asnot configured
and AP queues in the stateCandidate
asconfigured
. Do not confuse this online designation with the online status in Linux.Candidate and Online
Although the LPAR configuration status is controlled by the HMC, you can trigger this setting from Linux, see Setting the LPAR configuration status.
- Controlling the online status of AP queues in Linux
- An AP queue can be used by a cryptographic application if it is online within Linux. Initially, all AP queues of an AP adapter are online
when the LPAR configuration status of the adapter becomes
.configured
For information about setting AP queues offline and back online, see Setting devices online or offline.