From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mh4oE-0002Km-HM for qemu-devel@nongnu.org; Fri, 28 Aug 2009 13:00:18 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mh4o8-0002GP-Na for qemu-devel@nongnu.org; Fri, 28 Aug 2009 13:00:17 -0400 Received: from [199.232.76.173] (port=43616 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mh4o8-0002GH-Is for qemu-devel@nongnu.org; Fri, 28 Aug 2009 13:00:12 -0400 Received: from mail-qy0-f203.google.com ([209.85.221.203]:48287) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mh4o8-00053i-7h for qemu-devel@nongnu.org; Fri, 28 Aug 2009 13:00:12 -0400 Received: by qyk41 with SMTP id 41so1377174qyk.18 for ; Fri, 28 Aug 2009 10:00:11 -0700 (PDT) Message-ID: <4A980D18.30106@codemonkey.ws> Date: Fri, 28 Aug 2009 12:00:08 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1251181044-3696-1-git-send-email-amit.shah@redhat.com> <20090826112718.GA11117@amit-x200.redhat.com> In-Reply-To: <20090826112718.GA11117@amit-x200.redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: Extending virtio_console to support multiple ports List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amit Shah Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Amit Shah wrote: > On (Tue) Aug 25 2009 [11:47:20], Amit Shah wrote: > >> Hello all, >> >> Here is a new iteration of the patch series that implements a >> transport for guest and host communications. >> >> The code has been updated to reuse the virtio-console device instead >> of creating a new virtio-serial device. >> > > And the problem now is that hvc calls the put_chars function with > spinlocks held and we now allocate pages in send_buf(), called from > put_chars. > Don't allocate pages in send_buf. There's a fixed number of possible entries on the ring. Preallocate them up front and then you don't need to sleep. > A few solutions: > - Keep things as they are, virtio_console.c remains as it is and > virtio_serial.c gets added > Not an option from a QEMU perspective. Regards, Anthony Liguori