From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49656) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMjsR-0007II-Po for qemu-devel@nongnu.org; Sat, 14 Feb 2015 16:03:48 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YMjsO-0001eG-KQ for qemu-devel@nongnu.org; Sat, 14 Feb 2015 16:03:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60120) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YMjsO-0001dv-DN for qemu-devel@nongnu.org; Sat, 14 Feb 2015 16:03:44 -0500 Date: Sat, 14 Feb 2015 22:03:36 +0100 From: "Michael S. Tsirkin" Message-ID: <20150214210336.GA1281@redhat.com> References: <1423835139-9648-1-git-send-email-haifeng.lin@huawei.com> <1423835139-9648-2-git-send-email-haifeng.lin@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1423835139-9648-2-git-send-email-haifeng.lin@huawei.com> Subject: Re: [Qemu-devel] [PATCH v2 1/3] vhost-user: update the protocol. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: linhaifeng Cc: qemu-devel@nongnu.org On Fri, Feb 13, 2015 at 09:45:37PM +0800, linhaifeng wrote: > @@ -35,7 +39,7 @@ consists of 3 header fields and a payload: > > * Request: 32-bit type of the request > * Flags: 32-bit bit field: > - - Lower 2 bits are the version (currently 0x01) > + - Lower 2 bits are the version (currently 0x06) > - Bit 2 is the reply flag - needs to be sent on each reply from the slave > * Size - 32-bit size of the payload > How do you encode 0x6 in a 2 bit field? -- MST