From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aYdvK-0005nY-5o for mharc-grub-devel@gnu.org; Wed, 24 Feb 2016 13:12:30 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49284) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYdvF-0005lO-02 for grub-devel@gnu.org; Wed, 24 Feb 2016 13:12:28 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aYdvA-0005rO-12 for grub-devel@gnu.org; Wed, 24 Feb 2016 13:12:24 -0500 Received: from mail-lb0-x235.google.com ([2a00:1450:4010:c04::235]:34385) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aYdv9-0005r7-Og for grub-devel@gnu.org; Wed, 24 Feb 2016 13:12:19 -0500 Received: by mail-lb0-x235.google.com with SMTP id of3so15166050lbc.1 for ; Wed, 24 Feb 2016 10:12:19 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:cc:from:message-id:date:user-agent :mime-version:in-reply-to:content-type:content-transfer-encoding; bh=O2S2L9MHQKBrf1gjGYc+58oWXDZHjb3XHWTfszrvyfs=; b=E4OsRpugK/RELh6UBwi+nx0CJFg/rQjH05qaRtgerPfgpGu5/KDkMC2qSF1D6VZNF6 tOiqU6uOQ1CSiYeggQVDwkQx8+H6w1W7izo/3ihdL9sWcuGJ/L3M5Br82t+6G7AtuV54 O45Wa3+HD/tPK53mrmZapfny/uzEpNIHyWM789pcIujX+4Ykk0XJDtSp/1sgv9GRb8hK L3j4YU3J7JanypCMxz42gZ2x9GIPLCaJ//zPlgOAuaK1eVjahuAFwJVTM+EzGSQx3LhL H6IBIHieDXFZ/+c+Jm4st44VFwrMW7+ruDfDPlo1QE5JStLLumTeQr7z8yXFsH3e94jI MmkA== 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-type :content-transfer-encoding; bh=O2S2L9MHQKBrf1gjGYc+58oWXDZHjb3XHWTfszrvyfs=; b=PEODk5eu9utUxw0A78QrbQj1x7xwPpZwx0h8DROkFftk44bf32Y5iCJruNP3aZmdmp TZXDHGWGMMzRZQFAFXE/Y0+5Rsn8KOS+bSXDMY8K9Wx80rKXhDA8+lN9sK42uWc4nuHd RRbt5RcD4fcy1XZiIXzKcBOI3QbORQi45lM2Qzm2w7u6L+GFl1dVO4nVibB0eqtF8mw2 6KVnEQtfJAUzikYvBnlwyzT7iWfOKzInauZkYoONttX4pHVIAKjgttkyOvRPffOAo2BG NOMb6AQ7lUVITOJVbDRCbN+G7DFUxuBEMH/W+gNyFUO73W2f/m590G+GSWhKLqrg4spn HECQ== X-Gm-Message-State: AG10YOSvPhOvvClxgHQwexs+/aqM7Rx6C5+3Umpx+EAFCej927FFsoN+GtpqxwHW3XLQzg== X-Received: by 10.112.166.100 with SMTP id zf4mr14980548lbb.58.1456337538921; Wed, 24 Feb 2016 10:12:18 -0800 (PST) Received: from [192.168.1.41] (ppp109-252-76-159.pppoe.spdop.ru. [109.252.76.159]) by smtp.gmail.com with ESMTPSA id cc7sm530743lbd.11.2016.02.24.10.12.17 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 24 Feb 2016 10:12:18 -0800 (PST) Subject: Re: [PATCH 1/3] arm64: add grub_xen_boot env to indicate that we have xen_* commands To: fu.wei@linaro.org, grub-devel@gnu.org, phcoder@gmail.com References: <1456336901-25708-1-git-send-email-fu.wei@linaro.org> <1456336901-25708-2-git-send-email-fu.wei@linaro.org> From: Andrei Borzenkov Message-ID: <56CDF280.3040602@gmail.com> Date: Wed, 24 Feb 2016 21:12:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <1456336901-25708-2-git-send-email-fu.wei@linaro.org> Content-Type: text/plain; charset=windows-1251 Content-Transfer-Encoding: 8bit X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:4010:c04::235 Cc: xen-devel@lists.xensource.com, Ian.Campbell@citrix.com, jcm@redhat.com, julien.grall@linaro.org, leif.lindholm@linaro.org, linaro-uefi@lists.linaro.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 24 Feb 2016 18:12:28 -0000 24.02.2016 21:01, fu.wei@linaro.org пишет: > From: Fu Wei > > Signed-off-by: Fu Wei > --- > grub-core/loader/arm64/xen_boot.c | 8 ++++++++ > 1 file changed, 8 insertions(+) > > diff --git a/grub-core/loader/arm64/xen_boot.c b/grub-core/loader/arm64/xen_boot.c > index 8ae43d7..ef03111 100644 > --- a/grub-core/loader/arm64/xen_boot.c > +++ b/grub-core/loader/arm64/xen_boot.c > @@ -20,6 +20,7 @@ > #include > #include > #include > +#include > #include > #include > #include > @@ -490,10 +491,17 @@ GRUB_MOD_INIT (xen_boot) > grub_register_command ("xen_module", grub_cmd_xen_module, 0, > N_("Load a xen module.")); > my_mod = mod; > + > +/* setup a env to indicate that > + * we have xen_* commands. > + */ > + grub_env_set ("grub_xen_boot", "y"); > + grub_env_export ("grub_xen_boot"); > } Please define feature for it, see grub-core/normal/main.c. > > GRUB_MOD_FINI (xen_boot) > { > grub_unregister_command (cmd_xen_hypervisor); > grub_unregister_command (cmd_xen_module); > + grub_env_unset ("grub_xen_boot"); > } >