Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.4 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1E9CC43463 for ; Mon, 21 Sep 2020 11:52:36 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id A07A920773 for ; Mon, 21 Sep 2020 11:52:36 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="Y+5sjkjY" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org A07A920773 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass 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.92) (envelope-from ) id 1kKKMm-00016M-M7; Mon, 21 Sep 2020 11:52:20 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kKKMl-00015m-Ek for xen-devel@lists.xenproject.org; Mon, 21 Sep 2020 11:52:19 +0000 X-Inumbo-ID: 718ed780-d9ac-46bc-908a-efa3ed42c178 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 718ed780-d9ac-46bc-908a-efa3ed42c178; Mon, 21 Sep 2020 11:52:18 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1600689138; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=270lLpQPb2A+WNdGLQe8zzREdBSvFg6p0egSJjvaUUk=; b=Y+5sjkjYOenYJHok8nCrGwg7bEaZYHpvxCf9IusdrmQZnNX18eAIfivrar0JfDE+5FoJyB hAvskLL/48Y33G/AH2Zux+gCZnhCvnGyiMn2isuZswZ08QC/l6Uh8lfdsL1PNCUudER9C/ e0sUw/I9hLSekTBK6l3+fIDFDkn7RAw= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 0EFF4ACC8; Mon, 21 Sep 2020 11:52:54 +0000 (UTC) Subject: Re: [PATCH v5 4/5] efi: Enable booting unified hypervisor/kernel/initrd images To: Trammell Hudson Cc: "xen-devel@lists.xenproject.org" References: <20200917154048.1140580-1-hudson@trmm.net> <20200917154048.1140580-5-hudson@trmm.net> <51b0beda-11bc-a587-d390-63e5613ac309@suse.com> <8SCsKmmE_x1CSekfis7_T8O-sWPNAlOzWW4-X_eiW5-iDudhm8rRmnUf1Ft-i92wHoFVxncXaAYgXI54rK34SxGaf3ihuX0cKXnIt5UOBe4=@trmm.net> From: Jan Beulich Message-ID: <853a449e-17f6-6903-3cf2-63d48fa32b6f@suse.com> Date: Mon, 21 Sep 2020 13:52:17 +0200 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <8SCsKmmE_x1CSekfis7_T8O-sWPNAlOzWW4-X_eiW5-iDudhm8rRmnUf1Ft-i92wHoFVxncXaAYgXI54rK34SxGaf3ihuX0cKXnIt5UOBe4=@trmm.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" On 21.09.2020 13:47, Trammell Hudson wrote: > On Friday, September 18, 2020 11:15 AM, Jan Beulich wrote: >> On 17.09.2020 17:40, Trammell Hudson wrote: >> Instead of forcing the caller to pass in a dot-prefixed name >> and you assuming it's a dot here, how about ... >> ... pe_find_section() looking for '.' followed by ? > > v6 adds a special name compare function to do this with a > CHAR16 section name to avoid the extra s2w() you mentioned. > > (btw, even if the EFI constness patches don't go in, just > making PrintStr cast away the const would allow several of > these startup functions to have const CHAR16* arguments since > the only reason they are non-const is to be able to print) And I'd be happy to approve a patch to this effect, provided it uses an inline function and not a macro to do this wrapping. >> [...] >>> - if ( read_section(loaded_image, ".config", &cfg, NULL) ) >>> - PrintStr(L"Using unified config file\\r\\n"); >> >> Maybe "embedded" instead of "unified"? The config file isn't unified >> after all, it's the Xen binary which is. > > How about "builtin"? That's fine with me as well. Jan