Fix handling of TLS sessions in chardevs
Merge Request Required Information
Summary of Changes
This is a second attempt to fix a problem with TLS sessions on character devices
The previous attempted fix that was merged into qemu-kvm-8.2.0-7.el9_4 caused a massive regression, entirely breaking TLS sessions on chardevs.
This MR reverts that previous patch, and also reverts a further much older patch that was the root cause of the problems.
It further includes a fix for POLLHUP handling in chardevs that fixes test failures that would othewise occur with the other 2 revert present.
Approved Development Ticket
Edited by Thomas Huth