Received: from eggs.gnu.org ([2001:4830:134:3::10]:35917) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDqUg-0007JR-2D for qemu-devel@nongnu.org; Fri, 17 Jun 2016 05:55:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bDqUe-00034b-V9 for qemu-devel@nongnu.org; Fri, 17 Jun 2016 05:55:18 -0400 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]:36634) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bDqUe-00034V-OA for qemu-devel@nongnu.org; Fri, 17 Jun 2016 05:55:16 -0400 Received: by mail-wm0-x232.google.com with SMTP id f126so82158235wma.1 for ; Fri, 17 Jun 2016 02:55:16 -0700 (PDT) Sender: Paolo Bonzini References: <1466151557-12676-1-git-send-email-pbonzini@redhat.com> <20160617090812.GB22759@grmbl.mre> From: Paolo Bonzini Message-ID: <05c5c77a-1b3e-fe0b-7ef4-ba6c224a17ac@redhat.com> Date: Fri, 17 Jun 2016 11:55:12 +0200 MIME-Version: 1.0 In-Reply-To: <20160617090812.GB22759@grmbl.mre> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit 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: Amit Shah Cc: =?UTF-8?Q?Herv=c3=a9_Poussineau?= , qemu-devel@nongnu.org, ppandit@redhat.com On 17/06/2016 11:08, Amit Shah wrote: > 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? Because I thought it was a bool. My mistake. Paolo