Received: from eggs.gnu.org ([2001:4830:134:3::10]:49167) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx0YR-0005UH-00 for qemu-devel@nongnu.org; Fri, 05 Dec 2014 16:36:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xx0YQ-0000oT-6Q for qemu-devel@nongnu.org; Fri, 05 Dec 2014 16:36:46 -0500 Received: from ozlabs.org ([2401:3900:2:1::2]:51289) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xx0YP-0000o1-Qd for qemu-devel@nongnu.org; Fri, 05 Dec 2014 16:36:46 -0500 Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPSA id 01D8D14011B for ; Sat, 6 Dec 2014 08:36:41 +1100 (AEDT) Date: Sat, 6 Dec 2014 08:35:19 +1100 From: Tony Breeds Message-ID: <20141205213518.GD84915@thor.bakeyournoodle.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="D402Py2zjJjzbYTp" Content-Disposition: inline Subject: [Qemu-devel] Providing a mechanism to reopen() file based chardevs List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --D402Py2zjJjzbYTp Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi All, Openstcak (Nova) has had an issue for a longish time where a running instance (qemu via libvirt) which has a file based console can fill the disk of the hypervisor causing all guests to stall. I'm looking at ways to fix this. Clearly it can be done in openstack wothout changing qemu but it seems to be that a better idea would be to teach qemu to reopen() these files when it recieves a sighup and/or something in the monitor. I like the idea of sighup as it allows systems administrators to use logrotate thereby avoiding baking policy into qemu. My initial thoughts are that I'd need to add a flag to the chardev (perhaps allowreopen?) and upon reciept of the reopen request I'd I iterate over the open chardevs and reopen them if they have this flag set. The main target of this would be a console log. So my main question is would that be something that would be considered for 2.3.0? If so any high level design points I shoudl consider? - Is the chardev flag a good/bad idea? - Is it okay to change the action taken by sighup? Yours Tony. --D402Py2zjJjzbYTp Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJUgiUWAAoJEPvNNsFAAoTBTZcQAKmTTR62XzWYRfUcX+9JGhrj tlvPjHHJGd/JC/H1r1HdMNcp4+sKI24vZ8vfhjt2o7WEI7qY0er/0wrTvyotgCIJ XSyvpjco65MW/8Y0Cn6hHGJRbSuiRsACsQayzNoIyZzXn0mukvOLlnyU5KYsnXwE y3d/TFUf7pzIyM4fkysstu1hDi+MJLmUiQKS9jNpr4Slfy55H8f950/CQgNQ/VWq 7zrGCxtDDXsrccFZwzoIPW9mwHO5cXdQdtCI35w9Ig3/n0+rtE/FvVQ4iZX+Waje OM5egYSXQq1mBlMLQuZHfgyYy2T/8vHasFwHVbyDy8h09bRGUk6g2uWsQDtVF6nr /ur2wCm5gaA+UgIL9r6lijAEuJ0tlPjYTkGh4sAWrLknlfnw8Mxox/G3ubh6cv5v QSzBuegOaWS6XVM9AGMBvfBId3M/df2U6o9TDUPXApdnf2xnbIM39dailW0zdBny f4GXRAXXUebcX0eQIAfYUcNlp1A3zshpRmd4EW8iqMc/kwHa2kMS5T92cY/uWqAL 8O4jiJduw4Zvhi9ZKy6exip0ng4qPLWFFSalHkoe9zVz1YZWNcA4434kcAcXnG1N qROz1gt7iyiwgWWIszjQQ1zcAVXfmvt4iqPFcOJv/0XzO2r+zoExAkt8c1y9eKNP UJ5HHVX7af1/LVbqK/mr =9OCC -----END PGP SIGNATURE----- --D402Py2zjJjzbYTp--