Re: [RFC PATCH v13 4/4] s390: implementing CHSC SEI for AP config change

2025-06-27 Thread Rorie Reyes
On 6/27/25 11:12 AM, Matthew Rosato wrote: AFAICT this portion of the handler including mutex should be moved out of ap.c into chsc_sei_nt0_get_event().  When vfio_ap is not in use, we can't call into it.  Can't you also build without VFIO_AP?  I didn't try it but that sure seems like it wou

Re: [RFC PATCH v1] hw/vfio/ap: attribute constructor for cfg_chg_events_lock

2025-06-12 Thread Rorie Reyes
On 6/12/25 2:18 AM, Cédric Le Goater wrote: On 6/11/25 23:12, Rorie Reyes wrote: Created an attribute constructor for cfg_chg_events_lock for locking mechanism when storing event information for an AP configuration change event Fixes: fd03360215 ("Storing event information for

Re: [RFC PATCH v1] hw/vfio/ap: attribute constructor for cfg_chg_events_lock

2025-06-12 Thread Rorie Reyes
On 6/12/25 12:44 AM, Thomas Huth wrote: On 11/06/2025 23.12, Rorie Reyes wrote: Created an attribute constructor for cfg_chg_events_lock for locking mechanism when storing event information for an AP configuration change event Fixes: fd03360215 ("Storing event information for

[RFC PATCH v1] hw/vfio/ap: attribute constructor for cfg_chg_events_lock

2025-06-11 Thread Rorie Reyes
Created an attribute constructor for cfg_chg_events_lock for locking mechanism when storing event information for an AP configuration change event Fixes: fd03360215 ("Storing event information for an AP configuration change event") Signed-off-by: Rorie Reyes --- hw/vfio

[RFC PATCH v13 1/4] hw/vfio/ap: notification handler for AP config changed event

2025-06-09 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 --- hw/vfio/ap.c | 31 +++ 1 file

[RFC PATCH v13 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-06-09 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

[RFC PATCH v13 4/4] s390: implementing CHSC SEI for AP config change

2025-06-09 Thread Rorie Reyes
e, it will use the stub file. Signed-off-by: Rorie Reyes Reviewed-by: Anthony Krowiak Reviewed-by: Cédric Le Goater --- MAINTAINERS | 1 + hw/s390x/ap-stub.c| 21 + hw/s390x/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files changed, 32 inser

[RFC PATCH v13 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-06-09 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 Reviewed-by: Anthony Krowiak --- hw/vfio/ap.c | 40

[RFC PATCH v13 0/4] Report vfio-ap configuration changes

2025-06-09 Thread Rorie Reyes
- removed warnings that weren't needed - added unregister function - removed whitelines - changed variable names for consistency - removed rc variable and returning 1 or 0 outright - reversed logics for if statements - using g_free() instead of free() - replaced hardcoded numeric valu

Re: [RFC PATCH v12 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-06-09 Thread Rorie Reyes
On 6/9/25 6:19 AM, Anthony Krowiak wrote: + QTAILQ_INSERT_TAIL(&cfg_chg_events, cfg_chg_event, next); Need locking here: WITH_QEMU_LOCK_GUARD(&cfg_chg_events_lock) { QTAILQ_INSERT_TAIL(&cfg_chg_events, cfg_chg_event, next); } Wouldn't QEMU_LOCK_GUARD(&cfg_chg_events_lock) be better since it

[RFC PATCH v12 4/4] s390: implementing CHSC SEI for AP config change

2025-06-06 Thread Rorie Reyes
e, it will use the stub file. Signed-off-by: Rorie Reyes Reviewed-by: Anthony Krowiak Reviewed-by: Cédric Le Goater --- MAINTAINERS | 1 + hw/s390x/ap-stub.c| 21 + hw/s390x/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files changed, 32 inser

[RFC PATCH v12 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-06-06 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 --- hw/vfio/ap.c | 12

[RFC PATCH v12 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-06-06 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 | 43

[RFC PATCH v12 1/4] hw/vfio/ap: notification handler for AP config changed event

2025-06-06 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 --- hw/vfio/ap.c | 31 +++ 1 file

[RFC PATCH v12 0/4] Report vfio-ap configuration changes

2025-06-06 Thread Rorie Reyes
s for consistency - removed rc variable and returning 1 or 0 outright - reversed logics for if statements - using g_free() instead of free() - replaced hardcoded numeric values by defining them with #define in the header -

Re: [RFC PATCH v11 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-06-06 Thread Rorie Reyes
On 6/6/25 7:48 AM, Anthony Krowiak wrote: On 6/5/25 1:57 PM, Rorie Reyes wrote: On 6/4/25 9:47 AM, Anthony Krowiak wrote: On 6/3/25 4:30 PM, Cédric Le Goater wrote: On 6/3/25 20:01, Rorie Reyes wrote: On 6/3/25 10:21 AM, Cédric Le Goater wrote: On 6/3/25 14:58, Rorie Reyes wrote

Re: [RFC PATCH v11 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-06-05 Thread Rorie Reyes
On 6/4/25 9:47 AM, Anthony Krowiak wrote: On 6/3/25 4:30 PM, Cédric Le Goater wrote: On 6/3/25 20:01, Rorie Reyes wrote: On 6/3/25 10:21 AM, Cédric Le Goater wrote: On 6/3/25 14:58, Rorie Reyes wrote: Hey Cedric, You mentioned the following in my v9 patches "In that case, let&#

Re: [RFC PATCH v11 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-06-03 Thread Rorie Reyes
On 6/3/25 10:21 AM, Cédric Le Goater wrote: On 6/3/25 14:58, Rorie Reyes wrote: Hey Cedric, You mentioned the following in my v9 patches "In that case, let's keep it simple (no mutex) and add a assert(bql_locked()) statement where we think the bql should be protecting access

Re: [RFC PATCH v11 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-06-03 Thread Rorie Reyes
édric Le Goater wrote: On 5/23/25 18:03, Rorie Reyes wrote: 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 ---

[RFC PATCH v11 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-05-23 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 --- hw/vfio/ap.c | 12

[RFC PATCH v11 1/4] hw/vfio/ap: notification handler for AP config changed event

2025-05-23 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 --- hw/vfio/ap.c | 31 +++ 1 file

[RFC PATCH v11 4/4] s390: implementing CHSC SEI for AP config change

2025-05-23 Thread Rorie Reyes
e, it will use the stub file. Signed-off-by: Rorie Reyes Reviewed-by: Anthony Krowiak Reviewed-by: Cédric Le Goater --- MAINTAINERS | 1 + hw/s390x/ap-stub.c| 21 + hw/s390x/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files changed, 32 inser

[RFC PATCH v11 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-05-23 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 | 53

[RFC PATCH v11 0/4] Report vfio-ap configuration changes

2025-05-23 Thread Rorie Reyes
at a guest's AP configuration has changed. The handler in turn notifies the guest that its AP configuration has changed. This allows the guest to immediately respond to AP configuration changes rather than relying on polling or some other inefficient mechanism for detecting config ch

Re: [RFC PATCH v10 4/4] s390: implementing CHSC SEI for AP config change

2025-05-23 Thread Rorie Reyes
diff --git a/hw/s390x/ap-stub.c b/hw/s390x/ap-stub.c new file mode 100644 index 00..e2dacff959 --- /dev/null +++ b/hw/s390x/ap-stub.c @@ -0,0 +1,25 @@ +/* + * VFIO based AP matrix device assignment + * + * Copyright 2025 IBM Corp. + * Author(s): Rorie Reyes + * + * SPDX-License

Re: [RFC PATCH v10 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-05-23 Thread Rorie Reyes
@@ -96,6 +99,49 @@ static void vfio_ap_cfg_chg_notifier_handler(void *opaque)     }   +bool ap_chsc_sei_nt0_get_event(void *res) +{ +    ChscSeiNt0Res *nt0_res  = (ChscSeiNt0Res *)res; +    APConfigChgEvent *cfg_chg_event; + +    qemu_mutex_lock(&cfg_chg_events_lock); + +    if (!ap_chsc_sei_nt0_

[RFC PATCH v10 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-05-22 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 --- hw/vfio/ap.c | 12

[RFC PATCH v10 4/4] s390: implementing CHSC SEI for AP config change

2025-05-22 Thread Rorie Reyes
e, it will use the stub file. Signed-off-by: Rorie Reyes Reviewed-by: Anthony Krowiak Reviewed-by: Cédric Le Goater --- MAINTAINERS | 1 + hw/s390x/ap-stub.c| 25 + hw/s390x/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files change

[RFC PATCH v10 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-05-22 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 | 53

[RFC PATCH v10 0/4] Report vfio-ap configuration changes

2025-05-22 Thread Rorie Reyes
has changed. The handler in turn notifies the guest that its AP configuration has changed. This allows the guest to immediately respond to AP configuration changes rather than relying on polling or some other inefficient mechanism for detecting config changes. Rorie Reyes (4): hw/vfio/ap: notificati

[RFC PATCH v10 1/4] hw/vfio/ap: notification handler for AP config changed event

2025-05-22 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 --- hw/vfio/ap.c | 31 +++ 1 file

Re: [RFC PATCH v9 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-05-22 Thread Rorie Reyes
I had those concepts mixed up. I apologize On 5/22/25 11:05 PM, Rorie Reyes wrote: On 5/22/25 3:02 PM, Anthony Krowiak wrote: On 5/22/25 9:35 AM, Cédric Le Goater wrote: On 5/12/25 20:02, Rorie Reyes wrote: These functions can be invoked by the function that handles interception of the CHS

Re: [RFC PATCH v9 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-05-22 Thread Rorie Reyes
On 5/22/25 3:02 PM, Anthony Krowiak wrote: On 5/22/25 9:35 AM, Cédric Le Goater wrote: On 5/12/25 20:02, Rorie Reyes wrote: 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

Re: [RFC PATCH v9 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-05-22 Thread Rorie Reyes
On 5/22/25 11:36 AM, Cédric Le Goater wrote: On 5/22/25 16:28, Rorie Reyes wrote: On 5/22/25 9:27 AM, Cédric Le Goater wrote: On 5/12/25 20:02, Rorie Reyes wrote: Creates an object indicating that an AP configuration change event has been received and stores it in a queue. These objects

Re: [RFC PATCH v9 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-05-22 Thread Rorie Reyes
On 5/22/25 9:30 AM, Cédric Le Goater wrote: On 5/12/25 20:02, Rorie Reyes wrote: 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

Re: [RFC PATCH v9 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-05-22 Thread Rorie Reyes
On 5/22/25 11:36 AM, Cédric Le Goater wrote: On 5/22/25 16:28, Rorie Reyes wrote: On 5/22/25 9:27 AM, Cédric Le Goater wrote: On 5/12/25 20:02, Rorie Reyes wrote: Creates an object indicating that an AP configuration change event has been received and stores it in a queue. These objects

Re: [RFC PATCH v9 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-05-22 Thread Rorie Reyes
On 5/22/25 9:27 AM, Cédric Le Goater wrote: On 5/12/25 20:02, Rorie Reyes wrote: 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

Re: [RFC PATCH v9 4/4] s390: implementing CHSC SEI for AP config change

2025-05-20 Thread Rorie Reyes
diff --git a/hw/s390x/ap-stub.c b/hw/s390x/ap-stub.c new file mode 100644 index 00..e2dacff959 --- /dev/null +++ b/hw/s390x/ap-stub.c @@ -0,0 +1,25 @@ +/* + * VFIO based AP matrix device assignment + * + * Copyright 2025 IBM Corp. + * Author(s): Rorie Reyes + * + * SPDX-License

[RFC PATCH v9 4/4] s390: implementing CHSC SEI for AP config change

2025-05-12 Thread Rorie Reyes
e, it will use the stub file. Signed-off-by: Rorie Reyes --- MAINTAINERS | 1 + hw/s390x/ap-stub.c| 25 + hw/s390x/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 hw/s390x/ap-s

[RFC PATCH v9 0/4] Report vfio-ap configuration changes

2025-05-12 Thread Rorie Reyes
ion has changed. The handler in turn notifies the guest that its AP configuration has changed. This allows the guest to immediately respond to AP configuration changes rather than relying on polling or some other inefficient mechanism for detecting config changes. Rorie Reyes (4): hw/vfio/ap: noti

[RFC PATCH v9 3/4] hw/vfio/ap: Storing event information for an AP configuration change event

2025-05-12 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 | 39

[RFC PATCH v9 1/4] hw/vfio/ap: notification handler for AP config changed event

2025-05-12 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 --- hw/vfio/ap.c | 31 +++ 1 file

[RFC PATCH v9 2/4] hw/vfio/ap: store object indicating AP config changed in a queue

2025-05-12 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 --- hw/vfio/ap.c | 12

[RFC PATCH v8 4/6] hw/vfio/ap: store object indicating AP config changed in a queue

2025-05-09 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 --- hw/vfio/ap.c | 12

[RFC PATCH v8 1/6] linux-header: update-linux-header script changes

2025-05-09 Thread Rorie Reyes
Kernel commit 8a141be3233a changed from using ASSEMBLY to ASSEMBLER Updated the update-linux-header script to match Signed-off-by: Rorie Reyes --- scripts/update-linux-headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update

[RFC PATCH v8 2/6] linux-headers: Update to Linux v6.15-rc3

2025-05-09 Thread Rorie Reyes
Update headers to retrieve uapi information for vfio-ap Signed-off-by: Rorie Reyes --- include/standard-headers/asm-x86/setup_data.h | 4 +- include/standard-headers/drm/drm_fourcc.h | 41 ++ include/standard-headers/linux/const.h| 2 +- include/standard-headers/linux

[RFC PATCH v8 0/6] Report vfio-ap configuration changes

2025-05-09 Thread Rorie Reyes
nfiguration has changed. This allows the guest to immediately respond to AP configuration changes rather than relying on polling or some other inefficient mechanism for detecting config changes. Rorie Reyes (6): linux-header: update-linux-header script changes linux-headers: Update to Linux v6.15-rc3

[RFC PATCH v8 3/6] hw/vfio/ap: notification handler for AP config changed event

2025-05-09 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 --- hw/vfio/ap.c | 31 +++ 1 file

[RFC PATCH v8 5/6] hw/vfio/ap: Storing event information for an AP configuration change event

2025-05-09 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 | 39

[RFC PATCH v8 6/6] s390: implementing CHSC SEI for AP config change

2025-05-09 Thread Rorie Reyes
e, it will use the stub file. Signed-off-by: Rorie Reyes --- MAINTAINERS | 1 + hw/s390x/ap-stub.c| 23 +++ hw/s390x/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 hw/s390x/ap-s

Re: [PATCH v7 0/6] Report vfio-ap configuration changes

2025-05-06 Thread Rorie Reyes
On 5/6/25 3:00 AM, Cédric Le Goater wrote: On 4/28/25 23:29, Cédric Le Goater wrote: On 4/25/25 07:23, Rorie Reyes wrote: Changelog: v7: - Dropped initial commit for linux-header file vfio.h since I created two new commits to address the changes made in v6 - Moved patches 6 and 7 to the

Re: [PATCH v7 0/6] Report vfio-ap configuration changes

2025-04-30 Thread Rorie Reyes
On 4/28/25 5:29 PM, Cédric Le Goater wrote: On 4/25/25 07:23, Rorie Reyes wrote: Changelog: v7: - Dropped initial commit for linux-header file vfio.h since I created two new commits to address the changes made in v6 - Moved patches 6 and 7 to the beginning of the series after dropping the

Re: [PATCH QEMU] x86/headers: Replace __ASSEMBLY__ with __ASSEMBLER__ in UAPI headers

2025-04-29 Thread Rorie Reyes
On 4/29/25 3:30 AM, Cédric Le Goater wrote: On 4/29/25 07:22, Thomas Huth wrote: On 29/04/2025 02.17, Alexey Kardashevskiy wrote: The recent kernel update 8a141be3233af7d broke the headers update, fix it in the script. Thanks, but the same patch is already on the list: https://lore.kernel.o

[PATCH v7 1/6] linux-header: update-linux-header script changes

2025-04-24 Thread Rorie Reyes
Kernel commit 8a141be3233a changed from using ASSEMBLY to ASSEMBLER Updated the update-linux-header script to match Signed-off-by: Rorie Reyes --- scripts/update-linux-headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update

[PATCH v7 6/6] s390: implementing CHSC SEI for AP config change

2025-04-24 Thread Rorie Reyes
ff-by: Rorie Reyes Reviewed-by: Anthony Krowiak Tested-by: Anthony Krowiak --- MAINTAINERS | 1 + hw/vfio/ap-stub.c | 23 +++ hw/vfio/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 1006

[PATCH v7 2/6] linux-headers: Update to Linux v6.15-rc3

2025-04-24 Thread Rorie Reyes
Update headers to retrieve uapi information for vfio-ap Signed-off-by: Rorie Reyes --- include/standard-headers/asm-x86/setup_data.h | 4 +- include/standard-headers/drm/drm_fourcc.h | 41 ++ include/standard-headers/linux/const.h| 2 +- include/standard-headers/linux

[PATCH v7 0/6] Report vfio-ap configuration changes

2025-04-24 Thread Rorie Reyes
ome other inefficient mechanism for detecting config changes. Rorie Reyes (6): linux-header: update-linux-header script changes linux-headers: Update to Linux v6.15-rc3 hw/vfio/ap: notification handler for AP config changed event hw/vfio/ap: store object indicating AP config changed in a queu

[PATCH v7 3/6] hw/vfio/ap: notification handler for AP config changed event

2025-04-24 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 --- hw/vfio/ap.c | 31 +++ 1 file

[PATCH v7 4/6] hw/vfio/ap: store object indicating AP config changed in a queue

2025-04-24 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 --- hw/vfio/ap.c | 12

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

2025-04-24 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 | 39

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

2025-04-23 Thread Rorie Reyes
ff-by: Rorie Reyes Reviewed-by: Anthony Krowiak Tested-by: Anthony Krowiak --- MAINTAINERS | 1 + hw/vfio/ap-stub.c | 23 +++ hw/vfio/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 1006

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

2025-04-23 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 v6 2/7] hw/vfio/ap: notification handler for AP config changed event

2025-04-23 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 --- hw/vfio/ap.c | 31 +++ 1 file

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

2025-04-23 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 | 39

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

2025-04-23 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 --- hw/vfio/ap.c | 12

[PATCH v6 6/7] linux-header: update-linux-header script changes

2025-04-23 Thread Rorie Reyes
Kernel commit 8a14 changed from using ASSEMBLY to ASSEMBLER Updated the update-linux-header script to match Signed-off-by: Rorie Reyes --- scripts/update-linux-headers.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux

[PATCH v6 7/7] linux-headers: Update to Linux v6.15-rc1

2025-04-23 Thread Rorie Reyes
Update headers to retrieve uapi information for vfio-ap Signed-off-by: Rorie Reyes --- include/standard-headers/asm-x86/setup_data.h | 4 +- include/standard-headers/drm/drm_fourcc.h | 41 ++ include/standard-headers/linux/const.h| 2 +- include/standard-headers/linux

[PATCH v6 0/7] Report vfio-ap configuration changes

2025-04-23 Thread Rorie Reyes
r in turn notifies the guest that its AP configuration has changed. This allows the guest to immediately respond to AP configuration changes rather than relying on polling or some other inefficient mechanism for detecting config changes. Rorie Reyes (7): linux-headers: NOTFORMERGE - placeholder ua

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

2025-04-15 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 --- hw/vfio/ap.c | 31 +++ 1 file

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

2025-04-15 Thread Rorie Reyes
ff-by: Rorie Reyes Reviewed-by: Anthony Krowiak Tested-by: Anthony Krowiak --- MAINTAINERS | 1 + hw/vfio/ap-stub.c | 23 +++ hw/vfio/meson.build | 1 + target/s390x/ioinst.c | 11 +-- 4 files changed, 34 insertions(+), 2 deletions(-) create mode 1006

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

2025-04-15 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 --- hw/vfio/ap.c | 12

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

2025-04-15 Thread Rorie Reyes
#x27;s AP configuration has changed. The handler in turn notifies the guest that its AP configuration has changed. This allows the guest to immediately respond to AP configuration changes rather than relying on polling or some other inefficient mechanism for detecting config changes. Rorie Reye

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

2025-04-15 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 | 39

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

2025-04-15 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..

Re: [RFC PATCH v4 5/5] s390: implementing CHSC SEI for AP config change

2025-04-14 Thread Rorie Reyes
On 4/14/25 10:54 AM, Thomas Huth wrote: On 14/04/2025 16.37, Rorie Reyes wrote: On 4/11/25 2:45 AM, Thomas Huth wrote: #include CONFIG_DEVICES at the beginning of the ioinst.c file. Then you should be able to do: #ifdef CONFIG_VFIO_AP     if (s390_has_feat(S390_FEAT_AP)) {    return

Re: [RFC PATCH v4 5/5] s390: implementing CHSC SEI for AP config change

2025-04-14 Thread Rorie Reyes
On 4/11/25 2:45 AM, Thomas Huth wrote: #include CONFIG_DEVICES at the beginning of the ioinst.c file. Then you should be able to do: #ifdef CONFIG_VFIO_AP     if (s390_has_feat(S390_FEAT_AP)) {    return ap_chsc_sei_nt0_get_event(res);     } #endif This worked (or whatever the code shou

Re: [RFC PATCH v4 5/5] s390: implementing CHSC SEI for AP config change

2025-04-10 Thread Rorie Reyes
On 3/17/25 9:41 AM, Thomas Huth wrote: On 11/03/2025 16.16, Rorie Reyes wrote: 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 ---   t

Re: [RFC PATCH v4 5/5] s390: implementing CHSC SEI for AP config change

2025-03-25 Thread Rorie Reyes
On 3/17/25 9:41 AM, Thomas Huth wrote: On 11/03/2025 16.16, Rorie Reyes wrote: 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 ---   t

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

2025-03-15 Thread Rorie Reyes
On 3/10/25 10:38 AM, Cédric Le Goater wrote: Hello Rorie, On 3/10/25 15:20, Rorie Reyes wrote: On 2/5/25 3:38 AM, Cédric Le Goater wrote: Are the kernel changes planned for 6.14 ? FYI, QEMU 10.0 hard freeze is scheduled for 2025-03-18 which is approximately when 6.14-rc7 will be

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

2025-03-11 Thread Rorie Reyes
On 3/10/25 10:47 AM, Vasily Gorbik wrote: On Mon, Mar 10, 2025 at 10:20:05AM -0400, Rorie Reyes wrote: On 2/5/25 3:38 AM, Cédric Le Goater wrote: Are the kernel changes planned for 6.14 ? FYI, QEMU 10.0 hard freeze is scheduled for 2025-03-18 which is approximately when 6.14-rc7 will be

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

2025-03-11 Thread Rorie Reyes
ing 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 indicating AP config changed in a queue hw/vfio/ap: Storing event information for an AP con

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

2025-03-11 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 --- hw/vfio/ap.c | 10

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

2025-03-11 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 --- hw/vfio/ap.c | 31 +++ 1 file changed, 31 insertions(+) diff

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

2025-03-11 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

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

2025-03-11 Thread Rorie Reyes
On 2/5/25 3:38 AM, Cédric Le Goater wrote: Are the kernel changes planned for 6.14 ? FYI, QEMU 10.0 hard freeze is scheduled for 2025-03-18 which is approximately when 6.14-rc7 will be released. Thanks, C. Vasily - Since you applied my kernel patches already ([RFC PATCH v2] s390/vfio-ap:

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

2025-03-11 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 | 38

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

2025-03-11 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..

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

2025-03-11 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..

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

2025-03-11 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 --- hw/vfio/ap.c | 12

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

2025-03-11 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 --- hw/vfio/ap.c | 31 +++ 1 file

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

2025-03-11 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

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

2025-03-11 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 | 39

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

2025-03-11 Thread Rorie Reyes
he handler in turn notifies the guest that its AP configuration has changed. This allows the guest to immediately respond to AP configuration changes rather than relying on polling or some other inefficient mechanism for detecting config changes. Rorie Reyes (5): linux-headers: NOTFORMERGE - placeh

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

2025-02-05 Thread Rorie Reyes
On 1/7/25 2:06 PM, Alex Williamson wrote: On Tue, 7 Jan 2025 13:43:49 -0500 Rorie Reyes wrote: This patch series creates and registers a handler that is called when userspace is notified by the kernel that a guest's AP configuration has changed. The handler in turn notifies the guest

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

2025-02-04 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 --- hw/vfio/ap.c | 29 + 1 file changed, 29 insertions(+) diff

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

2025-02-04 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 | 38

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

2025-02-04 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..

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

2025-02-04 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

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

2025-02-04 Thread Rorie Reyes
er in turn notifies the guest that its AP configuration has changed. This allows the guest to immediately respond to AP configuration changes rather than relying on polling or some other inefficient mechanism for detecting config changes. Rorie Reyes (5): linux-headers: NOTFORMERGE - placeholder ua

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

2025-02-04 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 --- hw/vfio/ap.c | 14

  1   2   >