Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp8014027ybn; Tue, 1 Oct 2019 01:38:41 -0700 (PDT) X-Google-Smtp-Source: APXvYqyUzsofcCHXUdC+yTU94iyKU5F7K5bRVuPNlbN+w7CuYYr6AXt8FU508daQRDDb+FDusc1w X-Received: by 2002:aa7:dc55:: with SMTP id g21mr23895825edu.210.1569919121378; Tue, 01 Oct 2019 01:38:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569919121; cv=none; d=google.com; s=arc-20160816; b=zaqGvXo0Pq6WQHEHD06lTxM0N5feuVzMUkT5zpyQGQ+9l5OUua+PjL9m6k9PSJFL/U QSA0ibF0GhFn95hbMqBk4BCIEKSlAZLFNJMqO1Gr2mxpZPSRrwbJAF+gSHwMAOMuo34F eIpS7KK2RuEJKI40F5YaHl3gnDW76pUUo46Ic+W1MNoKV7DT9QqMVo0TtFJNm29Kzq7q nkWdwFDvGYT285z7Bo1ROlsRzQpVADVEyL+Dtik3xz/GybJhxuv1aMnCDVvTe+7OhH9c CL2+mYayhPscUA79TnyHHBn3BIl5BJ9OMFrBKVGU8LIn0BtczFlNLe2MLIwA4DtL0GBH TL8g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=U/WMxnCcuTpgrwFXeaA1dNvddrKT9ZYD8s+RwG/B59g=; b=UuDWFIIURzUqs231DsVVaTWtYSmhM2jccyFz9Q9nr5B5EbJyr/Fi0cGZxZyUlcSLSR HD0aQHxH60PY53zxbXYg/9coYUFsSVkEKoJX8rhQJenmtLDgyOqWXh6eWEfRqbUJ9qyB J33qzH0gy8WWOVklOMMPML/zRB0iQZHU43MD5NLMoxeieY64sgQdOinhSukbK17scbik iVXfiJcWH3z74xKlEqoXG2HQP1X9wXAXWIVWRz8oUSH9sk0TbmR1FrO5thxtbToJ4zEW 661QteDAumXge3/O28FyRtdfA1cFqoQ6AEZI6sAo8vcnz5bGEKf8NatJU7WYKMBE8lBU jstg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j28si10020793eda.161.2019.10.01.01.38.16; Tue, 01 Oct 2019 01:38:41 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732992AbfJAIei (ORCPT + 99 others); Tue, 1 Oct 2019 04:34:38 -0400 Received: from mx2.suse.de ([195.135.220.15]:35822 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729543AbfJAIei (ORCPT ); Tue, 1 Oct 2019 04:34:38 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 6F6FFAF27; Tue, 1 Oct 2019 08:34:36 +0000 (UTC) Subject: Re: [Xen-devel] [PATCH] xen/efi: have a common runtime setup function To: Juergen Gross Cc: x86@kernel.org, linux-arm-kernel@lists.infradead.org, xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org, Borislav Petkov , Catalin Marinas , Russell King , Stefano Stabellini , Will Deacon , Thomas Gleixner , Boris Ostrovsky , Ingo Molnar , "H. Peter Anvin" References: <20191001082534.12067-1-jgross@suse.com> From: Jan Beulich Message-ID: Date: Tue, 1 Oct 2019 10:34:16 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.0 MIME-Version: 1.0 In-Reply-To: <20191001082534.12067-1-jgross@suse.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01.10.2019 10:25, Juergen Gross wrote: > @@ -281,4 +270,26 @@ void xen_efi_reset_system(int reset_type, efi_status_t status, > BUG(); > } > } > -EXPORT_SYMBOL_GPL(xen_efi_reset_system); > + > +/* > + * Set XEN EFI runtime services function pointers. Other fields of struct efi, > + * e.g. efi.systab, will be set like normal EFI. > + */ > +void __init xen_efi_runtime_setup(void) > +{ > + efi.get_time = xen_efi_get_time; > + efi.set_time = xen_efi_set_time; > + efi.get_wakeup_time = xen_efi_get_wakeup_time; > + efi.set_wakeup_time = xen_efi_set_wakeup_time; > + efi.get_variable = xen_efi_get_variable; > + efi.get_next_variable = xen_efi_get_next_variable; > + efi.set_variable = xen_efi_set_variable; > + efi.set_variable_nonblocking = xen_efi_set_variable; > + efi.query_variable_info = xen_efi_query_variable_info; > + efi.query_variable_info_nonblocking = xen_efi_query_variable_info; > + efi.update_capsule = xen_efi_update_capsule; > + efi.query_capsule_caps = xen_efi_query_capsule_caps; > + efi.get_next_high_mono_count = xen_efi_get_next_high_mono_count; > + efi.reset_system = xen_efi_reset_system; > +} > +EXPORT_SYMBOL_GPL(xen_efi_runtime_setup); I don't think exporting an __init function is a good idea, and I also don't see why the function would need exporting had it had the __init dropped. With the line dropped Reviewed-by: Jan Beulich Jan