aboutsummaryrefslogtreecommitdiff
path: root/crypto/Makefile.objs
diff options
context:
space:
mode:
authorDaniel P. Berrangé <berrange@redhat.com>2019-10-14 17:28:27 +0100
committerDaniel P. Berrangé <berrange@redhat.com>2019-10-28 16:20:28 +0100
commite0576942e005de0f9226913cb0750cf445a33565 (patch)
tree52a3ab5a21585439d4a429efe671d7e5a8ddf607 /crypto/Makefile.objs
parentb4296d7f88f3427c366af26b4fbd6765db88f846 (diff)
downloadqemu-e0576942e005de0f9226913cb0750cf445a33565.zip
qemu-e0576942e005de0f9226913cb0750cf445a33565.tar.gz
qemu-e0576942e005de0f9226913cb0750cf445a33565.tar.bz2
crypto: add support for gcrypt's native XTS impl
Libgcrypt 1.8.0 added support for the XTS mode. Use this because long term we wish to delete QEMU's XTS impl to avoid carrying private crypto algorithm impls. As an added benefit, using this improves performance from 531 MB/sec to 670 MB/sec, since we are avoiding several layers of function call indirection. This is even more noticable with the gcrypt builds in Fedora or RHEL-8 which have a non-upstream patch for FIPS mode which does mutex locking. This is catastrophic for encryption performance with small block sizes, meaning this patch improves encryption from 240 MB/sec to 670 MB/sec. Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
Diffstat (limited to 'crypto/Makefile.objs')
-rw-r--r--crypto/Makefile.objs2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/Makefile.objs b/crypto/Makefile.objs
index 7fe2fa9..cdb01f9 100644
--- a/crypto/Makefile.objs
+++ b/crypto/Makefile.objs
@@ -31,7 +31,7 @@ crypto-obj-y += ivgen-essiv.o
crypto-obj-y += ivgen-plain.o
crypto-obj-y += ivgen-plain64.o
crypto-obj-y += afsplit.o
-crypto-obj-y += xts.o
+crypto-obj-$(CONFIG_QEMU_PRIVATE_XTS) += xts.o
crypto-obj-y += block.o
crypto-obj-y += block-qcow.o
crypto-obj-y += block-luks.o