gitlab: enable afalg tests in fedora system test
PATCH 1/1 gitlab: enable afalg tests in fedora system test
The AF_ALG crypto integration for Linux is not being tested in any CI scenario. It always requires an explicit configure time flag to be passed to turn it on. The Fedora system test is arbitrarily picked as the place to test it.
--- .gitlab-ci.d/buildtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
This is to detect the situation Markus found here:
https://lists.nongnu.org/archive/html/qemu-devel/2024-10/msg03040.html
.gitlab-ci.d/buildtest.yml +1 -1
@@ -115,7 +115,7 @@ build-system-fedora: job: amd64-fedora-container variables: IMAGE: fedora - CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs + CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs --enable-crypto-afalg TARGETS: microblaze-softmmu mips-softmmu xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu MAKE_CHECK_ARGS: check-build
Signature · 1 line
2.46.0
Quoted 9 lines · Daniel P. Berrangé
The
AF_ALGcrypto integration for Linux is not being tested in any CI scenario. It always requires an explicit configure time flag to be passed to turn it on. The Fedora system test is arbitrarily picked as the place to test it.Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/buildtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Quoted 19 lines · Daniel P. Berrangé
The
AF_ALGcrypto integration for Linux is not being tested in any CI scenario. It always requires an explicit configure time flag to be passed to turn it on. The Fedora system test is arbitrarily picked as the place to test it.Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/buildtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)This is to detect the situation Markus found here:
https://lists.nongnu.org/archive/html/qemu-devel/2024-10/msg03040.html.gitlab-ci.d/buildtest.yml +0
-0
.gitlab-ci.d/buildtest.yml build-system-fedora: · line 121
Quoted 8 lines
.gitlab-ci.d/buildtest.yml +1
-1@@ -115,7 +115,7 @@ build-system-fedora: job: amd64-fedora-container variables: IMAGE: fedora - CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs + CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs --enable-crypto-afalg TARGETS: microblaze-softmmu mips-softmmu xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu MAKE_CHECK_ARGS: check-build
Is there a reason for this feature being disabled by default? Who is using it if it is disabled by default? Should we maybe rather enable it by default instead?
Thomas
Quoted 24 lines · Thomas Huth
Quoted 23 lines · Daniel P. Berrangé
The
AF_ALGcrypto integration for Linux is not being tested in any CI scenario. It always requires an explicit configure time flag to be passed to turn it on. The Fedora system test is arbitrarily picked as the place to test it.Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/buildtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)This is to detect the situation Markus found here:
https://lists.nongnu.org/archive/html/qemu-devel/2024-10/msg03040.html.gitlab-ci.d/buildtest.yml +0
-1@@ -115,7 +115,7 @@ build-system-fedora: job: amd64-fedora-container variables: IMAGE: fedora - CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs
Quoted 8 lines
.gitlab-ci.d/buildtest.yml build-system-fedora: · line 121
Quoted 4 lines
.gitlab-ci.d/buildtest.yml +1
-0+ CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs --enable-crypto-afalg TARGETS: microblaze-softmmu mips-softmmu xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu MAKE_CHECK_ARGS: check-buildIs there a reason for this feature being disabled by default? Who is using it if it is disabled by default? Should we maybe rather enable it by default instead?
afalg isn't something you want to use in general. It performs worse than the userspace crypto in many cases, especially for small buffers where the context switch overhead kills.
It is potentially interesting if you have hardware crypto accelerator and your guest workload also wants virtio-crypto.
Having it as a compile time option is not ideal, but it was the least effort tradeoff.
With regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Thomas Huth
Reviewed-byQuoted 38 lines · Daniel P. Berrangé
Quoted 24 lines · Thomas Huth
Quoted 23 lines · Daniel P. Berrangé
The
AF_ALGcrypto integration for Linux is not being tested in any CI scenario. It always requires an explicit configure time flag to be passed to turn it on. The Fedora system test is arbitrarily picked as the place to test it.Signed-off-by Daniel P. Berrangé <[email protected]>--- .gitlab-ci.d/buildtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)This is to detect the situation Markus found here:
https://lists.nongnu.org/archive/html/qemu-devel/2024-10/msg03040.html.gitlab-ci.d/buildtest.yml +0
-1@@ -115,7 +115,7 @@ build-system-fedora: job: amd64-fedora-container variables: IMAGE: fedora - CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docsQuoted 8 lines
.gitlab-ci.d/buildtest.yml build-system-fedora: · line 121
Quoted 4 lines
.gitlab-ci.d/buildtest.yml +1
-0+ CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs --enable-crypto-afalg TARGETS: microblaze-softmmu mips-softmmu xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu MAKE_CHECK_ARGS: check-buildIs there a reason for this feature being disabled by default? Who is using it if it is disabled by default? Should we maybe rather enable it by default instead?
afalg isn't something you want to use in general. It performs worse than the userspace crypto in many cases, especially for small buffers where the context switch overhead kills.
Quoted 5 lines
It is potentially interesting if you have hardware crypto accelerator and your guest workload also wants virtio-crypto.
Having it as a compile time option is not ideal, but it was the least effort tradeoff.
Ok, makes sense, thanks for the explanation.
Quoted 6 lines · Daniel P. Berrangé
The
AF_ALGcrypto integration for Linux is not being tested in any CI scenario. It always requires an explicit configure time flag to be passed to turn it on. The Fedora system test is arbitrarily picked as the place to test it.Signed-off-by Daniel P. Berrangé <[email protected]>
Thanks,
C.
Quoted 21 lines
--- .gitlab-ci.d/buildtest.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)This is to detect the situation Markus found here:
https://lists.nongnu.org/archive/html/qemu-devel/2024-10/msg03040.html.gitlab-ci.d/buildtest.yml +1
-1@@ -115,7 +115,7 @@ build-system-fedora: job: amd64-fedora-container variables: IMAGE: fedora - CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs + CONFIGURE_ARGS: --disable-gcrypt --enable-nettle --enable-docs --enable-crypto-afalg TARGETS: microblaze-softmmu mips-softmmu xtensa-softmmu m68k-softmmu riscv32-softmmu ppc-softmmu sparc64-softmmu MAKE_CHECK_ARGS: check-build