Received: from eggs.gnu.org ([2001:4830:134:3::10]:45870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boqd6-0000nn-1k for qemu-devel@nongnu.org; Tue, 27 Sep 2016 07:33:04 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1boqd2-0001Eu-T2 for qemu-devel@nongnu.org; Tue, 27 Sep 2016 07:32:56 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:58339 helo=mx0a-001b2d01.pphosted.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1boqd2-0001Eh-OR for qemu-devel@nongnu.org; Tue, 27 Sep 2016 07:32:52 -0400 Received: from pps.filterd (m0098414.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u8RBWfJi011703 for ; Tue, 27 Sep 2016 07:32:51 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0b-001b2d01.pphosted.com with ESMTP id 25qjak80dg-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Tue, 27 Sep 2016 07:32:51 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Sep 2016 12:32:49 +0100 Received: from b06cxnps4075.portsmouth.uk.ibm.com (d06relay12.portsmouth.uk.ibm.com [9.149.109.197]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 1A823219004D for ; Tue, 27 Sep 2016 12:32:07 +0100 (BST) Received: from d06av09.portsmouth.uk.ibm.com (d06av09.portsmouth.uk.ibm.com [9.149.37.250]) by b06cxnps4075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u8RBWlui12648714 for ; Tue, 27 Sep 2016 11:32:47 GMT Received: from d06av09.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av09.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u8RBWl3T004920 for ; Tue, 27 Sep 2016 05:32:47 -0600 From: Sascha Silbe In-Reply-To: <20160926115625.GA1372@amit-lp.rh> References: <1474460268-26193-1-git-send-email-silbe@linux.vnet.ibm.com> <20160926115625.GA1372@amit-lp.rh> Date: Tue, 27 Sep 2016 13:32:46 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Message-Id: <87zimt7f35.fsf@oc4731375738.ibm.com> Subject: Re: [Qemu-devel] [PATCH] virtio-serial: virtio console emergency write support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: Cornelia Huck , Paolo Bonzini , qemu-devel@nongnu.org, "Michael S. Tsirkin" Dear Amit, Amit Shah writes: > On (Wed) 21 Sep 2016 [14:17:48], Sascha Silbe wrote: >> Add support for the virtio 1.0 "emergency write" >> (VIRTIO_CONSOLE_F_EMERG_WRITE) feature. This is useful for early guest >> debugging and might be used in cases where the guest crashes so badly >> that it cannot use virtqueues. >>=20 >> Disabled for compatibility machines to avoid exposing a new feature to >> existing guests. >>=20 >> Reviewed-by: Cornelia Huck >> Signed-off-by: Sascha Silbe > > This looks fine, but can you split the patch - adding > find_first_connected_console(), set_config, and then finally enabling > the emergency_write feature? Sure. I've split it into two patches: One introducing find_first_connected_console() + set_config() but with no way for the guest to actually exploit it. The other patch exposing the emergency write virtio feature to the guest and disabling it for older machines using the compat property. Will send the updated series once the build tests complete. Sascha --=20 Softwareentwicklung Sascha Silbe, Niederhofenstra=C3=9Fe 5/1, 71229 Leonberg https://se-silbe.de/ USt-IdNr. DE281696641