[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH] crypto: move common bits for all emulators to l
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH] crypto: move common bits for all emulators to libqemuutil |
Date: |
Tue, 6 Aug 2019 15:07:40 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 |
On 06/08/19 11:41, Daniel P. Berrangé wrote:
> On Tue, Aug 06, 2019 at 09:11:15AM +0200, Paolo Bonzini wrote:
>> qcrypto_random_*, AES and qcrypto_init do not need to be linked as a whole
>> and are the only parts that are used by user-mode emulation. Place them
>> in libqemuutil, so that whatever needs them will pick them up automatically.
>>
>> Signed-off-by: Paolo Bonzini <address@hidden>
>> ---
>> MAINTAINERS | 3 +++
>> Makefile | 4 +---
>> Makefile.objs | 1 -
>> Makefile.target | 2 --
>> crypto/Makefile.objs | 7 -------
>> util/Makefile.objs | 5 +++++
>> {crypto => util}/aes.c | 0
>> crypto/init.c => util/crypto-init.c | 0
>> {crypto => util}/random-gcrypt.c | 0
>> {crypto => util}/random-gnutls.c | 0
>> {crypto => util}/random-platform.c | 0
>
> Ewww, definitely do not want to see these files moved as it spreads the
> crypto related code over multiple locations again, which is exactly what
> I spent time fixing when introducing the crypto/ directory.
>
> Placing them to libqemuutil.a shouldn't mean we need to move the code too.
Fair enough, will do in v2.
Paolo