Re: [Xen-devel] [PATCH 1/2] Fix util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-08-29 Thread Fu Wei Fu
t; > [root@tst063 ~]# > > And no more. > > This patch wraps the invocation of grub-file to be a in subshell > and to process the return value in a conditional. That fixes > the issue. > > RH-BZ 1486002: grub2-mkconfig does not work if xen.gz is installed. > CC: Fu Wei

Re: [Xen-devel] [PATCH v8 0/3] arm64, xen: add xen_boot support into grub-mkconfig

2017-05-15 Thread Fu Wei
+0800, fu@linaro.org wrote: >> >>From: Fu Wei <fu@linaro.org> >> >> >> >>This patchset add xen_boot support into grub-mkconfig for >> >>generating xen boot entrances automatically >> >> >> >>Also up

Re: [Xen-devel] [PATCH v7 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-14 Thread Fu Wei
Hi Vladimir, On 11 May 2017 at 22:25, Fu Wei <fu@linaro.org> wrote: > Hi Vladimir, > > On 11 May 2017 at 06:01, Vladimir 'phcoder' Serbinenko > <phco...@gmail.com> wrote: >> >> >> On Tue, May 9, 2017, 11:02 Fu Wei <fu@linaro.org> wrote: &g

[Xen-devel] [PATCH v8 0/3] arm64, xen: add xen_boot support into grub-mkconfig

2017-05-14 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset add xen_boot support into grub-mkconfig for generating xen boot entrances automatically Also update the docs/grub.texi for new xen_boot commands. ChangeLog: v8: http://lists.gnu.org/archive/html/grub-devel/2017-05/ Delete the red

[Xen-devel] [PATCH v8 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-14 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds the support of xen_boot command for aarch64: xen_hypervisor xen_module These two commands are only for aarch64, since it has its own protocol and commands to boot xen hypervisor and Dom0, but not multiboot. For other archite

[Xen-devel] [PATCH v8 3/3] arm64: update the introduction of xen boot commands in docs/grub.texi

2017-05-14 Thread fu . wei
From: Fu Wei <fu@linaro.org> delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko <phco...@gmail.com> Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Rem

[Xen-devel] [PATCH v8 1/3] arm64: add "--nounzip" option support in xen_module command

2017-05-14 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds "--nounzip" option support in order to be compatible with the module command of multiboot on other architecture, by this way we can simplify grub-mkconfig support code. This patch also allow us to use zip compressed module(l

Re: [Xen-devel] [PATCH v7 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-11 Thread Fu Wei
Hi Vladimir, On 11 May 2017 at 06:01, Vladimir 'phcoder' Serbinenko <phco...@gmail.com> wrote: > > > On Tue, May 9, 2017, 11:02 Fu Wei <fu@linaro.org> wrote: >> >> Hi Vladimir >> >> On 9 May 2017 at 14:59, Vladimir 'phcoder' Serbinenko <phco...

Re: [Xen-devel] [PATCH v7 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-09 Thread Fu Wei
Hi Vladimir On 9 May 2017 at 17:02, Fu Wei <fu@linaro.org> wrote: > Hi Vladimir > > On 9 May 2017 at 14:59, Vladimir 'phcoder' Serbinenko <phco...@gmail.com> > wrote: >> >> >> Le Tue, May 2, 2017 à 9:06 AM, <fu....@linaro.org> a

Re: [Xen-devel] [PATCH v7 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-09 Thread Fu Wei
Hi Vladimir On 9 May 2017 at 14:59, Vladimir 'phcoder' Serbinenko <phco...@gmail.com> wrote: > > > Le Tue, May 2, 2017 à 9:06 AM, <fu@linaro.org> a écrit : >> >> From: Fu Wei <fu@linaro.org> >> >> This patch adds the support of

Re: [Xen-devel] [PATCH v7 1/3] arm64: add "--nounzip" option support in xen_module command

2017-05-09 Thread Fu Wei
Hi Vladimir, On 9 May 2017 at 14:56, Vladimir 'phcoder' Serbinenko <phco...@gmail.com> wrote: > > > Le Tue, May 2, 2017 à 9:06 AM, <fu@linaro.org> a écrit : >> >> From: Fu Wei <fu@linaro.org> >> >> This patch adds "--nounzip"

Re: [Xen-devel] [PATCH v7 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-05 Thread Fu Wei
Hi Julien, On 5 May 2017 at 18:11, Julien Grall <julien.gr...@arm.com> wrote: > Hi Andrew, > > > On 05/05/17 10:01, Andrew Cooper wrote: >> >> On 05/05/17 09:57, Fu Wei wrote: >>> >>> Hi Stefano, >>> >>> On 4 May 20

Re: [Xen-devel] [PATCH v7 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-05 Thread Fu Wei
Hi Andrew, On 5 May 2017 at 17:01, Andrew Cooper <andrew.coop...@citrix.com> wrote: > On 05/05/17 09:57, Fu Wei wrote: >> Hi Stefano, >> >> On 4 May 2017 at 04:53, Stefano Stabellini <sstabell...@kernel.org> wrote: >>> On Wed, 3 May 2017, Andre

Re: [Xen-devel] [PATCH v7 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-05 Thread Fu Wei
Hi Stefano, On 4 May 2017 at 04:53, Stefano Stabellini <sstabell...@kernel.org> wrote: > On Wed, 3 May 2017, Andrew Cooper wrote: >> On 02/05/17 08:06, fu@linaro.org wrote: >> > From: Fu Wei <fu@linaro.org> >> > >> > This patch

Re: [Xen-devel] [PATCH v7 0/3] arm64, xen: add xen_boot support into grup-mkconfig

2017-05-05 Thread Fu Wei
Hi Daniel, On 5 May 2017 at 00:00, Daniel Kiper <dki...@net-space.pl> wrote: > Hey, > > On Tue, May 02, 2017 at 03:06:24PM +0800, fu@linaro.org wrote: >> From: Fu Wei <fu@linaro.org> >> >> This patchset add xen_boot support into grup-mkconf

Re: [Xen-devel] [PATCH v7 0/3] arm64, xen: add xen_boot support into grup-mkconfig

2017-05-02 Thread Fu Wei
Sorry for the typo On 2 May 2017 at 15:06, <fu@linaro.org> wrote: > From: Fu Wei <fu@linaro.org> > > This patchset add xen_boot support into grup-mkconfig for ^ grub2-mkconfig Also in the subject.

[Xen-devel] [PATCH v7 2/3] * util/grub.d/20_linux_xen.in: Add xen_boot command support for aarch64

2017-05-02 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds the support of xen_boot command for aarch64: xen_hypervisor xen_module These two commands are only for aarch64, since it has its own protocol and commands to boot xen hypervisor and Dom0, but not multiboot. For other archite

[Xen-devel] [PATCH v7 0/3] arm64, xen: add xen_boot support into grup-mkconfig

2017-05-02 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset add xen_boot support into grup-mkconfig for generating xen boot entrances automatically Also update the docs/grub.texi for new xen_boot commands. ChangeLog: v7: http://lists.gnu.org/archive/html/grub-devel/2017-05/ Delete patch 0001(v6)

[Xen-devel] [PATCH v7 3/3] arm64: update the introduction of xen boot commands in docs/grub.texi

2017-05-02 Thread fu . wei
From: Fu Wei <fu@linaro.org> delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko <phco...@gmail.com> Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Rem

[Xen-devel] [PATCH v7 1/3] arm64: add "--nounzip" option support in xen_module command

2017-05-02 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds "--nounzip" option support in order to be compatible with the module command of multiboot on other architecture, by this way we can simplify grub-mkconfig support code. This patch also allow us to use zip compressed module(l

[Xen-devel] [PATCH v6 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko <phco...@gmail.com> Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Rem

[Xen-devel] [PATCH v6 3/4] * util/grub.d/20_linux_xen.in: Add xen_boot command support

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds the support of xen_boot command: xen_hypervisor xen_module Also add a new "feature_xen_boot" to indicate this grub support xen_boot command. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/normal/main.c

[Xen-devel] [PATCH v6 1/4] i386, xen: Add xen_hypervisor and xen_module aliases for i386

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/i386/xen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/grub-core/loader/i386/xen.c b/grub-core/loader/i386/xen.c index c4d9689..15b0727 100644 --- a/grub-core/loader/i386

[Xen-devel] [PATCH v6 2/4] arm64: add "--nounzip" option support in xen_module command

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds "--nounzip" option support in order to be compatible with the module command of i386, then we can simplify grub-mkconfig support code. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/arm64/xen_boot.c | 17 +++

[Xen-devel] [PATCH v6 0/4] arm64, xen: add xen_boot support into grup-mkconfig

2016-07-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset add xen_boot support into grup-mkconfig for generating xen boot entrances automatically Also update the docs/grub.texi for new xen_boot commands. This patchset has been tested on Foudation model with a bug fix: http://lists.gnu.org/archiv

Re: [Xen-devel] [PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64

2016-07-26 Thread Fu Wei
Hi all On 22 February 2016 at 17:29, Fu Wei <fu@linaro.org> wrote: > Hi Julien, > > On 20 February 2016 at 00:28, Julien Grall <julien.gr...@linaro.org> wrote: >> Xen is currently crashing because of malformed compatible property for >> the boot module. Th

Re: [Xen-devel] [PATCH v5 3/4] * util/grub.d/20_linux_xen.in: Add xen_boot command support

2016-07-26 Thread Fu Wei
Hi Julien, On 12 July 2016 at 18:21, Julien Grall <julien.gr...@arm.com> wrote: > Hi Fu Wei, > > > On 06/07/16 18:53, fu@linaro.org wrote: >> >> From: Fu Wei <fu@linaro.org> >> >> This patch adds the support of xen_boot command: >>

[Xen-devel] [PATCH v5 0/4] arm64, xen: add xen_boot support into grup-mkconfig

2016-07-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset add xen_boot support into grup-mkconfig for generating xen boot entrances automatically Also update the docs/grub.texi for new xen_boot commands. This patchset has been tested on Foudation model with a bug fix: http://lists.gnu.org/archiv

Re: [Xen-devel] [PATCH v4 0/4] arm64, xen: add xen_boot support into grup-mkconfig

2016-07-06 Thread Fu Wei
Hi Julien, On 5 July 2016 at 18:48, Julien Grall <julien.gr...@arm.com> wrote: > Hi Fu Wei, > > What is the status of this series? IIRC the comments on this version were > minor. Sorry, I missed the suggestion of docs, I have rebased them to latest upstream grub and posted v5

[Xen-devel] [PATCH v5 1/4] i386, xen: Add xen_hypervisor and xen_module aliases for i386

2016-07-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/i386/xen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/grub-core/loader/i386/xen.c b/grub-core/loader/i386/xen.c index c4d9689..15b0727 100644 --- a/grub-core/loader/i386

[Xen-devel] [PATCH v5 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-07-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko <phco...@gmail.com> Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Rem

[Xen-devel] [PATCH v5 3/4] * util/grub.d/20_linux_xen.in: Add xen_boot command support

2016-07-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds the support of xen_boot command: xen_hypervisor xen_module Also add a new "feature_xen_boot" to indicate this grub support xen_boot command. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/normal/main.c

[Xen-devel] [PATCH v5 2/4] arm64: add "--nounzip" option support in xen_module command

2016-07-06 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds "--nounzip" option support in order to be compatible with the module command of i386, then we can simplify grub-mkconfig support code. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/arm64/xen_boot.c | 17 +++

[Xen-devel] [PATCH v4 0/4] arm64, xen: add xen_boot support into grup-mkconfig

2016-05-10 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset add xen_boot support into grup-mkconfig for generating xen boot entrances automatically Also update the docs/grub.texi for new xen_boot commands. This patchset has been tested on Foudation model with a bug fix: http://lists.gnu.org/archiv

[Xen-devel] [PATCH v4 3/4] * util/grub.d/20_linux_xen.in: Add xen_boot command support

2016-05-10 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds the support of xen_boot command: xen_hypervisor xen_module Also add a new "feature_xen_boot" to indicate this grub support xen_boot command. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/normal/main.c

[Xen-devel] [PATCH v4 2/4] arm64: add "--nounzip" option support in xen_module command

2016-05-10 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds "--nounzip" option support in order to be compatible with the module command of i386, then we can simplify grub-mkconfig support code. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/arm64/xen_boot.c | 17 +++

[Xen-devel] [PATCH v4 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-05-10 Thread fu . wei
From: Fu Wei <fu@linaro.org> delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko <phco...@gmail.com> Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Rem

[Xen-devel] [PATCH v4 1/4] i386, xen: Add xen_hypervisor and xen_module aliases for i386

2016-05-10 Thread fu . wei
From: Fu Wei <fu@linaro.org> Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/i386/xen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/grub-core/loader/i386/xen.c b/grub-core/loader/i386/xen.c index c4d9689..15b0727 100644 --- a/grub-core/loader/i386

Re: [Xen-devel] [PATCH v3] docs/arm64: update the documention for loading XSM support

2016-04-26 Thread Fu Wei
t;): >> > Stefano has committed the previous version with some modifications. Is >> > it better to read? >> >> IMO it is better than the original but I still think my proposed >> wording is an improvement over Stefano's. >> >> Should I "rebase&quo

Re: [Xen-devel] [PATCH v2] docs/arm64: update the documention for loading XSM support

2016-04-26 Thread Fu Wei
my script :-) > > Jan > -- Best regards, Fu Wei Software Engineer Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch Ph: +86 21 61221326(direct) Ph: +86 186 2020 4684 (mobile) Room 1512, Regus One Corporate Avenue,Level 15, One Corporate Avenue,

Re: [Xen-devel] [PATCH] docs/arm64: update the documention for loading XSM support

2016-04-21 Thread Fu Wei
.gr...@arm.com> wrote: > Hello Fu Wei, > > On 14/04/16 18:06, fu@linaro.org wrote: >> >> From: Fu Wei <fu@linaro.org> >> >> This patch updates the documention for loading XSM by the module which > >> lacks a specific compatible string. > > s

[Xen-devel] [PATCH v2] docs/arm64: update the documention for loading XSM support

2016-04-21 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch updates the documentation for allowing detection of an XSM module that lacks a specific compatible string. This mechanism has been added by the commit ca32012341f3de7d3975407fb963e6028f0d0c8b. Signed-off-by: Fu Wei <fu@linaro.org> ---

Re: [Xen-devel] [PATCH v5] xen/arm64: check XSM Magic from the second unknown module.

2016-04-19 Thread Fu Wei
Hi Wei Liu On 15 April 2016 at 17:47, Wei Liu <wei.l...@citrix.com> wrote: > On Wed, Apr 13, 2016 at 05:45:27PM +0800, Fu Wei wrote: >> Hi Julien, >> >> On 8 April 2016 at 23:19, Julien Grall <julien.gr...@arm.com> wrote: >> > Hi Wei, >> > >&g

[Xen-devel] [PATCH] docs/arm64: update the documention for loading XSM support

2016-04-14 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch updates the documention for loading XSM by the module which lacks a specific compatible string. This mechanism has been added by the commit ca32012341f3de7d3975407fb963e6028f0d0c8b Signed-off-by: Fu Wei <fu@linaro.org> --- docs/mis

Re: [Xen-devel] [PATCH v3 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-04-13 Thread Fu Wei
Hi all On 18 March 2016 at 15:53, Fu Wei <fu@linaro.org> wrote: > Hi all, > > On 9 March 2016 at 16:22, Fu Wei <fu@linaro.org> wrote: >> Hi Julien, >> >> On 9 March 2016 at 15:10, Julien Grall <julien.gr...@arm.com> wrote: >>> Hi, >

Re: [Xen-devel] [PATCH v5] xen/arm64: check XSM Magic from the second unknown module.

2016-04-13 Thread Fu Wei
Hi Julien, On 8 April 2016 at 23:19, Julien Grall <julien.gr...@arm.com> wrote: > Hi Wei, > > On 08/04/16 15:58, Wei Liu wrote: >> >> On Fri, Apr 08, 2016 at 03:51:22PM +0100, Julien Grall wrote: >>> >>> Hi Fu Wei, >>> >>> On 05/0

Re: [Xen-devel] [PATCH v5] xen/arm64: check XSM Magic from the second unknown module.

2016-04-13 Thread Fu Wei
Hi Julien, On 8 April 2016 at 22:51, Julien Grall <julien.gr...@arm.com> wrote: > Hi Fu Wei, > > On 05/04/16 17:46, fu@linaro.org wrote: >> >> From: Fu Wei <fu@linaro.org> >> >> This patch adds a has_xsm_magic helper function for de

[Xen-devel] [PATCH v5] xen/arm64: check XSM Magic from the second unknown module.

2016-04-05 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds a has_xsm_magic helper function for detecting XSM from the second unknown module. If Xen can't get the kind of module from compatible, we guess the kind of these unknowns respectively: (1) The first unknown must be kernel. (2)

Re: [Xen-devel] [PATCH v4] xen/arm64: check XSM Magic from the second unknown module.

2016-04-05 Thread Fu Wei
+ */ >> +bool __init has_xsm_magic(paddr_t start) >> +{ >> +xsm_magic_t magic; >> + >> +copy_from_paddr(, start, sizeof(magic) ); >> + >> + return ( XSM_MAGIC && magic == XSM_MAGIC ); > > Is XSM_MAGIC == 0 possible here at all? And if it is,

Re: [Xen-devel] [PATCH v3] xen/arm64: check XSM Magic and Signature from the second unknown module.

2016-04-05 Thread Fu Wei
Hi Julien, I have taken all you suggestions and posted the v4 patch, please review it. Great thanks for your help !! On 2 April 2016 at 02:10, Julien Grall <julien.gr...@arm.com> wrote: > (Use Stefano's new e-mail address) > Hi Fu Wei, > > On 29/03/16 04:26, fu@linaro.org

[Xen-devel] [PATCH v4] xen/arm64: check XSM Magic from the second unknown module.

2016-04-05 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds a has_xsm_magic helper function for detecting XSM from the second unknown module. If Xen can't get the kind of module from compatible, we guess the kind of these unknowns respectively: (1) The first unknown must be kernel. (2)

Re: [Xen-devel] [PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64

2016-03-30 Thread Fu Wei
en_boot_fdt, module_node, "compatible", >> - MODULE_CUSTOM_COMPATIBLE, >> sizeof(MODULE_CUSTOM_COMPATIBLE) - 1); >> + MODULE_CUSTOM_COMPATIBLE, >> sizeof(MODULE_CUSTOM_COMPATIBLE)); >> if (retval) >> return grub_error

Re: [Xen-devel] [PATCH v3] xen/arm64: check XSM Magic and Signature from the second unknown module.

2016-03-29 Thread Fu Wei
ng > blank before the closing parenthesis here, and more of this kind > of issue follow later. Ah, sorry, will fix it. Thanks ! ;-) > > Jan > -- Best regards, Fu Wei Software Engineer Red Hat Software (Beijing) Co.,Ltd.Shanghai Branch Ph: +86 21 61221326(direct) Ph: +86 186

Re: [Xen-devel] [PATCH v2] xen/arm64: check XSM Magic and Signature from the second unknown module.

2016-03-28 Thread Fu Wei
Hi Daniel, On 29 March 2016 at 06:08, Daniel De Graaf <dgde...@tycho.nsa.gov> wrote: > On 03/28/2016 04:54 PM, Konrad Rzeszutek Wilk wrote: >> >> On Tue, Mar 29, 2016 at 01:55:07AM +0800, fu@linaro.org wrote: >>> >>> From: Fu Wei <

Re: [Xen-devel] [PATCH v2] xen/arm64: check XSM Magic and Signature from the second unknown module.

2016-03-28 Thread Fu Wei
Hi Konrad, On 29 March 2016 at 04:54, Konrad Rzeszutek Wilk <konrad.w...@oracle.com> wrote: > On Tue, Mar 29, 2016 at 01:55:07AM +0800, fu@linaro.org wrote: >> From: Fu Wei <fu@linaro.org> >> >> This patch add a check_xsm_signature static function for

[Xen-devel] [PATCH v3] xen/arm64: check XSM Magic and Signature from the second unknown module.

2016-03-28 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch add a check_xsm_signature static function for detecting XSM from the second unknown module. If Xen can't get the kind of module from compatible, we guess the kind of these first two unknown respectively: (1) The first unknown must be kernel;

[Xen-devel] [PATCH v2] xen/arm64: check XSM Magic and Signature from the second unknown module.

2016-03-28 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch add a check_xsm_signature static function for detecting XSM from the second unknown module. If xen can't get the kind of module from compatible, we guess the kind of these first two unknown respectively: (1) The first unknown must be kernel;

Re: [Xen-devel] [PATCH] xen/arm64: check XSM Magic and Signature from the second unknown module.

2016-03-19 Thread Fu Wei
hy do we have both XSM_MAGIC and FLASK_MAGIC? Ah, Sorry for that , I didn't know we already have these definition. OK, I think we should use XSM_MAGIC, and I think FLASK_MAGIC should be "XenFlask". Please correct me if I misunderstand something. So maybe I should do : uint32_t xen_mag

[Xen-devel] [PATCH] xen/arm64: check XSM Magic and Signature from the second unknown module.

2016-03-19 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch add a check_xsm_signature static function for detecting XSM from the second unknown module. If xen can't get the kind of module from compatible, we guess the kind of these first two unknown respectively: (1) The first unknown must be kernel;

Re: [Xen-devel] [PATCH v3 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-03-18 Thread Fu Wei
Hi all, On 9 March 2016 at 16:22, Fu Wei <fu@linaro.org> wrote: > Hi Julien, > > On 9 March 2016 at 15:10, Julien Grall <julien.gr...@arm.com> wrote: >> Hi, >> >> On 08/03/2016 23:37, Fu Wei wrote: >>> >>> On 8 March 2016 at 14:54, Andr

Re: [Xen-devel] [PATCH v3 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-03-09 Thread Fu Wei
Hi Julien, On 9 March 2016 at 15:10, Julien Grall <julien.gr...@arm.com> wrote: > Hi, > > On 08/03/2016 23:37, Fu Wei wrote: >> >> On 8 March 2016 at 14:54, Andrei Borzenkov <arvidj...@gmail.com> wrote: >> So speaking of loading additional

Re: [Xen-devel] [PATCH v3 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-03-08 Thread Fu Wei
Hi Andrei, On 8 March 2016 at 14:54, Andrei Borzenkov <arvidj...@gmail.com> wrote: > 07.03.2016 11:22, Fu Wei пишет: >> Hi Andrei, >> >> On 28 February 2016 at 00:44, Fu Wei <fu@linaro.org> wrote: >>> Hi Andrei >>> >>> On 28 February

Re: [Xen-devel] [PATCH v3 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-03-07 Thread Fu Wei
Hi Andrei, On 28 February 2016 at 00:44, Fu Wei <fu@linaro.org> wrote: > Hi Andrei > > On 28 February 2016 at 01:26, Andrei Borzenkov <arvidj...@gmail.com> wrote: >> 26.02.2016 14:13, fu@linaro.org пишет: >>> From: Fu Wei <fu@linaro.org> >

Re: [Xen-devel] [PATCH v3 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-27 Thread Fu Wei
Hi Andrei On 28 February 2016 at 01:26, Andrei Borzenkov <arvidj...@gmail.com> wrote: > 26.02.2016 14:13, fu@linaro.org пишет: >> From: Fu Wei <fu@linaro.org> >> >> delete: xen_linux, xen_initrd, xen_xsm >> add: xen_module &

Re: [Xen-devel] [PATCH v2 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-26 Thread Fu Wei
On 26 February 2016 at 22:03, Vladimir 'φ-coder/phcoder' Serbinenko <phco...@gmail.com> wrote: > On 26.02.2016 12:15, Fu Wei wrote: >> Hi Andrei, >> >> On 26 February 2016 at 18:50, Andrei Borzenkov <arvidj...@gmail.com> wrote: >>> On Fri, Feb 26, 2016 at

Re: [Xen-devel] [PATCH v2 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-26 Thread Fu Wei
Hi Andrei, On 26 February 2016 at 18:50, Andrei Borzenkov <arvidj...@gmail.com> wrote: > On Fri, Feb 26, 2016 at 8:59 AM, Fu Wei <fu@linaro.org> wrote: >>>>>> +@subsection xen_module >>>>>> >>>>>> -@deffn Command xen_linux

[Xen-devel] [PATCH v3 3/4] * util/grub.d/20_linux_xen.in: Add xen_boot command support

2016-02-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds the support of xen_boot command: xen_hypervisor xen_module Also add a new "feature_xen_boot" to indicate this grub support xen_boot command. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/normal/main.c

[Xen-devel] [PATCH v3 2/4] arm64: add "--nounzip" option support in xen_module command

2016-02-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds "--nounzip" option support in order to be compatible with the module command of i386, then we can simplify grub-mkconfig support code. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/arm64/xen_boot.c | 17 +++

[Xen-devel] [PATCH v3 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko <phco...@gmail.com> Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Rem

[Xen-devel] [PATCH v3 0/4] arm64, xen: add xen_boot support into grup-mkconfig

2016-02-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset add xen_boot support into grup-mkconfig for generating xen boot entrances automatically Also update the docs/grub.texi for new xen_boot commands. This patchset has been tested on Foudation model with a bug fix: http://lists.gnu.org/archiv

[Xen-devel] [PATCH v3 1/4] i386, xen: Add xen_hypervisor and xen_module aliases for i386

2016-02-26 Thread fu . wei
From: Fu Wei <fu@linaro.org> Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/i386/xen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/grub-core/loader/i386/xen.c b/grub-core/loader/i386/xen.c index c4d9689..15b0727 100644 --- a/grub-core/loader/i386

Re: [Xen-devel] [PATCH v2 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-25 Thread Fu Wei
Hi Andrei On 26 February 2016 at 13:24, Andrei Borzenkov <arvidj...@gmail.com> wrote: > > > Отправлено с iPhone > >> 26 февр. 2016 г., в 7:48, Fu Wei <fu@linaro.org> написал(а): >> >> Hi Andrei >> >>> On 26 February 2016 at 01:34, And

Re: [Xen-devel] [PATCH v2 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-25 Thread Fu Wei
Hi Doug, On 26 February 2016 at 06:26, Doug Goldstein <car...@cardoe.com> wrote: > On 2/25/16 12:39 AM, fu@linaro.org wrote: >> From: Fu Wei <fu@linaro.org> >> -@deffn Command xen_linux file [arguments] >> -Load a dom0 kernel image for xen hypervi

Re: [Xen-devel] [PATCH v2 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-25 Thread Fu Wei
Hi Andrei On 26 February 2016 at 12:48, Fu Wei <fu@linaro.org> wrote: > Hi Andrei > > On 26 February 2016 at 01:34, Andrei Borzenkov <arvidj...@gmail.com> wrote: >> 25.02.2016 09:39, fu@linaro.org пишет: >>> From: Fu Wei <fu@linaro.org> >

Re: [Xen-devel] [PATCH v2 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-25 Thread Fu Wei
Hi Andrei On 26 February 2016 at 01:34, Andrei Borzenkov <arvidj...@gmail.com> wrote: > 25.02.2016 09:39, fu@linaro.org пишет: >> From: Fu Wei <fu@linaro.org> >> >> delete: xen_linux, xen_initrd, xen_xsm >> add: xen_module &

Re: [Xen-devel] [PATCH 1/3] arm64: add grub_xen_boot env to indicate that we have xen_* commands

2016-02-24 Thread Fu Wei
Hi Andrei. On 25 February 2016 at 02:12, Andrei Borzenkov <arvidj...@gmail.com> wrote: > 24.02.2016 21:01, fu@linaro.org пишет: >> From: Fu Wei <fu@linaro.org> >> >> Signed-off-by: Fu Wei <fu@linaro.org> >> --- >> grub-core/loader/

[Xen-devel] [PATCH v2 0/4] arm64, xen: add xen_boot support into grup-mkconfig

2016-02-24 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patchset add xen_boot support into grup-mkconfig for generating xen boot entrances automatically Also update the docs/grub.texi for new xen_boot commands. This patchset has been tested on Foudation model with a bug fix: http://lists.gnu.org/archiv

[Xen-devel] [PATCH v2 2/4] * util/grub.d/20_linux_xen.in: Add xen_boot command support

2016-02-24 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds the support of xen_boot command: xen_hypervisor xen_module Also add a new "feature_xen_boot" to indicate this grub support xen_boot command. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/normal/main.c

[Xen-devel] [PATCH v2 4/4] arm64: update the introduction of xen boot commands in docs/grub.texi

2016-02-24 Thread fu . wei
From: Fu Wei <fu@linaro.org> delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko <phco...@gmail.com> Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Rem

[Xen-devel] [PATCH v2 1/4] arm64: add "--nounzip" option support in xen_module command

2016-02-24 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch adds "--nounzip" option support in order to be compatible with the module command of i386, then we can simplify grub-mkconfig support code. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/arm64/xen_boot.c | 17 +++

[Xen-devel] [PATCH v2 3/4] i386, xen: Add xen_hypervisor and xen_module aliases for i386

2016-02-24 Thread fu . wei
From: Fu Wei <fu@linaro.org> Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/i386/xen.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/grub-core/loader/i386/xen.c b/grub-core/loader/i386/xen.c index c4d9689..15b0727 100644 --- a/grub-core/loader/i386

Re: [Xen-devel] [PATCH GRUB] Allow initrd concatenation on ARM64

2016-02-22 Thread Fu Wei
is patch to include a change >> to ./util/grub.d/20_linux_xen.in to update the naming there, but it looks >> like that aspect of the original series isn't in tree yet? >> > We need to figure out what we should do on x86 wrt multiboot vs > multiboot2 before adapting 20_linu

Re: [Xen-devel] [PATCH] arm64: xen_boot: Fix xen boot using Grub on AARCH64

2016-02-22 Thread Fu Wei
> - MODULE_CUSTOM_COMPATIBLE, > sizeof(MODULE_CUSTOM_COMPATIBLE) - 1); > + MODULE_CUSTOM_COMPATIBLE, > sizeof(MODULE_CUSTOM_COMPATIBLE)); >if (retval) > return grub_error (GRUB_ERR_IO, "failed to update FDT"

Re: [Xen-devel] [PATCH GRUB] Allow initrd concatenation on ARM64

2015-11-12 Thread Fu Wei
Hi Vladimir, OK, I will test it. On 12 November 2015 at 21:08, Vladimir 'φ-coder/phcoder' Serbinenko <phco...@gmail.com> wrote: > While on it also change "xen_linux" to "xen_kernel" to be vendor-neutral > Could someone test please? I only compile-tested it --

[Xen-devel] [PATCH] arm64: Add the missing license macro in fdt module

2015-11-09 Thread fu . wei
From: Fu Wei <fu@linaro.org> Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/arm64/fdt.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/grub-core/loader/arm64/fdt.c b/grub-core/loader/arm64/fdt.c index 5202c14..901bd7b 100644 --- a/grub-core/loader/arm64

[Xen-devel] [PATCH] arm64: Add the introduction of xen boot commands in docs/grub.texi

2015-11-09 Thread fu . wei
From: Fu Wei <fu@linaro.org> xen_hypervisor xen_linux xen_initrd xen_xsm Signed-off-by: Fu Wei <fu@linaro.org> --- docs/grub.texi | 38 ++ 1 file changed, 38 insertions(+) diff --git a/docs/grub.texi b/docs/grub.texi i

[Xen-devel] [PATCH] arm64: clean up a useless variable in xen_boot.c

2015-11-09 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch delete "file_name_index" variable and related comment. They are for xen_module command which has been deleted. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/loader/arm64/xen_boot.c | 19 +-- 1 file

Re: [Xen-devel] [PATCH v3 2/4] arm64: Add xen_boot module file

2015-11-05 Thread Fu Wei
Hi Ian, On 3 November 2015 at 23:22, Ian Campbell <ian.campb...@citrix.com> wrote: > On Tue, 2015-11-03 at 22:57 +0800, Fu Wei wrote: >> Hi Vladimir, >> >> After discussing with Ian Campbell, Since we already can load all >> the necessary binaries for Xen boot o

[Xen-devel] [PATCH] arm64: Fix the bug in fdt module

2015-11-03 Thread fu . wei
From: Fu Wei <fu@linaro.org> This patch goes with commit: 4d0cb755387d6f109b901386ed4d3d475df239fe arm64: Move FDT functions to separate module linux and xen_boot modules can't work without this patch. Signed-off-by: Fu Wei <fu@linaro.org> --- grub-core/Makefile.core.def

Re: [Xen-devel] [PATCH v3 2/4] arm64: Add xen_boot module file

2015-11-03 Thread Fu Wei
ill submit a "xen_module" command patch soon, in case we need it. Great thanks ! :-) On 30 October 2015 at 16:08, Fu Wei <fu@linaro.org> wrote: > Hi Vladimir, > > yes, Thanks for your modification :-) > > I just follow the xen b

Re: [Xen-devel] [PATCH v3 3/4] * util/grub.d/20_linux_xen.in: Add support of the XEN boot on aarch64

2015-10-30 Thread Fu Wei
"initrd", grub_cmd_initrd, 0, N_("Load initrd.")); cmd_module = grub_register_command ("module", grub_cmd_module, 0, N_("Load module.")); + cmd_module = grub_register_command

Re: [Xen-devel] [PATCH v3 1/4] arm64: Add and export some accessor functions for xen boot

2015-10-30 Thread Fu Wei
Hi Vladimir, Good idea! I can see your patch for it in master branch. Great thanks for your help, I will try this ASAP :-) On 29 October 2015 at 20:03, Vladimir 'φ-coder/phcoder' Serbinenko <phco...@gmail.com> wrote: > On 23.07.2015 07:16, fu@linaro.org wrote: >> F

Re: [Xen-devel] [PATCH v3 2/4] arm64: Add xen_boot module file

2015-10-30 Thread Fu Wei
07:16, fu@linaro.org wrote: >> From: Fu Wei <fu@linaro.org> >> >> grub-core/loader/arm64/xen_boot.c >> >> - This adds support for the Xen boot on ARM specification for arm64. >> - Introduce xen_hypervisor, xen_linux, xen_initrd and xen_x

Re: [Xen-devel] [PATCH v3 0/4] arm64: Add Xen boot support (via fdt)

2015-10-29 Thread Fu Wei
itramfs > hasn't been properly loaded? > > > Thanks, > > Stefano > > > On Tue, 8 Sep 2015, Fu Wei wrote: >> Hi Vladimir, >> >> Do you have any suggestion on this patchset? >> Do I need to improve anything? >> >> Great thanks for your help. >&g

Re: [Xen-devel] [PATCH v3 0/4] arm64: Add Xen boot support (via fdt)

2015-10-28 Thread Fu Wei
+ initrd_ctx->size += ALIGN_UP (initrd_ctx->components[i].size, 4); > } > >if (newc) > > > Simply removing this change seems to fix the issue and Xen still boots > fine. -- Best regards, Fu Wei Software Engineer Red Hat S

Re: [Xen-devel] [PATCH v3 0/4] arm64: Add Xen boot support (via fdt)

2015-09-07 Thread Fu Wei
Hi Vladimir, Do you have any suggestion on this patchset? Do I need to improve anything? Great thanks for your help. On 4 August 2015 at 16:34, Fu Wei <fu@linaro.org> wrote: > Hi Vladimir, > > this patchset follows all your comment of v2 patchset. > Do you h

Re: [Xen-devel] [PATCH v3 0/4] arm64: Add Xen boot support (via fdt)

2015-08-04 Thread Fu Wei
Hi Vladimir, this patchset follows all your comment of v2 patchset. Do you have any suggestion on this patchset? Great thanks for your help. On 23 July 2015 at 13:16, fu@linaro.org wrote: From: Fu Wei fu@linaro.org - This adds support for the Xen boot on ARM specification

Re: [Xen-devel] [PATCH v2 1/3] arm64: Add Xen boot support file

2015-07-23 Thread Fu Wei
wrote: From: Fu Wei fu@linaro.org This patch adds Xen boot support file: grub-core/loader/arm64/xen_boot.c include/grub/arm64/xen_boot.h This patch also adds commands register code and hearder file into grub-core/loader/arm64/linux.c - This adds support for the Xen boot on ARM

[Xen-devel] [PATCH v3 1/4] arm64: Add and export some accessor functions for xen boot

2015-07-22 Thread fu . wei
From: Fu Wei fu@linaro.org Add accessor functions of loaded flag in grub-core/loader/arm64/linux.c. Export accessor functions of loaded flag and grub_linux_get_fdt function in include/grub/arm64/linux.h. Purpose: Reuse the existing code of devicetree in linux module. Signed-off-by: Fu Wei

[Xen-devel] [PATCH v3 0/4] arm64: Add Xen boot support (via fdt)

2015-07-22 Thread fu . wei
From: Fu Wei fu@linaro.org - This adds support for the Xen boot on ARM specification for arm64. - Add and export some accessor functions of loaded flag and grub_linux_get_fdt function in include/grub/arm64/linux.h for xen boot. - Introduce xen_hypervisor, xen_linux, xen_initrd

  1   2   >