Re: [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(+) >> >> diff --git a/grub-core/loader/arm64/xen_b

[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/msg0

[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 ++--- 2 fi

[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 +68

[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: Fu

[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(+) diff --git a

Re: [PATCH] tcp: add mss option support

2016-02-24 Thread Ignat Korchagin
+1 For the MSS option I've actually submitted similar patch a while ago http://lists.gnu.org/archive/html/grub-devel/2015-10/msg00120.html Didn't have time to finish it at first, but then decided to back off until window scaling gets merged to follow generic way of declaring TCP options. But this

Re: OBP available region patch fails with clang

2016-02-24 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 24.02.2016 18:35, Andrei Borzenkov wrote: > kern/ieee1275/mmap.c:52:22: error: comparison of integers of different > signs: 'grub_ssize_t' > (aka 'int') and 'unsigned int' [-Werror,-Wsign-compare] > if (available_size > sizeof (available)) > ~~ ^ ~~ > 1

Re: aarch64 clang build failure

2016-02-24 Thread Vladimir 'φ-coder/phcoder' Serbinenko
On 24.02.2016 19:25, Andrei Borzenkov wrote: > TARGET_OBJ2ELF= sh genmod.sh moddep.lst disk.module > build-grub-module-verifier disk.mod > build-grub-module-verifier: error: unsupported relocation 0x10d. > https://llvm.org/bugs/show_bug.cgi?id=26030 signature.asc Description: OpenPGP digital s

[PATCH] dns: realloc address buffer after each packet

2016-02-24 Thread Josef Bacik
Sometimes DNS responses come in slower than we poll for them which can lead us to process multiple DNS packets which overflows the addresses array. So instead realloc the array each time to make sure we are accounting for any answers we currently have in the address array. We also move the cachin

[PATCH] tcp: add mss option support

2016-02-24 Thread Josef Bacik
We were continuing to see transfer rates drop between datacenters that would result in timeouts, so I added the mss option and suddenly we went from ~200 kb/s to ~100mb/s. So seems like I probably should have started there rather than all these other options but whatever, now things are super awes

[PATCH] bootp: use the ipv* version given by the dhcp server

2016-02-24 Thread Josef Bacik
We were setting DNS_OPTION_PREVER_IPV* based on which version of the dhcp request we go back. However this would mean that we would mistakenly fall back on ipv4 in an ipv6 only system, or vice versa. For the sake of simplicity lets only use the ip version for the dns server we got in our dhcp res

Re: [PATCH 1/2] disk: Add support for device-specific malloc function

2016-02-24 Thread Andrei Borzenkov
24.02.2016 20:40, Andrei Borzenkov пишет: > 24.02.2016 16:57, Leif Lindholm пишет: >> On Wed, Feb 24, 2016 at 03:09:13PM +0300, Andrei Borzenkov wrote: > Could you test attached patch with your alignment fixes on top. This > implements my idea of using shared buffers. Seems to work in naive

aarch64 clang build failure

2016-02-24 Thread Andrei Borzenkov
TARGET_OBJ2ELF= sh genmod.sh moddep.lst disk.module build-grub-module-verifier disk.mod build-grub-module-verifier: error: unsupported relocation 0x10d. bor@bor-Latitude-E5450:~/build/grub$ PATH=/home/bor/build/llvm/bin:$PATH clang --version clang version 3.8.0 (git://github.com/llvm-mirror/clang.

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

2016-02-24 Thread Andrei Borzenkov
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(+) > > diff --git a/grub-core/loader/arm64/xen_boot.c > b/grub-core/loader/arm64/xen_boot.c > index 8ae43d7..ef03111 10064

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

2016-02-24 Thread Andrei Borzenkov
24.02.2016 21:01, fu@linaro.org пишет: > 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(-) > > di

[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 +68

[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/loade

[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_b

[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/20_linux_xen.i

Re: [PATCH 1/2] disk: Add support for device-specific malloc function

2016-02-24 Thread Andrei Borzenkov
24.02.2016 16:57, Leif Lindholm пишет: > On Wed, Feb 24, 2016 at 03:09:13PM +0300, Andrei Borzenkov wrote: Could you test attached patch with your alignment fixes on top. This implements my idea of using shared buffers. Seems to work in naive testing. >>> >>> Testing this with a grub-mkst

OBP available region patch fails with clang

2016-02-24 Thread Andrei Borzenkov
kern/ieee1275/mmap.c:52:22: error: comparison of integers of different signs: 'grub_ssize_t' (aka 'int') and 'unsigned int' [-Werror,-Wsign-compare] if (available_size > sizeof (available)) ~~ ^ ~~ 1 error generated. While we can of course cast to (grub_ss

How to chainload grub on different platforms?

2016-02-24 Thread Andrei Borzenkov
On x86 we can use multiboot (on in exceptional case chainload boot block). On EFI we can use chainloader to launch EFI binary. What can we do on PowerPC? SPARC? ARM? MIPS? I think we really need some generic platform-independent interface to load another grub binary. ___

Re: [PATCH 1/2] disk: Add support for device-specific malloc function

2016-02-24 Thread Leif Lindholm
On Wed, Feb 24, 2016 at 03:09:13PM +0300, Andrei Borzenkov wrote: > >> Could you test attached patch with your alignment fixes on top. This > >> implements my idea of using shared buffers. Seems to work in naive testing. > > > > Testing this with a grub-mkstandalone image, I get: > > > > kern/dl.c:

Re: [PATCH 1/2] disk: Add support for device-specific malloc function

2016-02-24 Thread Andrei Borzenkov
On Wed, Feb 24, 2016 at 2:59 PM, Leif Lindholm wrote: > On Mon, Feb 22, 2016 at 07:56:25PM +0300, Andrei Borzenkov wrote: >> 22.02.2016 17:02, Leif Lindholm пишет: >> > On Mon, Feb 22, 2016 at 10:57:24AM +0300, Andrei Borzenkov wrote: >> >> 19.02.2016 19:18, Leif Lindholm пишет: >> >>> Some disk t

Re: [PATCH 1/2] disk: Add support for device-specific malloc function

2016-02-24 Thread Leif Lindholm
On Mon, Feb 22, 2016 at 07:56:25PM +0300, Andrei Borzenkov wrote: > 22.02.2016 17:02, Leif Lindholm пишет: > > On Mon, Feb 22, 2016 at 10:57:24AM +0300, Andrei Borzenkov wrote: > >> 19.02.2016 19:18, Leif Lindholm пишет: > >>> Some disk types have allocation requirements beyond normal grub_malloc.