From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48552) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmNVs-0007Kj-L6 for qemu-devel@nongnu.org; Wed, 14 Oct 2015 10:58:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZmNVn-0007bX-MG for qemu-devel@nongnu.org; Wed, 14 Oct 2015 10:58:44 -0400 Received: from mga03.intel.com ([134.134.136.65]:42726) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZmNVn-0007bM-Dg for qemu-devel@nongnu.org; Wed, 14 Oct 2015 10:58:39 -0400 References: <1444535584-18220-1-git-send-email-guangrong.xiao@linux.intel.com> <1444535584-18220-28-git-send-email-guangrong.xiao@linux.intel.com> <20151014094134.GC14874@stefanha-thinkpad> From: Xiao Guangrong Message-ID: <561E6C1F.2000502@linux.intel.com> Date: Wed, 14 Oct 2015 22:52:15 +0800 MIME-Version: 1.0 In-Reply-To: <20151014094134.GC14874@stefanha-thinkpad> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 27/32] nvdimm: support DSM_CMD_IMPLEMENTED function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi Cc: ehabkost@redhat.com, kvm@vger.kernel.org, mst@redhat.com, gleb@kernel.org, mtosatti@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, imammedo@redhat.com, pbonzini@redhat.com, dan.j.williams@intel.com, rth@twiddle.net On 10/14/2015 05:41 PM, Stefan Hajnoczi wrote: > On Sun, Oct 11, 2015 at 11:52:59AM +0800, Xiao Guangrong wrote: >> + out->len = sizeof(out->status); > > out->len is uint16_t, it needs cpu_to_le16(). There may be other > instances in this patch series. > out->len is internally used only which is invisible to guest OS, i,e, we write this value and read this value by ourself. I think it is okay.