From patchwork Mon Oct 1 18:57:17 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 147927 Delivered-To: patch@linaro.org Received: by 2002:a2e:8595:0:0:0:0:0 with SMTP id b21-v6csp4263582lji; Mon, 1 Oct 2018 11:59:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV630CqTRQMJFMxoJpgz9V+FtEesTUAJaJ6IBmKJ84Xnaq0yQ5RRf2ftpO+8Fpl4a3cIIFwcO X-Received: by 2002:a24:c782:: with SMTP id t124-v6mr11441102itg.137.1538420396600; Mon, 01 Oct 2018 11:59:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538420396; cv=none; d=google.com; s=arc-20160816; b=QczVNw5jpfCidzGY5Iy4zTOOxNsJXc3z9NKJct2cDmDS5CjzMhvCtxPZfIrHs7MShU 55l00CwVErHmxBlawEBOj9ea+AO2HTXF+jJQCK8QyRMOsKEuVplXM/RtHr+xtVkljHEy E1l/ZRBL9smuqDMZUqVIoXrTDPyG+oD1TWjo/R7jz8iS1Mbt27s4Le9BHPQECje+RC50 mwcSWpItRSdOA7xY8uVVN0ypR2E/q6dtuAux7ykfo2c8Q8d3XO7QuKBkYHxM+y9IZCnL Iue3m3ce4qZ9nJz9J07Vism3tmwpPnYPoDpJG6Vl91513HNX4aeWhTO/InEnjUi1qDDz jK5A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-unsubscribe:list-id:precedence:subject :mime-version:references:in-reply-to:message-id:date:to:from; bh=cvoFL3gGM+N3e89GDElYvujOQc2Xbyebq+JTZteNUEE=; b=v730EIl9mjm/5e4gncd3Iz59BsZcrck+HySbACN3910QgD8cLbxcpgsNnXVfxV4Bs3 a5mcJ3hd6fAhmEetLpCysYGABXp6Q5T26/A4/JyKNwaULtex3EI9/x7KQ+pLUUcn1skB uPT8bcOWgFeqLWCD/du58/ok0GRoGyAh+rJ6PF3nBHueaHvyU5dzNqjA2HCP2aLZVdz3 9Ea1IxhjLRw9fEfK1G2pD6r+UXuG0Aa7a4xJc5qfSGZWxoazFMg1hu1QG+v7tBiLvCd2 IBdRR87iT6nL66it2QkGRI+rq3Ms/a/PNjAWsJtb5sEuLpxxIs2ebNIVsfjJJUOJVd8R s9+w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id q185-v6si6853119itb.115.2018.10.01.11.59.56 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Oct 2018 11:59:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1g73Ns-0001FD-IJ; Mon, 01 Oct 2018 18:57:32 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1g73Nr-0001F5-Cf for xen-devel@lists.xenproject.org; Mon, 01 Oct 2018 18:57:31 +0000 X-Inumbo-ID: 02cf32bc-c5ac-11e8-a6a9-d7ebe60f679a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 02cf32bc-c5ac-11e8-a6a9-d7ebe60f679a; Mon, 01 Oct 2018 18:58:40 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 666341596; Mon, 1 Oct 2018 11:57:29 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.emea.arm.com [10.4.12.35]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 28C4B3F5B7; Mon, 1 Oct 2018 11:57:28 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 1 Oct 2018 19:57:17 +0100 Message-Id: <20181001185721.15467-2-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20181001185721.15467-1-julien.grall@arm.com> References: <20181001185721.15467-1-julien.grall@arm.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH v3 1/3] tools/libxl: Rename libxl__arch_domain_build_info_acpi_setdefault to... X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: wei.liu2@citrix.com, Julien Grall , sstabellini@kernel.org, ian.jackson@eu.citrix.com, roger.pau@citrix.com Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" libxl__arch_domain_build_info_setdefault A follow-up will require to modify default of multiple fields of build_info. So rename the function accordingly. No functional change. Signed-off-by: Julien Grall Reviewed-by: Roger Pau Monné Acked-by: Wei Liu --- Changes in v3: - Add Roger's reviewed-by - Add Wei's acked-by --- tools/libxl/libxl_arch.h | 3 +-- tools/libxl/libxl_arm.c | 4 ++-- tools/libxl/libxl_create.c | 2 +- tools/libxl/libxl_x86.c | 3 +-- 4 files changed, 5 insertions(+), 7 deletions(-) diff --git a/tools/libxl/libxl_arch.h b/tools/libxl/libxl_arch.h index c8ccaaf14c..5ab0c95974 100644 --- a/tools/libxl/libxl_arch.h +++ b/tools/libxl/libxl_arch.h @@ -65,8 +65,7 @@ _hidden int libxl__arch_domain_map_irq(libxl__gc *gc, uint32_t domid, int irq); _hidden -void libxl__arch_domain_build_info_acpi_setdefault( - libxl_domain_build_info *b_info); +void libxl__arch_domain_build_info_setdefault(libxl_domain_build_info *b_info); _hidden int libxl__arch_extra_memory(libxl__gc *gc, diff --git a/tools/libxl/libxl_arm.c b/tools/libxl/libxl_arm.c index baa0d38e01..699fd9ddc6 100644 --- a/tools/libxl/libxl_arm.c +++ b/tools/libxl/libxl_arm.c @@ -1110,9 +1110,9 @@ int libxl__arch_domain_map_irq(libxl__gc *gc, uint32_t domid, int irq) return xc_domain_bind_pt_spi_irq(CTX->xch, domid, irq, irq); } -void libxl__arch_domain_build_info_acpi_setdefault( - libxl_domain_build_info *b_info) +void libxl__arch_domain_build_info_setdefault(libxl_domain_build_info *b_info) { + /* ACPI is disabled by default */ libxl_defbool_setdefault(&b_info->acpi, false); } diff --git a/tools/libxl/libxl_create.c b/tools/libxl/libxl_create.c index dcfde7787e..580320d272 100644 --- a/tools/libxl/libxl_create.c +++ b/tools/libxl/libxl_create.c @@ -215,7 +215,7 @@ int libxl__domain_build_info_setdefault(libxl__gc *gc, if (!b_info->event_channels) b_info->event_channels = 1023; - libxl__arch_domain_build_info_acpi_setdefault(b_info); + libxl__arch_domain_build_info_setdefault(b_info); libxl_defbool_setdefault(&b_info->dm_restrict, false); switch (b_info->type) { diff --git a/tools/libxl/libxl_x86.c b/tools/libxl/libxl_x86.c index 6f670b03b5..81523a568f 100644 --- a/tools/libxl/libxl_x86.c +++ b/tools/libxl/libxl_x86.c @@ -613,8 +613,7 @@ int libxl__arch_domain_finalise_hw_description(libxl__gc *gc, return rc; } -void libxl__arch_domain_build_info_acpi_setdefault( - libxl_domain_build_info *b_info) +void libxl__arch_domain_build_info_setdefault(libxl_domain_build_info *b_info) { libxl_defbool_setdefault(&b_info->acpi, true); }