Received: from eggs.gnu.org ([2001:4830:134:3::10]:43174) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab3ST-0004tg-7h for qemu-devel@nongnu.org; Wed, 02 Mar 2016 04:52:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ab3SN-0007zC-QI for qemu-devel@nongnu.org; Wed, 02 Mar 2016 04:52:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:49987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ab3SN-0007ys-Lh for qemu-devel@nongnu.org; Wed, 02 Mar 2016 04:52:35 -0500 From: Markus Armbruster References: <1456771254-17511-1-git-send-email-armbru@redhat.com> <1456771254-17511-14-git-send-email-armbru@redhat.com> Date: Wed, 02 Mar 2016 10:52:33 +0100 In-Reply-To: (=?utf-8?Q?=22Marc-Andr=C3=A9?= Lureau"'s message of "Tue, 1 Mar 2016 16:39:12 +0100") Message-ID: <871t7tp5pa.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH 13/38] ivshmem: Don't destroy the chardev on version mismatch List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: =?utf-8?Q?Marc-Andr=C3=A9?= Lureau Cc: Paolo Bonzini , cam , Claudio Fontana , QEMU , David Marchand Marc-Andr=C3=A9 Lureau writes: > Hi > > On Mon, Feb 29, 2016 at 7:40 PM, Markus Armbruster wr= ote: >> Yes, the chardev is commonly useless after we read a bad version from >> it, but destroying it is inappropriate anyway: the user created it, so >> the user should be able to hold on to it as long as he likes. We >> don't destroy it on other errors. Screwed up in commit 5105b1d. >> >> Stop reading instead. >> >> Also note QEMU's behavior in ivshmem-spec.txt. >> >> Signed-off-by: Markus Armbruster > > Interestingly enough, it seems both smartcard "passthru" and usb > redirect do chr_delete(). It would a nice follow up to standardize > this there too. Wasn't aware of them. I'll see what I can do. > Reviewed-by: Marc-Andr=C3=A9 Lureau Thanks!