Received: from eggs.gnu.org ([2001:4830:134:3::10]:48909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJYVo-000178-1p for qemu-devel@nongnu.org; Mon, 18 Aug 2014 21:47:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XJYVh-0003B8-Ts for qemu-devel@nongnu.org; Mon, 18 Aug 2014 21:46:59 -0400 Received: from [59.151.112.132] (port=58710 helo=heian.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XJYVh-0003Aq-Hu for qemu-devel@nongnu.org; Mon, 18 Aug 2014 21:46:53 -0400 Message-ID: <53F2ACB8.2070200@cn.fujitsu.com> Date: Tue, 19 Aug 2014 09:47:36 +0800 From: tangchen MIME-Version: 1.0 References: <1408363934-28591-1-git-send-email-tangchen@cn.fujitsu.com> <20140818135602.GC28795@redhat.com> <53F20689.3000207@redhat.com> <20140818200449.GB31062@redhat.com> In-Reply-To: <20140818200449.GB31062@redhat.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 1/1] pc-dimm: Change PCDIMMDevice->node from UINT32 to INT32, and initialize it as -1. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" , Paolo Bonzini Cc: peter.crosthwaite@xilinx.com, ehabkost@redhat.com, hutao@cn.fujitsu.com, qemu-devel@nongnu.org, isimatu.yasuaki@jp.fujitsu.com, imammedo@redhat.com Hi Michael, Paolo Thanks for the advices. Will send a v2 patch soon. Thanks. On 08/19/2014 04:04 AM, Michael S. Tsirkin wrote: > On Mon, Aug 18, 2014 at 03:58:33PM +0200, Paolo Bonzini wrote: >> Il 18/08/2014 15:56, Michael S. Tsirkin ha scritto: >>>> +/* Initialize PCDIMMDevice->node to -1 so that even if user doesn't specify >>>> + * any numa option, PCDIMMDevice->node won't be 0, which indicates node0. >>>> + * In this case, SRAT won't be created, and guest kernel will fake a node. >>>> + */ >>> I think you simply mean >>> /* default value for PCDIMMDevice->node (unless specified by user) */ >>> >>>> +#define NO_NODE_ID -1 >> I think a comment about the SRAT would be useful. >> >> Paolo > OK so add: > > /* In this case, SRAT won't be created. */ > . >