[PATCH] misc: Replace code that calculates the log of sector size with grub_log2ull

2022-06-09 Thread Glenn Washburn
Signed-off-by: Glenn Washburn --- grub-core/disk/ata.c | 5 + grub-core/disk/efi/efidisk.c | 4 +--- grub-core/disk/geli.c | 4 +--- grub-core/disk/i386/pc/biosdisk.c | 6 +- grub-core/disk/ieee1275/obdisk.c | 6 +- grub-core/disk/ieee1275/ofdisk.c

Re: [PATCH V3] Enable TDX measurement to RTMR register

2022-06-09 Thread Daniel Kiper
On Fri, May 20, 2022 at 09:41:28PM +0800, Lu Ken wrote: > Intel Trust Domain Extensions(Intel TDX) refers to an Intel technology > that extends Virtual Machine Extensions(VMX) and Multi-Key Total Memory > Encryption(MK-TME) with a new kind of virtual machine guest called a > Trust Domain(TD)[1]. A

Re: [PATCH v3 0/3] Cryptomount detached headers

2022-06-09 Thread Daniel Kiper
On Wed, Jun 08, 2022 at 10:34:01AM -0500, Glenn Washburn wrote: > Updates since v2: > * Address uneeded ret variable pointed out by Patrick > * Rebased onto latest master with keyfile and security changes. I don't think >this actually changed these patches though. > > Conceptually the approac

[PATCH v5 0/5] grub-mkconfig: Fix quadratic algorithm for sorting menu items

2022-06-09 Thread Mathieu Desnoyers
This series of patches fixes a O(n^2) algorithm in the menu items generation scripts. Testing is still needed on linux_xen, hurd, and kfreebsd. Mathieu Mathieu Desnoyers (5): grub-mkconfig linux: Fix quadratic algorithm for sorting menu items grub-mkconfig linux_xen: Fix quadratic algorithm

[PATCH v5 3/5] grub-mkconfig hurd: Fix quadratic algorithm for sorting menu items

2022-06-09 Thread Mathieu Desnoyers
The current implementation of the 10_hurd script implements its menu items sorting in bash with a quadratic algorithm, calling "sed", "sort", "head", and "grep" to compare versions between individual lines, which is annoyingly slow for kernel developers who can easily end up with 50-100 kernels in

[PATCH v5 1/5] grub-mkconfig linux: Fix quadratic algorithm for sorting menu items

2022-06-09 Thread Mathieu Desnoyers
The current implementation of the 10_linux script implements its menu items sorting in bash with a quadratic algorithm, calling "sed", "sort", "head", and "grep" to compare versions between individual lines, which is annoyingly slow for kernel developers who can easily end up with 50-100 kernels in

[PATCH v5 5/5] Cleanup: grub-mkconfig_lib: remove unused version comparison functions

2022-06-09 Thread Mathieu Desnoyers
There are no users left of version_find_latest(), version_test_gt(), and version_test_numeric(). Remove those unused helper functions. Using those helper functions is what caused the quadratic sorting performance issues in the first place, so removing them is a net win. Signed-off-by: Mathieu Desn

[PATCH v5 2/5] grub-mkconfig linux_xen: Fix quadratic algorithm for sorting menu items

2022-06-09 Thread Mathieu Desnoyers
The current implementation of the 20_linux_xen script implements its menu items sorting in bash with a quadratic algorithm, calling "sed", "sort", "head", and "grep" to compare versions between individual lines, which is annoyingly slow for kernel developers who can easily end up with 50-100 kernel

[PATCH v5 4/5] grub-mkconfig kfreebsd: Fix quadratic algorithm for sorting menu items

2022-06-09 Thread Mathieu Desnoyers
The current implementation of the 10_kfreebsd script implements its menu items sorting in bash with a quadratic algorithm, calling "sed", "sort", "head", and "grep" to compare versions between individual lines, which is annoyingly slow for kernel developers who can easily end up with 50-100 kernels