[PATCH v3 6/9] powerpc/pseries: Wakeup hvpipe FD when the payload is pending
Tyrel Datwyler
tyreld at linux.ibm.com
Sat Aug 30 05:51:31 AEST 2025
On 8/28/25 4:08 PM, Haren Myneni wrote:
> The user space polls on the wait_queue for the payload from the
> specific source. The hypervisor interrupts the OS when the pipe
> status for the specific source is changed such as payload is
> available for the partition or pipe to the source is closed. The
> OS retrieves the HVPIPE event message with check-exception RTAS
> and event message contains the source ID and the pipe status.
> Then wakes up all FDs waiting on the wait_queue so that the user
> space can read the payload or close the FD if the pipe to source
> in the hypervisor is closed.
>
> The hypervisor assigns one pipe per partition for all sources.
> Hence issue ibm,receive-hvpipe-msg() to read the pending
> payload during release() before closing FD so that pipe to the
> partition will not be blocked.
>
> Signed-off-by: Haren Myneni <haren at linux.ibm.com>
> Reviewed-by: Mahesh Salgaonkar <mahesh at linux.ibm.com>
> Tested-by: Shashank MS <shashank.gowda at in.ibm.com>
> ---
Reviewed-by: Tyrel Datwyler <tyreld at linux.ibm.com>
More information about the Linuxppc-dev
mailing list