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
> 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 > Signed-off-by: Konrad Rze

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

2017-05-15 Thread Fu Wei
Hi Daniel, On 15 May 2017 at 21:46, Daniel Kiper wrote: > Hi Julien, > > On Mon, May 15, 2017 at 02:43:28PM +0100, Julien Grall wrote: >> Hi Daniel, >> >> On 15/05/17 14:38, Daniel Kiper wrote: >> >On Sun, May 14, 2017 at 03:43:44PM +0800, fu....

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 wrote: > Hi Vladimir, > > On 11 May 2017 at 06:01, Vladimir 'phcoder' Serbinenko > wrote: >> >> >> On Tue, May 9, 2017, 11:02 Fu Wei wrote: >>> >>> Hi Vladimir >>> &

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

2017-05-14 Thread fu . wei
From: Fu Wei 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 redundant "#include " in

[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 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 architectures, they are still using

[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 delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Remove obsolete module type distinctions. Also bases on

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

2017-05-14 Thread fu . wei
From: Fu Wei 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(like Linux kernel for Dom0). Sig

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 wrote: > > > On Tue, May 9, 2017, 11:02 Fu Wei wrote: >> >> Hi Vladimir >> >> On 9 May 2017 at 14:59, Vladimir 'phcoder' Serbinenko >> wrote: >> > >>

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 wrote: > Hi Vladimir > > On 9 May 2017 at 14:59, Vladimir 'phcoder' Serbinenko > wrote: >> >> >> Le Tue, May 2, 2017 à 9:06 AM, a écrit : >>> >>> From: Fu Wei >>&

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 wrote: > > > Le Tue, May 2, 2017 à 9:06 AM, a écrit : >> >> From: Fu Wei >> >> This patch adds the support of xen_boot command for aarch64: >> xen_hypervisor >>

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 wrote: > > > Le Tue, May 2, 2017 à 9:06 AM, a écrit : >> >> From: Fu Wei >> >> This patch adds "--nounzip" option support in order to >> be compatible with the module

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 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 2017 at 04:53, Stefano Stabellini

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 wrote: > On 05/05/17 09:57, Fu Wei wrote: >> Hi Stefano, >> >> On 4 May 2017 at 04:53, Stefano Stabellini wrote: >>> On Wed, 3 May 2017, Andrew Cooper wrote: >>>> On 02/05/17 08:06, fu@linaro.org w

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 wrote: > On Wed, 3 May 2017, Andrew Cooper wrote: >> On 02/05/17 08:06, fu@linaro.org wrote: >> > From: Fu Wei >> > >> > This patch adds the support of xen_boot command for aarch64: >> >

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 wrote: > Hey, > > On Tue, May 02, 2017 at 03:06:24PM +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> This patchset add xen_boot support into grup-mkconfig for >> generating xen boot entrances automat

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, wrote: > From: Fu Wei > > This patchset add xen_boot support into grup-mkconfig for ^ grub2-mkconfig Also in the subject. > generating xen boot entrances automatically >

[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 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 architectures, they are still using

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

2017-05-02 Thread fu . wei
From: Fu Wei 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) which is wrong

[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 delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Remove obsolete module type distinctions. Also bases on

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

2017-05-02 Thread fu . wei
From: Fu Wei 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(like Linux kernel "vml

[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 delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Remove obsolete module type distinctions. Also bases on

[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 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 --- grub-core/normal/main.c | 2 +- util/grub.d/20_linux_xen.in | 13 ++

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

2016-07-26 Thread fu . wei
From: Fu Wei 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 --- grub-core/loader/arm64/xen_boot.c | 17 + 1 file changed, 17 insertions(+)

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

2016-07-26 Thread fu . wei
From: Fu Wei 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/archive/html/grub-devel/2016-02

[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 Signed-off-by: Fu Wei --- 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.c +++ b/grub-core/loader/i386/xen.c @@ -689,6

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 wrote: > Hi Julien, > > On 20 February 2016 at 00:28, Julien Grall wrote: >> Xen is currently crashing because of malformed compatible property for >> the boot module. This is because the property string is not >> null-ter

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 wrote: > Hi Fu Wei, > > > On 06/07/16 18:53, fu@linaro.org wrote: >> >> From: Fu Wei >> >> This patch adds the support of xen_boot command: >> xen_hypervisor >> xen_module >>

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

2016-07-06 Thread fu . wei
From: Fu Wei 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/archive/html/grub-devel/2016-02

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 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 just now. Thanks for

[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 Signed-off-by: Fu Wei --- 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.c +++ b/grub-core/loader/i386/xen.c @@ -689,6

[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 delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Remove obsolete module type distinctions. Also bases on

[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 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 --- grub-core/normal/main.c | 2 +- util/grub.d/20_linux_xen.in | 13 ++

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

2016-07-06 Thread fu . wei
From: Fu Wei 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 --- grub-core/loader/arm64/xen_boot.c | 17 + 1 file changed, 17 insertions(+)

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

2016-05-19 Thread Fu Wei
Hi Julien, On 16 May 2016 at 19:28, Julien Grall wrote: > Hi Fu Wei, > > (CC Stefano) > > > On 10/05/16 15:03, fu@linaro.org wrote: >> >> From: Fu Wei >> >> delete: xen_linux, xen_initrd, xen_xsm >> add: xen_

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

2016-05-10 Thread fu . wei
From: Fu Wei 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/archive/html/grub-devel/2016-02

[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 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 --- grub-core/normal/main.c | 2 +- util/grub.d/20_linux_xen.in | 13 ++

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

2016-05-10 Thread fu . wei
From: Fu Wei 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 --- grub-core/loader/arm64/xen_boot.c | 17 + 1 file changed, 17 insertions(+)

[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 delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Remove obsolete module type distinctions. Also bases on

[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 Signed-off-by: Fu Wei --- 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.c +++ b/grub-core/loader/i386/xen.c @@ -689,6

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

2016-04-26 Thread Fu Wei
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" it and resubmit ? &g

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

2016-04-26 Thread Fu Wei
nse when deciding who to > Cc - I don't think there's much point in Cc-ing other than ARM > maintainers on ARM specific doc patches (arguably that should be > reflected in ./MAINTAINERS). Sorry for late response, Thanks for your help, will fix my script :-) > > Jan >

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

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

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

2016-04-21 Thread fu . wei
From: Fu Wei 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 --- v2: Improve the doc, according to the suggestion

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 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 wrote: >> > Hi Wei, >> > >> > On 08/04/16 15:58, Wei Liu wrote: >> >

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

2016-04-14 Thread fu . wei
From: Fu Wei 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 --- docs/misc/arm/device-tree/booting.txt | 17

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 wrote: > Hi all, > > On 9 March 2016 at 16:22, Fu Wei wrote: >> Hi Julien, >> >> On 9 March 2016 at 15:10, Julien Grall wrote: >>> Hi, >>> >>> On 08/03/2016 23:37, Fu Wei wrote: >>>&g

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 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/04/16 17:46, fu@linaro.org w

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 wrote: > Hi Fu Wei, > > On 05/04/16 17:46, fu@linaro.org wrote: >> >> From: Fu Wei >> >> This patch adds a has_xsm_magic helper function for detecting XSM >> from the second unknown module. >>

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

2016-04-05 Thread fu . wei
From: Fu Wei 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) Detect the XSM Magic fro

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

2016-04-05 Thread Fu Wei
> +{ >> +xsm_magic_t magic; >> + >> +copy_from_paddr(&magic, start, sizeof(magic) ); >> + >> +return ( XSM_MAGIC && magic == XSM_MAGIC ); > > Is XSM_MAGIC == 0 possible here at all? And if it is, wouldn't it be > better to avoi

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 wrote: > (Use Stefano's new e-mail address) > Hi Fu Wei, > > On 29/03/16 04:26, fu@linaro.org wrote: >> >

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

2016-04-05 Thread fu . wei
From: Fu Wei 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) Detect the XSM Magic fro

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

2016-03-30 Thread Fu Wei
t_fdt, module_node, "compatible", >> - 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 u

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

2016-03-29 Thread Fu Wei
> +int len; >> + >> +prop = fdt_get_property(fdt, node, "reg", &len); >> +if ( !prop || len < dt_cells_to_size(address_cells + size_cells)) > > At the very least you'll need to adjust style: There's a missing > blank before the closing parenth

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 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 >>> >>> This patch add a ch

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 wrote: > On Tue, Mar 29, 2016 at 01:55:07AM +0800, fu@linaro.org wrote: >> From: Fu Wei >> >> This patch add a check_xsm_signature static function for detecting XSM >> from the second unknown module. >

[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 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; (2) The s

[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 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; (2) The s

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

2016-03-19 Thread Fu Wei
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_magic = XEN_MAGIC; > > Jan >

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

2016-03-19 Thread fu . wei
From: Fu Wei 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; (2) The s

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 wrote: > Hi Julien, > > On 9 March 2016 at 15:10, Julien Grall wrote: >> Hi, >> >> On 08/03/2016 23:37, Fu Wei wrote: >>> >>> On 8 March 2016 at 14:54, Andrei Borzenkov wrote: >>> So speaking of load

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 wrote: > Hi, > > On 08/03/2016 23:37, Fu Wei wrote: >> >> On 8 March 2016 at 14:54, Andrei Borzenkov wrote: >> So speaking of loading additional modules/lack of initrd on ARM, I thinks >> that >> will (o

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 wrote: > 07.03.2016 11:22, Fu Wei пишет: >> Hi Andrei, >> >> On 28 February 2016 at 00:44, Fu Wei wrote: >>> Hi Andrei >>> >>> On 28 February 2016 at 01:26, Andrei Borzenkov wrote: >>&g

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 wrote: > Hi Andrei > > On 28 February 2016 at 01:26, Andrei Borzenkov wrote: >> 26.02.2016 14:13, fu@linaro.org пишет: >>> From: Fu Wei >>> >>> delete: xen_linux, xen_initrd, xen_xsm >&g

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 wrote: > 26.02.2016 14:13, fu@linaro.org пишет: >> From: Fu Wei >> >> delete: xen_linux, xen_initrd, xen_xsm >> add: xen_module >> >> This update bases on >> commit 0edd750e50698854068

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 wrote: > On 26.02.2016 12:15, Fu Wei wrote: >> Hi Andrei, >> >> On 26 February 2016 at 18:50, Andrei Borzenkov wrote: >>> On Fri, Feb 26, 2016 at 8:59 AM, Fu Wei wrote: >>>>&g

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 wrote: > On Fri, Feb 26, 2016 at 8:59 AM, Fu Wei wrote: >>>>>> +@subsection xen_module >>>>>> >>>>>> -@deffn Command xen_linux file [arguments] >>>>>> -Load a

[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 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 --- grub-core/normal/main.c | 2 +- util/grub.d/20_linux_xen.in | 13 ++

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

2016-02-26 Thread fu . wei
From: Fu Wei 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 --- grub-core/loader/arm64/xen_boot.c | 17 + 1 file changed, 17 insertions(+)

[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 delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Remove obsolete module type distinctions. Signed-off-by

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

2016-02-26 Thread fu . wei
From: Fu Wei 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/archive/html/grub-devel/2016-02

[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 Signed-off-by: Fu Wei --- 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.c +++ b/grub-core/loader/i386/xen.c @@ -689,6

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 wrote: > > > Отправлено с iPhone > >> 26 февр. 2016 г., в 7:48, Fu Wei написал(а): >> >> Hi Andrei >> >>> On 26 February 2016 at 01:34, Andrei Borzenkov wrote: >>> 25.02.

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 wrote: > On 2/25/16 12:39 AM, fu@linaro.org wrote: >> From: Fu Wei >> -@deffn Command xen_linux file [arguments] >> -Load a dom0 kernel image for xen hypervisor at the booting process of xen. >> +@deffn Co

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 wrote: > Hi Andrei > > On 26 February 2016 at 01:34, Andrei Borzenkov wrote: >> 25.02.2016 09:39, fu@linaro.org пишет: >>> From: Fu Wei >>> >>> delete: xen_linux, xen_initrd, xen_xsm >&g

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 wrote: > 25.02.2016 09:39, fu@linaro.org пишет: >> From: Fu Wei >> >> delete: xen_linux, xen_initrd, xen_xsm >> add: xen_module >> >> This update bases on >> commit 0edd750e50698854068

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 wrote: > 24.02.2016 21:01, fu@linaro.org пишет: >> From: Fu Wei >> >> Signed-off-by: Fu Wei >> --- >> grub-core/loader/arm64/xen_boot.c | 8 >> 1 file changed, 8 insertions(+) &g

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

2016-02-24 Thread fu . wei
From: Fu Wei 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/archive/html/grub-devel/2016-02

[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 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 --- grub-core/normal/main.c | 2 +- util/grub.d/20_linux_xen.in | 13 ++

[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 delete: xen_linux, xen_initrd, xen_xsm add: xen_module This update bases on commit 0edd750e50698854068358ea53528100a9192902 Author: Vladimir Serbinenko Date: Fri Jan 22 10:18:47 2016 +0100 xen_boot: Remove obsolete module type distinctions. Signed-off-by

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

2016-02-24 Thread fu . wei
From: Fu Wei 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 --- grub-core/loader/arm64/xen_boot.c | 17 + 1 file changed, 17 insertions(+)

[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 Signed-off-by: Fu Wei --- 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.c +++ b/grub-core/loader/i386/xen.c @@ -689,6

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

2016-02-24 Thread fu . wei
From: Fu Wei Signed-off-by: Fu Wei --- 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.c +++ b/grub-core/loader/i386/xen.c @@ -689,6

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

2016-02-24 Thread fu . wei
From: Fu Wei This patchset add xen_boot support into grup-mkconfig for generating xen boot entrances automatically ChangeLog: v1 :first upstream patchset. Fu Wei (3): arm64: add grub_xen_boot env to indicate that we have xen_* commands * util/grub.d/20_linux_xen.in: Add support of the

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

2016-02-24 Thread fu . wei
From: Fu Wei This patch adds the support of xen_boot command: xen_hypervisor xen_module Signed-off-by: Fu Wei --- util/grub.d/20_linux_xen.in | 18 +++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/util/grub.d/20_linux_xen.in b/util/grub.d

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

2016-02-24 Thread fu . wei
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

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

2016-02-23 Thread Fu Wei
Hi Ian On 23 February 2016 at 18:00, Ian Campbell wrote: > On Mon, 2016-02-22 at 17:29 +0800, Fu Wei wrote: >> Hi Julien, >> >> On 20 February 2016 at 00:28, Julien Grall >> wrote: >> > Xen is currently crashing because of malformed compatible property for &

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

2016-02-22 Thread Fu Wei
>> I was expecting this 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 shou

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"); > > -- > 1.9.1 I h

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 wrote: > While on it also change "xen_linux" to "xen_kernel" to be vendor-neutral > Could someone test please? I only compile-tested it -- Best regard

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

2015-11-09 Thread fu . wei
From: Fu Wei 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 --- grub-core/loader/arm64/xen_boot.c | 19 +-- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a

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

2015-11-09 Thread fu . wei
From: Fu Wei xen_hypervisor xen_linux xen_initrd xen_xsm Signed-off-by: Fu Wei --- docs/grub.texi | 38 ++ 1 file changed, 38 insertions(+) diff --git a/docs/grub.texi b/docs/grub.texi index db765a3..1df3db2 100644 --- a/docs/grub.texi

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

2015-11-09 Thread fu . wei
From: Fu Wei Signed-off-by: Fu Wei --- 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/fdt.c +++ b/grub-core/loader/arm64/fdt.c @@ -25,6

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 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 on arm64 for now, we don&#

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

2015-11-03 Thread Fu Wei
o I will submit a "xen_module" command patch soon, in case we need it. Great thanks ! :-) On 30 October 2015 at 16:08, Fu Wei wrote: > Hi Vladimir, > > yes, Thanks for your modification :-) > > I just follow the xen boot protocol : > http://wiki.xen.org/wiki/Xen_A

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

2015-11-03 Thread fu . wei
From: Fu Wei 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 --- grub-core/Makefile.core.def | 1 + grub-core/loader/arm64/fdt.c | 5 +++

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 ("xen_li

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

2015-10-30 Thread Fu Wei
or xen boot; >> Introduce xen_module to load common or custom module for xen boot. >> - This Xen boot support is a separated module for aarch64, >> but reuse the existing code of devicetree in linux module. >> >> Signed-off-by

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 wrote: > On 23.07.2015 07:16, fu@linaro.org wrote: >> From: Fu Wei >> >

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

2015-10-28 Thread Fu Wei
Cannot open root device", even though the grub config is > still same as before and the rootfs (which is xfs) hasn't changed. > Reverting the patches solved the problem. > > Do you have any ideas on what is causing the issue? Maybe the initramfs > hasn't been prope

  1   2   >