Re: Relocation overflow on RISC-V with multi-range memory layout

2023-10-08 Thread Wu, Fei
On 9/27/2023 11:23 PM, Vladimir 'phcoder' Serbinenko wrote: > That is not the correct solution. Correct solution is to use trampoline > facility like e.g. ppc does. Can you post the full reproduction > instructions? > 1. prepare the host for pcie passthrough, e.g. on ubuntu, put something like the

[PATCH] relocator: Switch to own page table while moving chunks on x86-64

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From a6ad0d064389b80714128e662e4f447a860bb117 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Tue, 11 Jul 2023 04:58:23 +0200 Subject: [PATCH] relocator: Switch to own page table while moving chunks on x86-64 We need to avoid clobering existing table between starting of chunk movers an

[PATCH 2/2] loader/bsd: Improve loading of *BSD on EFI platforms

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 9cb94e2d33f1e4f11a2f9cebdeb6e6a3194b87cf Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 6 Jul 2023 01:42:04 +0200 Subject: [PATCH 2/2] loader/bsd: Improve loading of *BSD on EFI platforms Signed-off-by: Vladimir Serbinenko --- grub-core/loader/i386/bsd.c | 515 +

[PATCH 1/2] smbios: Export grub_smbios_get_eps3 function

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 4f8bdb060a2915587ac15093f492f0d9784e56f4 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sat, 8 Jul 2023 08:28:51 +0200 Subject: [PATCH 1/2] smbios: Export grub_smbios_get_eps3 function Signed-off-by: Vladimir Serbinenko --- grub-core/commands/smbios.c | 2 +- include/grub/smbios

[PATCH 0/2] Fix *BSD loading on EFI

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
Due to several bugs in BSD loader recent *BSD doesn't load on EFI. These 2 patches fix it. Tested on GhostBSD, DragonFlyBSD, NetBSD and OpenBSD ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

[PATCH 01/01] loader/bsd: Add missing zeros

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 1be6ed3500b24ef7327ab2ea99c23488102a977b Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 10 Jul 2023 13:05:21 +0200 Subject: [PATCH 01/01] loader/bsd: Add missing zeros kern_end is 64-bit and so we need to add this additional zero. entry is unused and is explicitly zero in own

[PATCH 01/01] loader/bsd: Fix loading after unaligned module

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From fe519348967c7096e4b9466fc39bd393cd58319a Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Mon, 10 Jul 2023 17:17:35 +0200 Subject: [PATCH 01/01] loader/bsd: Fix loading after unaligned module Current code implicitly assumes that aligning chunk_size + *kern_end is the same as alignin

[PATCH 1/1] types: Fix typo

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 8d083bc12f7129616c9cf73c8a1e97d05810322d Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Sun, 13 Aug 2023 09:19:02 +0200 Subject: [PATCH 1/1] types: Fix typo Signed-off-by: Vladimir Serbinenko --- include/grub/types.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --

[PATCH 4/4] 10_illumos: Use --noescape so that $ZFS_BOOTFS is passed

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 2ee3100e1d3febaebfb244393d676fe43c78e802 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 19 Jul 2023 15:27:26 +0200 Subject: [PATCH 4/4] 10_illumos: Use --noescape so that $ZFS_BOOTFS is passed properly Signed-off-by: Vladimir Serbinenko --- util/grub.d/10_illumos.in | 2 +-

[PATCH 3/4] loader/xen: Add --noescape option.

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From cb89ee17a09c34eb604e3b2543b104fac25d2fa8 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 19 Jul 2023 15:26:41 +0200 Subject: [PATCH 3/4] loader/xen: Add --noescape option. --- grub-core/loader/i386/xen.c | 43 +++-- 1 file changed, 32 insertion

[PATCH 2/4] loader/multiboot: Add --noescape option

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From bc47b53012d526d85a4ca7f493322094695b193e Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 19 Jul 2023 15:25:14 +0200 Subject: [PATCH 2/4] loader/multiboot: Add --noescape option This is needed to boot Solaris/Illumos on some boot paths that need quotes. Signed-off-by: Vladimir

[PATCH 1/4] Add "noescape" argument to cmdline creation

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From cadef71f275af55740e33a6f6f7f86b5bd004855 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Wed, 19 Jul 2023 15:09:47 +0200 Subject: [PATCH 1/4] Add "noescape" argument to cmdline creation If OS parses in a way different from sh-like that GRUB does, escaping does more harm than good.

[PATCH 0/4] Fix escaping of zfs bootinfo for solaris

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
Currently Solaris/Illumos are unbootable if device path contains some characters including comma used in PCI names ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel

