Re: [PATCH v1 1/5] linux-headers: NOTFORMERGE - placeholder uapi updates for AP config change

2025-01-14 Thread Rorie Reyes
On 1/8/25 2:29 AM, Cédric Le Goater wrote: Hello Rorie, On 1/7/25 19:43, Rorie Reyes wrote: This patch adds enumeration constant VFIO_AP_CFG_CHG_IRQ_INDEX to specify an IRQ index for signaling that a change has been made to the guest's AP configuration. This is a placeholder for

Re: [PATCH v1 0/5] Report vfio-ap configuration changes

2025-01-14 Thread Rorie Reyes
On 1/7/25 2:06 PM, Alex Williamson wrote: Why are configuration changes to the device allowed while the device is in use? Would a uevent be considered an inefficient mechanism? Why? Thanks, Alex I believe a vfio device is typically used to pass through a single I/O device, like a VGPU or P

Re: [PATCH v1 2/5] hw/vfio/ap: notification handler for AP config changed event

2025-01-08 Thread Rorie Reyes
On 1/8/25 2:34 AM, Cédric Le Goater wrote: On 1/7/25 19:43, Rorie Reyes wrote: Register an event notifier handler to process AP configuration change events by queuing the event and generating a CRW to let the guest know its AP configuration has changed Signed-off-by: Rorie Reyes Reviewed-by

[PATCH v1 2/5] hw/vfio/ap: notification handler for AP config changed event

2025-01-07 Thread Rorie Reyes
Register an event notifier handler to process AP configuration change events by queuing the event and generating a CRW to let the guest know its AP configuration has changed Signed-off-by: Rorie Reyes Reviewed-by: Anthony Krowiak Tested-by: Anthony Krowiak --- hw/vfio/ap.c | 27

[PATCH v1 1/5] linux-headers: NOTFORMERGE - placeholder uapi updates for AP config change

2025-01-07 Thread Rorie Reyes
7;t merged into the kernel. Linux-headers patches should be generated using scripts/update-linux-headers.sh. Signed-off-by: Rorie Reyes --- linux-headers/linux/vfio.h | 1 + 1 file changed, 1 insertion(+) diff --git a/linux-headers/linux/vfio.h b/linux-headers/linux/vfio.h index 1b5e254d6a..

[PATCH v1 5/5] s390: implementing CHSC SEI for AP config change

2025-01-07 Thread Rorie Reyes
Handle interception of the CHSC SEI instruction for requests indicating the guest's AP configuration has changed. Signed-off-by: Rorie Reyes Reviewed-by: Anthony Krowiak Tested-by: Anthony Krowiak --- target/s390x/ioinst.c | 11 +-- 1 file changed, 9 insertions(+), 2 dele

[PATCH v1 4/5] hw/vfio/ap: Storing event information for an AP configuration change event

2025-01-07 Thread Rorie Reyes
These functions can be invoked by the function that handles interception of the CHSC SEI instruction for requests indicating the accessibility of one or more adjunct processors has changed. Signed-off-by: Rorie Reyes --- hw/vfio/ap.c | 37

[PATCH v1 0/5] Report vfio-ap configuration changes

2025-01-07 Thread Rorie Reyes
ation changes rather than relying on polling or some other inefficient mechanism for detecting config changes. Rorie Reyes (5): linux-headers: NOTFORMERGE - placeholder uapi updates for AP config change hw/vfio/ap: notification handler for AP config changed event hw/vfio/ap: store object indic

[PATCH v1 3/5] hw/vfio/ap: store object indicating AP config changed in a queue

2025-01-07 Thread Rorie Reyes
Creates an object indicating that an AP configuration change event has been received and stores it in a queue. These objects will later be used to store event information for an AP configuration change when the CHSC instruction is intercepted. Signed-off-by: Rorie Reyes Reviewed-by: Anthony