From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46102) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm2ew-0000r0-Do for qemu-devel@nongnu.org; Tue, 13 Oct 2015 12:42:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm2es-0007Q4-Ad for qemu-devel@nongnu.org; Tue, 13 Oct 2015 12:42:42 -0400 Received: from mga09.intel.com ([134.134.136.24]:32968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm2es-0007Px-5e for qemu-devel@nongnu.org; Tue, 13 Oct 2015 12:42:38 -0400 References: <1444535584-18220-1-git-send-email-guangrong.xiao@linux.intel.com> <1444535584-18220-4-git-send-email-guangrong.xiao@linux.intel.com> <20151013143822.4a3ebc47@nial.brq.redhat.com> From: Xiao Guangrong Message-ID: <561D3309.5000300@linux.intel.com> Date: Wed, 14 Oct 2015 00:36:25 +0800 MIME-Version: 1.0 In-Reply-To: <20151013143822.4a3ebc47@nial.brq.redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 03/32] acpi: add aml_create_field List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Igor Mammedov Cc: ehabkost@redhat.com, kvm@vger.kernel.org, mst@redhat.com, gleb@kernel.org, mtosatti@redhat.com, qemu-devel@nongnu.org, stefanha@redhat.com, pbonzini@redhat.com, dan.j.williams@intel.com, rth@twiddle.net On 10/13/2015 08:38 PM, Igor Mammedov wrote: > On Sun, 11 Oct 2015 11:52:35 +0800 > Xiao Guangrong wrote: > >> Implement CreateField term which is used by NVDIMM _DSM method in later patch >> >> Signed-off-by: Xiao Guangrong >> --- >> hw/acpi/aml-build.c | 13 +++++++++++++ >> include/hw/acpi/aml-build.h | 1 + >> 2 files changed, 14 insertions(+) >> >> diff --git a/hw/acpi/aml-build.c b/hw/acpi/aml-build.c >> index a72214d..9fe5e7b 100644 >> --- a/hw/acpi/aml-build.c >> +++ b/hw/acpi/aml-build.c >> @@ -1151,6 +1151,19 @@ Aml *aml_sizeof(Aml *arg) >> return var; >> } >> >> +/* ACPI 1.0b: 16.2.5.2 Named Objects Encoding: DefCreateField */ >> +Aml *aml_create_field(Aml *srcbuf, Aml *index, Aml *len, const char *name) > you haven't addressed v2 comment wrt index, len > https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg00435.html Ah, i forgot to mention that the index/len can be determined at runtime: aml_append(_method_, aml_create_field(aml_name("ODAT"), aml_int(0),\ aml_local(6) , "OBUF")); That why i kept these as "aml *" and sorry for i failed to log it in patch 0.