Re: [PATCH v2 1/2] virtio: introduce little edian functions for virtio_cread/write# family

2016-11-26 Thread Michael S. Tsirkin
On Tue, Nov 22, 2016 at 04:10:22PM +0800, Gonglei wrote: > Virtio modern devices are always little edian, let's introduce > the LE functions for read/write configuration space for > virtio modern devices, which avoid complaint by Sparse when > we use the virtio_creaed/virtio_cwrite in VIRTIO_1

Re: [PATCH v2 2/2] crypto: add virtio-crypto driver

2016-11-26 Thread Michael S. Tsirkin
On Tue, Nov 22, 2016 at 04:10:23PM +0800, Gonglei wrote: > This patch introduces virtio-crypto driver for Linux Kernel. > > The virtio crypto device is a virtual cryptography device > as well as a kind of virtual hardware accelerator for > virtual machines. The encryption anddecryption requests >

[PATCH 0/2] CRC32 for ARM and arm64 using PMULL and CRC instructions

2016-11-26 Thread Ard Biesheuvel
Version 8 of the ARM architecture introduces both a set of dedicated CRC32 instructions, and a 64x64 to 128 bit polynomial multiplication instruction, both of which can be used to accelerate CRC32 calculations. These patches contains ports of the existing polynomial multiplication based CRC32

[PATCH 1/2] crypto: arm64/crc32 - accelerated support based on x86 SSE implementation

2016-11-26 Thread Ard Biesheuvel
This is a combination of the the Intel algorithm implemented using SSE and PCLMULQDQ instructions from arch/x86/crypto/crc32-pclmul_asm.S, and the new CRC32 extensions introduced for both 32-bit and 64-bit ARM in version 8 of the architecture. The PMULL/NEON algorithm is faster, but operates on

[PATCH 2/2] crypto: arm/crc32 - accelerated support based on x86 SSE implementation

2016-11-26 Thread Ard Biesheuvel
This is a combination of the the Intel algorithm implemented using SSE and PCLMULQDQ instructions from arch/x86/crypto/crc32-pclmul_asm.S, and the new CRC32 extensions introduced for both 32-bit and 64-bit ARM in version 8 of the architecture. The PMULL/NEON algorithm is faster, but operates on

[PATCH] crypto: CTR DRBG - prevent invalid SG mappings

2016-11-26 Thread Stephan Mueller
Hi Herbert, as discussed in another thread, SGs must not be used with stack memory pointers. This issue was the culprit to the error I see with the CTR DRBG. The attached patch fixes the issue. ---8<--- When using SGs, only heap memory (memory that is valid as per virt_addr_valid) is allowed

RE: [PATCH v2 0/2] virtio-crypto: add Linux driver

2016-11-26 Thread Gonglei (Arei)
Hi, > -Original Message- > From: Gonglei (Arei) > Sent: Tuesday, November 22, 2016 4:10 PM > To: linux-ker...@vger.kernel.org; qemu-de...@nongnu.org; > virtio-...@lists.oasis-open.org; virtualizat...@lists.linux-foundation.org; > linux-crypto@vger.kernel.org > Subject: [PATCH v2 0/2]