[PATCH 00/11] makedumpfile: Add zstd support for makedumpfile

2021-09-10 Thread Tao Liu
This patch set adds ZSTD compression support to makedumpfile. With ZSTD compression support, the vmcore dump size and time consumption can have a better balance than zlib/lzo/snappy. How to build: Build using make: $ make USEZSTD=on Performance Comparison: How to measure

[PATCH 03/11] makedumpfile: Add zstd build support

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- Makefile | 5 + 1 file changed, 5 insertions(+) diff --git a/Makefile b/Makefile index 5d61a69..725c186 100644 --- a/Makefile +++ b/Makefile @@ -68,6 +68,11 @@ endif CFLAGS += -DUSESNAPPY endif +ifeq ($(USEZSTD), on) +LIBS := -lzstd $(L

[PATCH 06/11] makedumpfile: Add parallel threads zstd compression processing

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu --- makedumpfile.c | 26 ++ makedumpfile.h | 6 ++ 2 files changed, 32 insertions(+) diff --git a/makedumpfile.c b/makedumpfile.c index 76a7a77..af21a84 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -3892,6 +3892,12 @@ initial_for_paralle

[PATCH 01/11] makedumpfile: Add dump header for zstd.

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- diskdump_mod.h | 1 + 1 file changed, 1 insertion(+) diff --git a/diskdump_mod.h b/diskdump_mod.h index 3733953..e4bce5c 100644 --- a/diskdump_mod.h +++ b/diskdump_mod.h @@ -98,6 +98,7 @@ struct kdump_sub_header { #define DUMP_DH_COMPRESSED_IN

[PATCH 02/11] makedumpfile: Add command-line processing for zstd

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- makedumpfile.c | 5 - makedumpfile.h | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/makedumpfile.c b/makedumpfile.c index 157..100b407 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -11656,7 +11656,7 @@ main(in

[PATCH 05/11] makedumpfile: Add single thread zstd compression processing

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- makedumpfile.c | 41 - makedumpfile.h | 3 +++ 2 files changed, 39 insertions(+), 5 deletions(-) diff --git a/makedumpfile.c b/makedumpfile.c index f3bf297..76a7a77 100644 --- a/makedumpfile.c +++ b/make

[PATCH 04/11] makedumpfile: Notify zstd unsupporting when disabled

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- makedumpfile.c | 9 + 1 file changed, 9 insertions(+) diff --git a/makedumpfile.c b/makedumpfile.c index 100b407..f3bf297 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -4171,6 +4171,15 @@ initial(void) } #endif +#ifndef

[PATCH 07/11] makedumpfile: Add single thread zstd uncompression processing

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- makedumpfile.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/makedumpfile.c b/makedumpfile.c index af21a84..e70d882 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -832,7 +832,7 @@ readpage_kdump_compressed(un

[PATCH 08/11] makedumpfile: Add parallel threads zstd uncompression processing

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu --- makedumpfile.c | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/makedumpfile.c b/makedumpfile.c index e70d882..2514eb6 100644 --- a/makedumpfile.c +++ b/makedumpfile.c @@ -919,7 +919,7 @@ readpage_kdump_compressed_parallel(int fd_memory, uns

[PATCH 09/11] makedumpfile: Add zstd help message

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- print_info.c | 30 +- 1 file changed, 21 insertions(+), 9 deletions(-) diff --git a/print_info.c b/print_info.c index 8b28554..e4bfefc 100644 --- a/print_info.c +++ b/print_info.c @@ -38,6 +38,11 @@ show_version(void

[PATCH 11/11] makedumpfile: Add zstd README description

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- README | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README b/README index 6629440..0b17cf1 100644 --- a/README +++ b/README @@ -49,7 +49,10 @@ 7.Build with snappy support: # make USESNAPPY=on ; make install

[PATCH 10/11] makedumpfile: Add zstd manual description

2021-09-10 Thread Tao Liu
Signed-off-by: Tao Liu Signed-off-by: Coiby Xu --- makedumpfile.8 | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/makedumpfile.8 b/makedumpfile.8 index f782e5f..3022d9c 100644 --- a/makedumpfile.8 +++ b/makedumpfile.8 @@ -132,10 +132,11 @@ configuration, you need to us

Re: [PATCH v3 2/8] mm: Introduce a function to check for confidential computing features

2021-09-10 Thread Borislav Petkov
On Wed, Sep 08, 2021 at 05:58:33PM -0500, Tom Lendacky wrote: > In prep for other confidential computing technologies, introduce a generic preparation > helper function, cc_platform_has(), that can be used to check for specific > active confidential computing attributes, like memory encryption. T

[PATCH 2/3] multiboot2: Use rel_min and rel_max for mbi destination

2021-09-10 Thread Zhaofeng Li
This would segfault if mhi.rel_tag didn't exist. Signed-off-by: Zhaofeng Li --- kexec/arch/i386/kexec-mb2-x86.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kexec/arch/i386/kexec-mb2-x86.c b/kexec/arch/i386/kexec-mb2-x86.c index c10c0ef..49fcc2d 100644 --- a/kexec/arch/i38

[PATCH 3/3] multiboot2: Accept x86-64 images

2021-09-10 Thread Zhaofeng Li
Signed-off-by: Zhaofeng Li --- kexec/arch/i386/kexec-mb2-x86.c | 34 ++-- kexec/arch/x86_64/kexec-x86_64.c | 4 ++-- 2 files changed, 34 insertions(+), 4 deletions(-) diff --git a/kexec/arch/i386/kexec-mb2-x86.c b/kexec/arch/i386/kexec-mb2-x86.c index 49fcc2d..31b4c

[PATCH 0/3] kexec-tools: multiboot2: Accept x86-64 images

2021-09-10 Thread Zhaofeng Li
Hi Simon, This patch series adds support for loading x86-64 ELF images with the multiboot2 header and fixes a couple of related issues. Tested by loading a custom research OS kernel. Thank you for your review! Zhaofeng Zhaofeng Li (3): multiboot2: Correct MBI size calculation multiboot2: Us

[PATCH 1/3] multiboot2: Correct MBI size calculation

2021-09-10 Thread Zhaofeng Li
tag_load_base_addr is dependent on rel_tag, and tag_framebuffer was not accounted for. Signed-off-by: Zhaofeng Li --- kexec/arch/i386/kexec-mb2-x86.c | 15 +++ 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/kexec/arch/i386/kexec-mb2-x86.c b/kexec/arch/i386/kexec-mb2-x