Displaying information about the AP bus
Use the lszcrypt -b command to display status information about the AP bus; alternatively, you can use sysfs.
About this task
The
AP bus is represented in sysfs as a directory of the form
/sys/bus/ap
The
sysfs directory contains a number of attributes with information about
the AP bus.Attribute | Explanation |
---|---|
ap_domain | Read-write attribute that represents the default domain selected by the kernel. Alternatively, you can select the default domain using a kernel parameter. |
ap_max_domain_id | Read-only attribute that represents the largest possible domain ID. Domain IDs can range from 0 to this number, which depends on the mainframe model. |
ap_control_domain_mask | Read-only attribute that represents the installed control domain facilities as a 32-byte field in hexadecimal notation. A maximum number of 256 domains can be addressed. Each bit position represents a dedicated control domain. |
ap_usage_domain_mask | Read-only attribute that represents the installed usage domain facilities as a 32-byte field in hexadecimal notation. A maximum number of 256 domains can be addressed. Each bit position represents a usage domain. |
ap_adapter_mask | Read-only attribute that represents the installed cryptographic adapters as a 32-byte field in hexadecimal notation. A maximum number of 256 adapters (0-255) can be addressed. Each bit position represents an adapter. |
ap_interrupts | Read-only attribute that indicates whether interrupt handling for the AP bus is enabled. |
apmask | Read-write attribute that represents up to 256 cryptographic adapters. The attribute is a 64-digit hexadecimal representation of the 256-digit binary mask. In combination with the aqmask attribute, it marks a set of AP queues that are reserved for device drivers other than zcrypt. See Freeing AP queues for KVM guests. |
aqmask | Read-write attribute that represents 256 cryptographic domains. The attribute is a 64-digit hexadecimal representation of the 256-digit binary mask. In combination with the apmask attribute, it marks a set of AP queues that are reserved for device drivers other than zcrypt. See Freeing AP queues for KVM guests. |
bindings | Read-only attribute that shows which ratio of the available
AP queues are bound to a device driver. The information has this format:
<nr_of_bound_ap_queues>/<total_nr_of_ap_queues>. If all
available AP queues are bound to a device driver, this ratio is appended with the string
(complete) . For example, with 8 AP queues, all of which are bound to a device
driver, the attribute reads: 8/8 (complete) .This attribute indicates the progress of the adapter initialization process. |
config_time | Read-write attribute that represents a time interval in seconds used to detect new crypto devices. |
features | As of IBM z16, a read-only attribute that lists the hardware
features of the AP bus. The following features are possible:
Example:
|
poll_thread | Read-write attribute that indicates whether polling for the AP bus is enabled. This attribute is not relevant to environments that support AP adapter interrupts, see AP adapter interrupts. |
poll_timeout | Read-write attribute that represents the time interval of the poll thread in nanoseconds. This attribute is not relevant to environments that support AP adapter interrupts, see AP adapter interrupts. |
scans | Reading this attribute shows the number of AP bus scans since the AP bus initialization. Writing to the attribute triggers a scan. |
Example
# lszcrypt -b
ap_domain=0x6
ap_max_domain_id=0x54
ap_interrupts are enabled
config_time=30 (seconds)
poll_thread is disabled
poll_timeout=250000 (nanoseconds)