Searched hist:eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 (Results 1 – 3 of 3) sorted by relevance
/linux/drivers/s390/crypto/ |
H A D | vfio_ap_drv.c | diff eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 Mon Apr 04 15:40:10 CEST 2022 Tony Krowiak <akrowiak@linux.ibm.com> s390/vfio-ap: handle config changed and scan complete notification
This patch implements two new AP driver callbacks:
void (*on_config_changed)(struct ap_config_info *new_config_info, struct ap_config_info *old_config_info);
void (*on_scan_complete)(struct ap_config_info *new_config_info, struct ap_config_info *old_config_info);
The on_config_changed callback is invoked at the start of the AP bus scan function when it determines that the host AP configuration information has changed since the previous scan.
The vfio_ap device driver registers a callback function for this callback that performs the following operations:
1. Unplugs the adapters, domains and control domains removed from the host's AP configuration from the guests to which they are assigned in a single operation.
2. Stores bitmaps identifying the adapters, domains and control domains added to the host's AP configuration with the structure representing the mediated device. When the vfio_ap device driver's probe callback is subsequently invoked, the probe function will recognize that the queue is being probed due to a change in the host's AP configuration and the plugging of the queue into the guest will be bypassed.
The on_scan_complete callback is invoked after the ap bus scan is completed if the host AP configuration data has changed. The vfio_ap device driver registers a callback function for this callback that hot plugs each queue and control domain added to the AP configuration for each guest using them in a single hot plug operation.
Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com> Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
|
H A D | vfio_ap_private.h | diff eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 Mon Apr 04 15:40:10 CEST 2022 Tony Krowiak <akrowiak@linux.ibm.com> s390/vfio-ap: handle config changed and scan complete notification
This patch implements two new AP driver callbacks:
void (*on_config_changed)(struct ap_config_info *new_config_info, struct ap_config_info *old_config_info);
void (*on_scan_complete)(struct ap_config_info *new_config_info, struct ap_config_info *old_config_info);
The on_config_changed callback is invoked at the start of the AP bus scan function when it determines that the host AP configuration information has changed since the previous scan.
The vfio_ap device driver registers a callback function for this callback that performs the following operations:
1. Unplugs the adapters, domains and control domains removed from the host's AP configuration from the guests to which they are assigned in a single operation.
2. Stores bitmaps identifying the adapters, domains and control domains added to the host's AP configuration with the structure representing the mediated device. When the vfio_ap device driver's probe callback is subsequently invoked, the probe function will recognize that the queue is being probed due to a change in the host's AP configuration and the plugging of the queue into the guest will be bypassed.
The on_scan_complete callback is invoked after the ap bus scan is completed if the host AP configuration data has changed. The vfio_ap device driver registers a callback function for this callback that hot plugs each queue and control domain added to the AP configuration for each guest using them in a single hot plug operation.
Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com> Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
|
H A D | vfio_ap_ops.c | diff eeb386aeb5b7c8d2dae6a3ba49255d8a97803182 Mon Apr 04 15:40:10 CEST 2022 Tony Krowiak <akrowiak@linux.ibm.com> s390/vfio-ap: handle config changed and scan complete notification
This patch implements two new AP driver callbacks:
void (*on_config_changed)(struct ap_config_info *new_config_info, struct ap_config_info *old_config_info);
void (*on_scan_complete)(struct ap_config_info *new_config_info, struct ap_config_info *old_config_info);
The on_config_changed callback is invoked at the start of the AP bus scan function when it determines that the host AP configuration information has changed since the previous scan.
The vfio_ap device driver registers a callback function for this callback that performs the following operations:
1. Unplugs the adapters, domains and control domains removed from the host's AP configuration from the guests to which they are assigned in a single operation.
2. Stores bitmaps identifying the adapters, domains and control domains added to the host's AP configuration with the structure representing the mediated device. When the vfio_ap device driver's probe callback is subsequently invoked, the probe function will recognize that the queue is being probed due to a change in the host's AP configuration and the plugging of the queue into the guest will be bypassed.
The on_scan_complete callback is invoked after the ap bus scan is completed if the host AP configuration data has changed. The vfio_ap device driver registers a callback function for this callback that hot plugs each queue and control domain added to the AP configuration for each guest using them in a single hot plug operation.
Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com> Reviewed-by: Jason J. Herne <jjherne@linux.ibm.com> Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
|