From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:45058) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFndU-0006T7-51 for qemu-devel@nongnu.org; Mon, 17 Oct 2011 09:53:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RFndO-0000nf-E3 for qemu-devel@nongnu.org; Mon, 17 Oct 2011 09:53:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:45666) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RFndO-0000nS-1Q for qemu-devel@nongnu.org; Mon, 17 Oct 2011 09:53:42 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9HDreb4032056 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 17 Oct 2011 09:53:41 -0400 Message-ID: <4E9C3362.2070202@redhat.com> Date: Mon, 17 Oct 2011 15:53:38 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <1318503845-11473-1-git-send-email-pbonzini@redhat.com> <1318503845-11473-4-git-send-email-pbonzini@redhat.com> <4E9C3079.6000803@redhat.com> In-Reply-To: <4E9C3079.6000803@redhat.com> Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 03/35] atapi: move GESN definitions to scsi-defs.h List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Kevin Wolf Cc: qemu-devel@nongnu.org On 10/17/2011 03:41 PM, Kevin Wolf wrote: > I'm not sure about the NCR_* constants. They happen to be shifted > values, but the spec doesn't define them as such but has two separate > tables for them. Yeah, on the other hand the spec has hints that they are really the same thing: 1) one is called notification class request, the other is called notification class. Using the same name is surprising since the SCSI spec usually cannot praised for its consistency. For example the returned header includes a field called "supported event classes" (rather than for example "supported notification classes"), but the description refers explicitly to the same table used for the "notification class request" field. 2) "bit 0 is perpetually reserved" in the notification class request field, and the notification class field value "000" means "no requested event classes are supported". Paolo