[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-block] [PATCH v5 08/18] qcow: make encrypt_sectors encrypt in
From: |
Kevin Wolf |
Subject: |
Re: [Qemu-block] [PATCH v5 08/18] qcow: make encrypt_sectors encrypt in place |
Date: |
Thu, 23 Feb 2017 13:38:07 +0100 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
Am 21.02.2017 um 12:55 hat Daniel P. Berrange geschrieben:
> Instead of requiring separate input/output buffers for
> encrypting data, change encrypt_sectors() to assume
> use of a single buffer, encrypting in place. One current
> caller uses the same buffer for input/output already
> and the other two callers are easily converted to do so.
>
> Reviewed-by: Alberto Garcia <address@hidden>
> Reviewed-by: Eric Blake <address@hidden>
> Reviewed-by: Max Reitz <address@hidden>
> Signed-off-by: Daniel P. Berrange <address@hidden>
> @@ -734,21 +729,15 @@ static coroutine_fn int qcow_co_writev(BlockDriverState
> *bs, int64_t sector_num,
> if (bs->encrypted) {
> Error *err = NULL;
> assert(s->cipher);
> - if (!cluster_data) {
> - cluster_data = g_malloc0(s->cluster_size);
> - }
> - if (encrypt_sectors(s, sector_num, cluster_data, buf,
> + if (encrypt_sectors(s, sector_num, buf,
> n, true, &err) < 0) {
This fits in a single line now.
Other than that:
Reviewed-by: Kevinn Wolf <address@hidden>
- Re: [Qemu-block] [PATCH v5 02/18] block: add ability to set a prefix for opt names, (continued)
- [Qemu-block] [PATCH v5 03/18] qcow: document another weakness of qcow AES encryption, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 04/18] qcow: require image size to be > 1 for new images, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 05/18] iotests: skip 042 with qcow which dosn't support zero sized images, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 06/18] iotests: skip 048 with qcow which doesn't support resize, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 07/18] iotests: fix 097 when run with qcow, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 09/18] qcow: convert QCow to use QCryptoBlock for encryption, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 08/18] qcow: make encrypt_sectors encrypt in place, Daniel P. Berrange, 2017/02/21
- Re: [Qemu-block] [PATCH v5 08/18] qcow: make encrypt_sectors encrypt in place,
Kevin Wolf <=
- [Qemu-block] [PATCH v5 10/18] qcow2: make qcow2_encrypt_sectors encrypt in place, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 12/18] qcow2: extend specification to cover LUKS encryption, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 11/18] qcow2: convert QCow2 to use QCryptoBlock for encryption, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 15/18] iotests: enable tests 134 and 158 to work with qcow (v1), Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 14/18] qcow2: add iotests to cover LUKS encryption support, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 13/18] qcow2: add support for LUKS encryption format, Daniel P. Berrange, 2017/02/21
- [Qemu-block] [PATCH v5 16/18] block: rip out all traces of password prompting, Daniel P. Berrange, 2017/02/21