From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54676) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDplF-0000N0-65 for qemu-devel@nongnu.org; Fri, 17 Jun 2016 05:08:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDplA-0000wX-3n for qemu-devel@nongnu.org; Fri, 17 Jun 2016 05:08:20 -0400 Received: from mx1.redhat.com ([209.132.183.28]:44545) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDpl9-0000vG-Ug for qemu-devel@nongnu.org; Fri, 17 Jun 2016 05:08:16 -0400 Date: Fri, 17 Jun 2016 14:38:12 +0530 From: Amit Shah Message-ID: <20160617090812.GB22759@grmbl.mre> References: <1466151557-12676-1-git-send-email-pbonzini@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1466151557-12676-1-git-send-email-pbonzini@redhat.com> Subject: Re: [Qemu-devel] [PATCH] scsi: esp: remove handling of SATN/STOP List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: qemu-devel@nongnu.org, =?iso-8859-1?Q?Herv=E9?= Poussineau , ppandit@redhat.com On (Fri) 17 Jun 2016 [10:19:17], Paolo Bonzini wrote: > The implementation of SATN/STOP is completely busted. The idea > would be that the next DMA read is for a SCSI message and after > that the adapter would transition to the command phase. > > The recent fix to SATN/STOP broke migration, which is one more > reason to drop SATN/STOP handling completely. It is only used > in practice to send 3-byte messages (target number + tag type > + tag number) for tagged command queuing on adapters that lack > the SATN3 command, and we do not advertise support for TCQ. > > Signed-off-by: Paolo Bonzini [...] > @@ -585,9 +544,12 @@ const VMStateDescription vmstate_esp = { > VMSTATE_BUFFER(ti_buf, ESPState), > VMSTATE_UINT32(status, ESPState), > VMSTATE_UINT32(dma, ESPState), > - VMSTATE_BUFFER(cmdbuf, ESPState), > - VMSTATE_UINT32(cmdlen, ESPState), > - VMSTATE_UINT32(do_cmd, ESPState), > + /* Used to be cmdbuf, cmdlen, do_cmd, but the implementation > + * of "Select with ATN and stop" was totally busted. > + */ > + VMSTATE_UNUSED(16), > + VMSTATE_UNUSED(4), > + VMSTATE_UNUSED(1), Why 1? Amit