From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:33983) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfWoU-0004xf-HY for qemu-devel@nongnu.org; Thu, 23 May 2013 10:48:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UfWoO-000409-8g for qemu-devel@nongnu.org; Thu, 23 May 2013 10:48:18 -0400 Received: from e7.ny.us.ibm.com ([32.97.182.137]:59744) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UfWoO-000401-3f for qemu-devel@nongnu.org; Thu, 23 May 2013 10:48:12 -0400 Received: from /spool/local by e7.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 23 May 2013 10:48:11 -0400 Received: from d01relay07.pok.ibm.com (d01relay07.pok.ibm.com [9.56.227.147]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id 5103D6E8048 for ; Thu, 23 May 2013 10:48:05 -0400 (EDT) Received: from d01av03.pok.ibm.com (d01av03.pok.ibm.com [9.56.224.217]) by d01relay07.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id r4NEm7BT65732800 for ; Thu, 23 May 2013 10:48:07 -0400 Received: from d01av03.pok.ibm.com (loopback [127.0.0.1]) by d01av03.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id r4NEm5Dq009887 for ; Thu, 23 May 2013 11:48:07 -0300 Message-ID: <519E2C21.3000103@us.ibm.com> Date: Thu, 23 May 2013 07:48:01 -0700 From: Badari Pulavarty MIME-Version: 1.0 References: <519D6478.8060403@us.ibm.com> <20130523005355.GA11949@hj.localdomain> <20130523094809.GM4725@redhat.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] qemu seabios issue with vhost-scsi List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: Asias He , "Nicholas A. Bellinger" , qemu-devel , Gleb Natapov On 05/23/2013 06:32 AM, Stefan Hajnoczi wrote: > On Thu, May 23, 2013 at 11:48 AM, Gleb Natapov wrote: >> On Thu, May 23, 2013 at 08:53:55AM +0800, Asias He wrote: >>> On Wed, May 22, 2013 at 05:36:08PM -0700, Badari wrote: >>>> Hi, >>>> >>>> While testing vhost-scsi in the current qemu git, ran into an earlier issue >>>> with seabios. I had to disable scsi support in seabios to get it working. >>>> >>>> I was hoping this issue got resolved when vhost-scsi support got >>>> merged into qemu. Is this still being worked on ? >>> Hmm, can you try seabios.git? Not sure if seabios shipped by qemu picked >>> up the fixes for vhost-scsi. >>> >> Nothing in seabios should crash qemu. > Agreed. I'm pretty sure it's the scenario that I posted in my other > reply to this thread. > > The common virtio-scsi code in QEMU should guard against this. In > virtio-blk data plane I hit a similar case and ended up starting the > data plane thread (equivalent to vhost here) *before* the status > register is set to DRIVER_OK. > Thats exactly what my debug in vhost_scsi_set_status() shows. set status started 0 val 0 set status started 0 val 0 set status started 0 val 0 set status started 0 val 0 set status started 0 val 0 set status started 0 val 3 Program received signal SIGSEGV, Segmentation fault. We never got a chance to call vhost_scsi_start() as we are waiting for DRIVER_OK. Thanks, Badari