Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1391626
| Path | csiph.com!news.freedyn.net!aioe.org!bofh.it!news.nic.it!robomod |
|---|---|
| From | Shannon Zhao <shannon.zhao@linaro.org> |
| Newsgroups | linux.kernel |
| Subject | Re: efi_enabled(EFI_PARAVIRT) use |
| Date | Sat, 30 Apr 2016 16:20:01 +0200 |
| Message-ID | <rtDUt-IU-7@gated-at.bofh.it> (permalink) |
| References | <rt8dX-8gG-1@gated-at.bofh.it> <rtafL-1n2-1@gated-at.bofh.it> <rte02-4gY-25@gated-at.bofh.it> <rthKi-7Bl-7@gated-at.bofh.it> <rti3F-7N6-69@gated-at.bofh.it> |
| Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-transfer-encoding; bh=qXqTuu0gIWcXAud4hk92geHHyRAUjfcvU8Ig967crD4=; b=LnbfXh0qvXyWNBUAuXFHcI8ZnRI8s+OKZ9oQ9VbGwECKoDVHKrSijpwuKphk8w/HHK w+ksozgL8L2O3lx6VR5usIknGDQw5u7dZWUG5azN+8/LXGXBmhh0Zigzs0YeLBN/EmCB kuk7aun5fekNh78VD2SzVRfjq+CJVbFVb14f8= |
| X-Google-Dkim-Signature | v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding; bh=qXqTuu0gIWcXAud4hk92geHHyRAUjfcvU8Ig967crD4=; b=GkDgLAbXCg5sLzzdLlD6TVfpmrBtRXEl9amMjUntTXLUh86+2jZQQb81WV5p1h6DJC CwOVGlL5RIiWLAVMIHNO073269v6qkQNdgaZXT3Kc+b3/q1XMcd7a5EVCIm1Tg5/rqwu CK8noVth7j+RLRIYT4x59VM/F90LAUnYi9c+SWZY4QQRml6JgxCR7fJhMjziowOVVzuT hUWo5LNTwVH9aJPcQZcmYexmjEKdXN4ekEj4fvUtfyafk5kUg1LgZkXtk3N7Cqab1lXD m0bXm/8p2iW2ncfh1y4jVAAL50Y4hqhMfKLjabetpDNH/rg2TdiD8ryNSN/rJrkA6b5J 8dpA== |
| X-Gm-Message-State | AOPr4FVSDKfaXjW+E4F+IMTUHLla8v9hpQDID+PUDpzcfNHGhUrtGMSIDnkp8vTp/NgGEDqZ |
| X-Received | by 10.98.35.12 with SMTP id j12mr37395639pfj.73.1462025699734; Sat, 30 Apr 2016 07:14:59 -0700 (PDT) |
| User-Agent | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | 8bit |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 62 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | Stefano Stabellini <sstabellini@kernel.org>, Ingo Molnar <mingo@kernel.org>, Stephen Rothwell <sfr@canb.auug.org.au>, "Luis R. Rodriguez" <mcgrof@kernel.org>, Jeremy Fitzhardinge <jeremy@goop.org>, Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>, Stefano Stabellini <stefano.stabellini@eu.citrix.com>, Xen Devel <Xen-devel@lists.xensource.com>, Thomas Gleixner <tglx@linutronix.de>, Ingo Molnar <mingo@elte.hu>, "H. Peter Anvin" <hpa@zytor.com>, Peter Zijlstra <peterz@infradead.org>, linux-next@vger.kernel.org, "linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>, Borislav Petkov <bp@alien8.de> |
| X-Original-Date | Sat, 30 Apr 2016 22:14:42 +0800 |
| X-Original-Message-ID | <5724BDD2.5020600@linaro.org> |
| X-Original-References | <20160429142020.4499e185@canb.auug.org.au> <20160429063936.GA28320@gmail.com> <alpine.DEB.2.10.1604291123260.3312@sstabellini-ThinkPad-X260> <20160429143931.GG2839@codeblueprint.co.uk> <CAKv+Gu_k45_r0mke6ELb3Pi05BnJiEMqweJRfsy7S55FzCpF7Q@mail.gmail.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | csiph.com linux.kernel:1391626 |
Show key headers only | View raw
On 2016年04月29日 22:53, Ard Biesheuvel wrote: > On 29 April 2016 at 16:39, Matt Fleming <matt@codeblueprint.co.uk> wrote: >> On Fri, 29 Apr, at 11:34:45AM, Stefano Stabellini wrote: >>> On Fri, 29 Apr 2016, Ingo Molnar wrote: >>>> Also, it would be nice to have all things EFI in a single tree, the conflicts are >>>> going to be painful! There's very little reason not to carry this kind of commit: >>>> >>>> arch/arm/xen/enlighten.c | 6 +++++ >>>> drivers/firmware/efi/arm-runtime.c | 17 +++++++++----- >>>> drivers/firmware/efi/efi.c | 45 ++++++++++++++++++++++++++++++++------ >>>> 3 files changed, 56 insertions(+), 12 deletions(-) >>>> >>>> in the EFI tree. >>> >>> That's true. I'll drop this commit from xentip and let Matt pick it up >>> or request changes as he sees fit. >> >> One small change I think would be sensible to make is to expand >> EFI_PARAVIRT into a few more bits to clearly indicate the quirks on >> Xen, and in the process, to delete EFI_PARAVIRT. >> Sure. How should I add this change? Rework this patch or add new one on top of it? >> That should address Ingo's major concern, and also make it much easier >> to rework the code in a piecemeal fashion. >> >> Could somebody enumerate the things that make Xen (dom0) different on >> arm* compared with bare metal EFI boot? The list I made for x86 was, >> >> 1. Has no EFI memory map >> 2. Runtime regions do not need to be mapped >> 3. Cannot call SetVirtualAddressMap() >> 4. /sys/firmware/efi/fw_vendor is invisible >> >> The first maps to not setting EFI_MEMMAP, the second to not setting >> EFI_RUNTIME. If we add EFI_ALREADY_VIRTUAL and EFI_FW_VENDOR_INVISIBLE >> to efi.flags that should cover everything on x86. Does arm* require >> anything else? > > I already proposed when this patch was first under review to make the > arm_enable_runtime_services() function bail early without error if the > EFI_RUNTIME_SERVICES flag is already set, and the xen code could set > that bit as well when it installs its paravirtualized alternatives. I > don't remember exactly why that was shot down, though, but I think it > is the only reason this code introduces references to EFI_PARAVIRT in > the first place. > Yes, in this patch we could set EFI_RUNTIME_SERVICES flag in fdt_find_hyper_node instead of setting EFI_PARAVIRT flag, and then bail out early in arm_enable_runtime_services() as you said. Then call xen_efi_runtime_setup() in xen_guest_init(). While I still have a question, in this patch we use efi_enabled(EFI_PARAVIRT) as a condition to make fdt_find_uefi_params() and efi_get_fdt_params() execute different ways. So it needs to find a new condition for that if we need to get rid of EFI_PARAVIRT. One I think is that xen_initial_domain() check. Is that fine? Thanks, -- Shannon
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
linux-next: manual merge of the xen-tip tree with the tip tree Stephen Rothwell <sfr@canb.auug.org.au> - 2016-04-29 06:30 +0200
Re: efi_enabled(EFI_PARAVIRT) use Ingo Molnar <mingo@kernel.org> - 2016-04-29 08:40 +0200
Re: efi_enabled(EFI_PARAVIRT) use Borislav Petkov <bp@alien8.de> - 2016-04-29 10:30 +0200
Re: efi_enabled(EFI_PARAVIRT) use Matt Fleming <matt@codeblueprint.co.uk> - 2016-04-29 11:30 +0200
Re: efi_enabled(EFI_PARAVIRT) use Stefano Stabellini <sstabellini@kernel.org> - 2016-04-29 12:40 +0200
Re: efi_enabled(EFI_PARAVIRT) use Ingo Molnar <mingo@kernel.org> - 2016-04-29 12:50 +0200
Re: efi_enabled(EFI_PARAVIRT) use Matt Fleming <matt@codeblueprint.co.uk> - 2016-04-29 16:40 +0200
Re: efi_enabled(EFI_PARAVIRT) use Ard Biesheuvel <ard.biesheuvel@linaro.org> - 2016-04-29 17:00 +0200
Re: efi_enabled(EFI_PARAVIRT) use Shannon Zhao <shannon.zhao@linaro.org> - 2016-04-30 16:20 +0200
Re: efi_enabled(EFI_PARAVIRT) use Matt Fleming <matt@codeblueprint.co.uk> - 2016-04-30 22:50 +0200
Re: efi_enabled(EFI_PARAVIRT) use Shannon Zhao <shannon.zhao@linaro.org> - 2016-05-01 05:30 +0200
Re: efi_enabled(EFI_PARAVIRT) use Matt Fleming <matt@codeblueprint.co.uk> - 2016-05-01 15:30 +0200
Re: efi_enabled(EFI_PARAVIRT) use Shannon Zhao <shannon.zhao@linaro.org> - 2016-05-01 16:40 +0200
Re: efi_enabled(EFI_PARAVIRT) use Matt Fleming <matt@codeblueprint.co.uk> - 2016-05-02 12:50 +0200
Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use Shannon Zhao <zhaoshenglong@huawei.com> - 2016-05-03 03:50 +0200
Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use Matt Fleming <matt@codeblueprint.co.uk> - 2016-05-04 13:40 +0200
Re: [Xen-devel] efi_enabled(EFI_PARAVIRT) use Shannon Zhao <zhaoshenglong@huawei.com> - 2016-05-03 11:20 +0200
Re: efi_enabled(EFI_PARAVIRT) use Stefano Stabellini <sstabellini@kernel.org> - 2016-04-29 17:00 +0200
Re: efi_enabled(EFI_PARAVIRT) use Stefano Stabellini <sstabellini@kernel.org> - 2016-04-29 17:40 +0200
Re: efi_enabled(EFI_PARAVIRT) use Shannon Zhao <shannon.zhao@linaro.org> - 2016-04-30 16:10 +0200
csiph-web