[PATCH 13/13] mm: Use %x and a case for displaying sizeof.

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 16e889308c335aaa4c54ba0724b655cffa2ed850 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 25 Aug 2023 13:37:43 +0200 Subject: [PATCH 13/13] mm: Use %x and a case for displaying sizeof. There is some variance in how compiler treat sizeof especially on 32-bit platforms where it c

[PATCH 12/13] configure: Add RPATH for freetype on NetBSD

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 010efc49a96c972988b4ba8a59d175b9c94fdc3d Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 25 Aug 2023 01:54:09 +0200 Subject: [PATCH 12/13] configure: Add RPATH for freetype on NetBSD Without this mkfont fails dynamic linking. THis is not ideal but improves the situation until

[PATCH 11/13] Support prefixed nvlist symbol names as found on NetBSD

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 186cb47e71ae9d14699c54f93b61ce5d749e8fa8 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 25 Aug 2023 00:01:25 +0200 Subject: [PATCH 11/13] Support prefixed nvlist symbol names as found on NetBSD --- configure.ac | 15 +-- grub-core/osdep/unix/get

[PATCH 10/13] configure: Add *BSD font paths

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From bf73ce71ac89abba3fca52ae3c019da4bebadab0 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Fri, 25 Aug 2023 00:00:52 +0200 Subject: [PATCH 10/13] configure: Add *BSD font paths --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/co

[PATCH 09/13] autogen: Accept python3.10 as a python alternative

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 8ac88c7b071635c7fb68f37f46005e92f794f2c9 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 23:25:48 +0200 Subject: [PATCH 09/13] autogen: Accept python3.10 as a python alternative NetBSD doesn't provide python or python3 --- autogen.sh | 2 +- 1 file changed, 1 inse

[PATCH 08/13] Rename HAVE_LIBZFS to USE_LIBZFS

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 378fbafb656bbd6d91d3f07ca6cf0b477ea8b72d Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 23:24:30 +0200 Subject: [PATCH 08/13] Rename HAVE_LIBZFS to USE_LIBZFS HAVE_LIBZFS is defined by libzfs test and hence conflicts with manual definition. Split them --- configu

[PATCH 07/13] gnulib: Tolerate always_inline attribute being ignored.

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From ac43147c891da23d2a851b5ceaebcecb2018ada3 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 22:45:53 +0200 Subject: [PATCH 07/13] gnulib: Tolerate always_inline attribute being ignored. It's not critical, Werror on it is inappropriate. --- conf/Makefile.common | 2 +-

[PATCH 06/13] Don't use %m formatter

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 5e90e29422f81de2cd113aa3be76b4d391824f70 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 22:32:45 +0200 Subject: [PATCH 06/13] Don't use %m formatter It's not available on NetBSD outside of syslog --- util/editenv.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

[PATCH 05/13] bsd/hostdisk: Fix NetBSD compilation

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From b58e7e00df3a797a2bbf9fcecfa3a1691adf6d10 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 21:48:20 +0200 Subject: [PATCH 05/13] bsd/hostdisk: Fix NetBSD compilation --- grub-core/osdep/bsd/hostdisk.c | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) di

[PATCH 04/13] bootstrap: Don't check gettext version

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 3f160dfd6802b47f961d7099a13b7aa907cdc479 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 21:47:50 +0200 Subject: [PATCH 04/13] bootstrap: Don't check gettext version --- bootstrap.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bootstrap.c

[PATCH 03/13] Fix compilation of generic/blocklist

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From f69ef81e25d21c401cb68ec061f3959bfce9988a Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 09:33:47 +0200 Subject: [PATCH 03/13] Fix compilation of generic/blocklist --- grub-core/osdep/generic/blocklist.c | 27 +-- 1 file changed, 25 inserti

[PATCH 02/13] diskfilter: Remove unused variable

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From d43c00a87dcdaded7b61f7b44df6bdf4d5610d53 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 02:32:55 +0200 Subject: [PATCH 02/13] diskfilter: Remove unused variable --- grub-core/disk/diskfilter.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a

[PATCH 01/13] Tolerate unused-but-set in generated lexer/bison files

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
From 9a13942b35ce04fda5644f7ae934c9e52bae50a1 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 24 Aug 2023 02:32:26 +0200 Subject: [PATCH 01/13] Tolerate unused-but-set in generated lexer/bison files --- Makefile.util.def | 2 +- grub-core/Makefile.core.def | 2 +- 2 file

[PATCH 0/13] Fix compilation on various *BSD

2023-10-08 Thread Vladimir 'phcoder' Serbinenko
I experienced several build failures and problems on *BSD. Here are the patches to fix them ___ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel