From mboxrd@z Thu Jan 1 00:00:00 1970 Received: by 2002:a19:e20e:0:0:0:0:0 with SMTP id z14csp458133lfg; Fri, 14 May 2021 06:49:44 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzukQp66R1uwJtYt37Z7N59HejPNJ4ifgY+e+9T0KcFXpSZniUr+ZYH1qScM4V11idsp+I3 X-Received: by 2002:a05:6638:37a6:: with SMTP id w38mr42642119jal.106.1621000184463; Fri, 14 May 2021 06:49:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1621000184; cv=none; d=google.com; s=arc-20160816; b=zvcFGXQALSaAcFeOasUglcfOPkbz0RxR0P/DqOcDEI/+ASP3U/EB0t+9L7tzway2qO cVgnJNvuzYFnG0KctBg41dzu1MC1Ge12A2GvNzwo5LDgIl+gD310RKZCcQmvi1XsNxJl BrCJw22iUC1YjkfsKE409xEjV7EqDcLp2ndKLv2XMChOPptm4sC2aXHF9Io2XIHKk8/M tspnlTiO4MymuYiUIlRQe5ldizDtPVHiBUY22evOutQITQZ67O9epL8Jlq5mUegBa0Ew h2Eo5TcGGnvu/TgNpAIao+kgY2mDW6+We+WIpMFyswYf9pifjq/72MEFgkju8Ch4O66a oJ6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-disposition:in-reply-to :mime-version:references:message-id:subject:to:from:date :dkim-signature; bh=8NQnATMMwLcSfxyjGe3R7vV9VD2kXYHHaVjzezCXllw=; b=CcSJJk/vAT0HvemEKOP95QsinjSMDfewhK+eFtnxUQ+ISyNnS6t7acQ8QIWIxcRMBo 3LnhT8m2a7KlmDksbyjRzoac61ZJ5lUxG/2Bcntr51MEYS3J91YWYb3RWj+ZwiuT+mth 1CY+i88qAsHC/heZeAhPsxRqF7/pWPaVI4jtw6BX5KZo7VoafuhnMLbZgrKJ6QXujmVS zCEVcubbeTOz/K9/foe91JfVTZVRTJHDt9s0/U/BvTSZ+hF1nDJKlOMQXObiDzUQfleF a91wLmpkb3KBgL/CbAjyzxgCBuojl3Uj9QvOTJsKzZUXB1Ij25GKHA0U12E26Tqz/hk6 0ilw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=TbEVOFbp; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id l10si8754131iow.11.2021.05.14.06.49.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 14 May 2021 06:49:44 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@redhat.com header.s=mimecast20190719 header.b=TbEVOFbp; spf=pass (google.com: domain of qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from localhost ([::1]:36664 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lhYCF-00061c-QF for alex.bennee@linaro.org; Fri, 14 May 2021 09:49:43 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:45796) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhYBZ-0005Ak-Ke for qemu-devel@nongnu.org; Fri, 14 May 2021 09:49:01 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:52781) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lhYBX-0003L4-8O for qemu-devel@nongnu.org; Fri, 14 May 2021 09:49:01 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1621000138; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=8NQnATMMwLcSfxyjGe3R7vV9VD2kXYHHaVjzezCXllw=; b=TbEVOFbpPDbCEWoIY17PnnPcS72gtmuX2loXkHGNZKKBsH83KaHBePokeXATzVhUP2J0ZV rw23nHKDsjlxcYerI/xnl1Wai12bbdBN7/fD0/lDvn8CS6AXtLhKXi4PhcWVPrhnvmOurR w3B2r6xOIK+DHaFP66Rft0a3Ha1xY7M= Received: from mail-wm1-f71.google.com (mail-wm1-f71.google.com [209.85.128.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-396-yVqpu2ChMN-OhANiALk-ig-1; Fri, 14 May 2021 09:48:57 -0400 X-MC-Unique: yVqpu2ChMN-OhANiALk-ig-1 Received: by mail-wm1-f71.google.com with SMTP id c138-20020a1c9a900000b0290173dd9788cdso103217wme.4 for ; Fri, 14 May 2021 06:48:56 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=8NQnATMMwLcSfxyjGe3R7vV9VD2kXYHHaVjzezCXllw=; b=CDym/ucYR5ayCNlGx2DGLHOIBaXbgGiX8rM3UET3Iv3YNLmQ/sFI2fBXx8UKIAEkIb rqVkY9VZclSTbWCmdhGIgAxXa9SUgK9mLpmGuc3vVejW/R6Xvc5WN5ujSvCrSTigwsRc 9mO2qrQbM5sdGYbSWYH3i5Jd+X7erBXYOHzaxt3JrHtJuJyCEUlAMDBq88M/qrpZNexi 1UG+UyQ3+W76az7Toeg6W/nP8bKSQwlQBQdwrZJ8bV646RzJmN9m90eHRVVM+zoKCX6x SVC/+i5/OrHU8oLh1OvOyy/0Zdz2s1XwRUuHXDOv+4Ti/GcuaH5QJka9Wl5f3J8zSzYl uBdQ== X-Gm-Message-State: AOAM531kzpg1ziC25vhXuuffArVzGTn+Z0HuY8HsC2v/Ua5/0qXN+RRC 9Gl2QWNperxOtZExl4IZ1dUK7duaDLZAQVH64FpRZUiRW0urbwVbLy64ISU4G4Dn9+Xt12b+781 0yH+/cs78B2sOwgA= X-Received: by 2002:a5d:670c:: with SMTP id o12mr7109895wru.223.1621000135818; Fri, 14 May 2021 06:48:55 -0700 (PDT) X-Received: by 2002:a5d:670c:: with SMTP id o12mr7109866wru.223.1621000135566; Fri, 14 May 2021 06:48:55 -0700 (PDT) Received: from redhat.com (bzq-79-181-160-222.red.bezeqint.net. [79.181.160.222]) by smtp.gmail.com with ESMTPSA id p7sm6550245wrt.24.2021.05.14.06.48.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 May 2021 06:48:55 -0700 (PDT) Date: Fri, 14 May 2021 09:48:51 -0400 From: "Michael S. Tsirkin" To: Marian Postevca Subject: Re: [PATCH v4 0/1] Rework ACPI OEM fields handling to simplify code (was: acpi: Remove duplicated code handling OEM ID and OEM table ID fields) Message-ID: <20210514094819-mutt-send-email-mst@kernel.org> References: <20210401202928.16082-1-posteuca@mutex.one> MIME-Version: 1.0 In-Reply-To: <20210401202928.16082-1-posteuca@mutex.one> Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=mst@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Received-SPF: pass client-ip=170.10.133.124; envelope-from=mst@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: -34 X-Spam_score: -3.5 X-Spam_bar: --- X-Spam_report: (-3.5 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.699, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Xiao Guangrong , Richard Henderson , qemu-devel@nongnu.org, Dongjiu Geng , Shannon Zhao , Xiang Zheng , qemu-arm@nongnu.org, Igor Mammedov , Paolo Bonzini , Eduardo Habkost Errors-To: qemu-devel-bounces+alex.bennee=linaro.org@nongnu.org Sender: "Qemu-devel" X-TUID: J3d5TmzBBScc On Thu, Apr 01, 2021 at 11:29:27PM +0300, Marian Postevca wrote: > This patch consolidates ACPI OEM fields handling > by: > - Moving common code in PC and MICROVM to X86. > - Changes unnecessary dynamic memory allocation to static allocation > - Uses dedicated structure to keep values of fields instead of two > separate strings > - Adds helper functions to initialize the structure I'd like to apply this, could you please rebase on top of my tree? Conflicts with some changes there. > v2: > - Move the setters/getters of OEM fields to X86MachineState to > remove duplication > - Change commit message to make it clear the second commit is > a re-factor > > v3: > - Rebase "acpi: Consolidate the handling of OEM ID and OEM > Table ID fields to latest" to latest HEAD > - Dropped "acpi: Move setters/getters of oem fields to > X86MachineState" since it was accepted already > > v4: > - Drop helper macros and use static inline functions instead > - Removed variables starting with __ > - Used consistent naming for helper functions that start with ACPI_BUILD_OEM_* > - Didn't drop the defines ACPI_BUILD_APPNAME6 and ACPI_BUILD_APPNAME8 since > ACPI_BUILD_APPNAME8 is still used in build_header() in aml-build.c and it > feels better to keep them defined together. But if others prefer to drop the > ACPI_BUILD_APPNAME6 define, will resend the patch. > > Marian Postevca (1): > acpi: Consolidate the handling of OEM ID and OEM Table ID fields > > hw/acpi/hmat.h | 2 +- > hw/i386/acpi-common.h | 2 +- > include/hw/acpi/acpi-build-oem.h | 61 +++++++++++++++++++++++++ > include/hw/acpi/aml-build.h | 15 +++--- > include/hw/acpi/ghes.h | 2 +- > include/hw/acpi/pci.h | 2 +- > include/hw/acpi/vmgenid.h | 2 +- > include/hw/arm/virt.h | 4 +- > include/hw/i386/x86.h | 4 +- > include/hw/mem/nvdimm.h | 4 +- > hw/acpi/aml-build.c | 27 ++++++----- > hw/acpi/ghes.c | 5 +- > hw/acpi/hmat.c | 4 +- > hw/acpi/nvdimm.c | 22 +++++---- > hw/acpi/pci.c | 4 +- > hw/acpi/vmgenid.c | 6 ++- > hw/arm/virt-acpi-build.c | 40 ++++++---------- > hw/arm/virt.c | 16 +++---- > hw/i386/acpi-build.c | 78 +++++++++++++++----------------- > hw/i386/acpi-common.c | 4 +- > hw/i386/acpi-microvm.c | 13 ++---- > hw/i386/x86.c | 19 ++++---- > 22 files changed, 188 insertions(+), 148 deletions(-) > create mode 100644 include/hw/acpi/acpi-build-oem.h > > -- > 2.26.2