[obs-commits] [openSUSE/obs-build] 655095: Fix vm_sysrq_kvm not working reliable
Branch: refs/heads/master Home: https://github.com/openSUSE/obs-build Commit: 65509595e84519e8fc44c616529eeb600e5e2381 https://github.com/openSUSE/obs-build/commit/65509595e84519e8fc44c616529eeb6... Author: Michael Schroeder <mls@suse.de> Date: 2020-11-11 (Wed, 11 Nov 2020) Changed paths: M build-vm-kvm Log Message: ----------- Fix vm_sysrq_kvm not working reliable When connecting to the unix domain socket, qemu sends a greeting message. If we just send the command and close the socket, the linux kernel will see that there is unread data and reset the socket, discarding our sent command. So we need to read the greeting. We do a shutdown before reading from the socket so that the qemu side gets an EOF and closes the connection, terminating our read.
participants (1)
-
Michael Schroeder