mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
virsh: nodedev: filter by AP Matrix capability
Add support to filter by 'ap_matrix' capability. Signed-off-by: Shalini Chellathurai Saroja <shalini@linux.ibm.com> Reviewed-by: Bjoern Walk <bwalk@linux.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com> Reviewed-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
parent
dc3bc76c1c
commit
385ade999c
@ -454,6 +454,9 @@
|
||||
<dd>AP Queue identifier.</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
<dt><code>ap_matrix</code></dt>
|
||||
<dd>Describes an AP Matrix device on a S390 architecture providing
|
||||
cryptographic host resources usable for virtualization.</dd>
|
||||
</dl>
|
||||
</dd>
|
||||
</dl>
|
||||
|
@ -5043,7 +5043,7 @@ List all of the devices available on the node that are known by libvirt.
|
||||
separated by comma, e.g. --cap pci,scsi. Valid capability types include
|
||||
'system', 'pci', 'usb_device', 'usb', 'net', 'scsi_host', 'scsi_target',
|
||||
'scsi', 'storage', 'fc_host', 'vports', 'scsi_generic', 'drm', 'mdev',
|
||||
'mdev_types', 'ccw', 'css', 'ap_card', 'ap_queue'.
|
||||
'mdev_types', 'ccw', 'css', 'ap_card', 'ap_queue', 'ap_matrix'.
|
||||
If *--tree* is used, the output is formatted in a tree representing parents of each
|
||||
node. *cap* and *--tree* are mutually exclusive.
|
||||
|
||||
|
@ -85,6 +85,7 @@ typedef enum {
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_VDPA = 1 << 17, /* vDPA device */
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_CARD = 1 << 18, /* s390 AP Card device */
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE = 1 << 19, /* s390 AP Queue */
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX = 1 << 20, /* s390 AP Matrix */
|
||||
} virConnectListAllNodeDeviceFlags;
|
||||
|
||||
int virConnectListAllNodeDevices (virConnectPtr conn,
|
||||
|
@ -412,7 +412,8 @@ virNodeDevCapsDefFree(virNodeDevCapsDefPtr caps);
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_CSS_DEV | \
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_VDPA | \
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_CARD | \
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE)
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE | \
|
||||
VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX)
|
||||
|
||||
int
|
||||
virNodeDeviceGetSCSIHostCaps(virNodeDevCapSCSIHostPtr scsi_host);
|
||||
|
@ -874,7 +874,8 @@ virNodeDeviceObjMatch(virNodeDeviceObjPtr obj,
|
||||
MATCH(CSS_DEV) ||
|
||||
MATCH(VDPA) ||
|
||||
MATCH(AP_CARD) ||
|
||||
MATCH(AP_QUEUE)))
|
||||
MATCH(AP_QUEUE) ||
|
||||
MATCH(AP_MATRIX)))
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -104,6 +104,7 @@ virNodeNumOfDevices(virConnectPtr conn, const char *cap, unsigned int flags)
|
||||
* VIR_CONNECT_LIST_NODE_DEVICES_CAP_CSS_DEV
|
||||
* VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_CARD
|
||||
* VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE
|
||||
* VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX
|
||||
*
|
||||
* Returns the number of node devices found or -1 and sets @devices to NULL in
|
||||
* case of error. On success, the array stored into @devices is guaranteed to
|
||||
|
@ -474,6 +474,8 @@ cmdNodeListDevices(vshControl *ctl, const vshCmd *cmd G_GNUC_UNUSED)
|
||||
flags |= VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_QUEUE;
|
||||
break;
|
||||
case VIR_NODE_DEV_CAP_AP_MATRIX:
|
||||
flags |= VIR_CONNECT_LIST_NODE_DEVICES_CAP_AP_MATRIX;
|
||||
break;
|
||||
case VIR_NODE_DEV_CAP_LAST:
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user