From mboxrd@z Thu Jan 1 00:00:00 1970 From: Pekka Enberg Subject: Re: [PATCH v2 4/4] kvm tools: Fix virtio console hangs by removing IRQ injection for tx path Date: Sun, 08 May 2011 20:05:29 +0300 Message-ID: <1304874329.10621.45.camel@jaguar> References: <1304860165-28810-1-git-send-email-asias.hejun@gmail.com> <1304860165-28810-5-git-send-email-asias.hejun@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit Cc: Cyrill Gorcunov , Ingo Molnar , Sasha Levin , Prasad Joshi , kvm@vger.kernel.org To: Asias He Return-path: Received: from filtteri5.pp.htv.fi ([213.243.153.188]:54376 "EHLO filtteri5.pp.htv.fi" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751567Ab1EHRFc (ORCPT ); Sun, 8 May 2011 13:05:32 -0400 In-Reply-To: <1304860165-28810-5-git-send-email-asias.hejun@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, 2011-05-08 at 21:09 +0800, Asias He wrote: > As virtio spec says: > > """ > Because this is high importance and low bandwidth, the current Linux > implementation polls for the buffer to be used, rather than waiting > for an interrupt, simplifying the implementation signicantly. > """ > > drivers/char/virtio_console.c > send_buf() { > ... > /* Tell Host to go! */ > virtqueue_kick(out_vq); > ... > while (!virtqueue_get_buf(out_vq, &len)) > cpu_relax(); > ... > } > > The console hangs can simply be reproduced by yes command which > gives tremendous console IOs and IRQs. Sasha, does this fix the hangs you were seeing? We should re-enable virtio console unconditionally if this does - that increases test coverage for virtio console. Pekka