Re: [PATCH v2 07/12] virtio: queue_reset: pci: support VIRTIO_F_RING_RESET

2022-01-20 Thread Michael S. Tsirkin
On Thu, Jan 20, 2022 at 02:42:58PM +0800, Xuan Zhuo wrote: > This patch implements virtio pci support for QUEUE RESET. > > Performing reset on a queue is divided into two steps: > > 1. reset_vq: reset one vq > 2. enable_reset_vq: re-enable the reset queue > > In the first step, these tasks will

Re: [PATCH v2 07/12] virtio: queue_reset: pci: support VIRTIO_F_RING_RESET

2022-01-20 Thread Xuan Zhuo
On Thu, 20 Jan 2022 05:55:14 -0500, Michael S. Tsirkin wrote: > On Thu, Jan 20, 2022 at 02:42:58PM +0800, Xuan Zhuo wrote: > > This patch implements virtio pci support for QUEUE RESET. > > > > Performing reset on a queue is divided into two steps: > > > > 1. reset_vq: reset one vq > > 2. enable_re

Re: [PATCH v2 2/2] virtio: acknowledge all features before access

2022-01-20 Thread Cornelia Huck
On Tue, Jan 18 2022, "Michael S. Tsirkin" wrote: > The feature negotiation was designed in a way that > makes it possible for devices to know which config > fields will be accessed by drivers. > > This is broken since commit 404123c2db79 ("virtio: allow drivers to > validate features") with fallo

Re: [PATCH v2 07/12] virtio: queue_reset: pci: support VIRTIO_F_RING_RESET

2022-01-20 Thread Michael S. Tsirkin
On Thu, Jan 20, 2022 at 07:46:20PM +0800, Xuan Zhuo wrote: > On Thu, 20 Jan 2022 05:55:14 -0500, Michael S. Tsirkin > wrote: > > On Thu, Jan 20, 2022 at 02:42:58PM +0800, Xuan Zhuo wrote: > > > This patch implements virtio pci support for QUEUE RESET. > > > > > > Performing reset on a queue is di

Re: [PATCH v1] vhost: cache avail index in vhost_enable_notify()

2022-01-20 Thread Stefano Garzarella
On Fri, Jan 14, 2022 at 2:40 PM Michael S. Tsirkin wrote: > > On Fri, Jan 14, 2022 at 02:38:16PM +0100, Stefano Garzarella wrote: > > On Fri, Jan 14, 2022 at 07:45:35AM -0500, Michael S. Tsirkin wrote: > > > On Fri, Jan 14, 2022 at 10:05:08AM +0100, Stefano Garzarella wrote: > > > > In vhost_enabl

Re: [PATCH v1] vhost: cache avail index in vhost_enable_notify()

2022-01-20 Thread Michael S. Tsirkin
On Thu, Jan 20, 2022 at 04:08:39PM +0100, Stefano Garzarella wrote: > On Fri, Jan 14, 2022 at 2:40 PM Michael S. Tsirkin wrote: > > > > On Fri, Jan 14, 2022 at 02:38:16PM +0100, Stefano Garzarella wrote: > > > On Fri, Jan 14, 2022 at 07:45:35AM -0500, Michael S. Tsirkin wrote: > > > > On Fri, Jan

Re: [PATCH v9 09/11] firmware: arm_scmi: Add atomic mode support to virtio transport

2022-01-20 Thread Michael S. Tsirkin
On Thu, Jan 20, 2022 at 08:09:56PM +0100, Peter Hilber wrote: > On 19.01.22 13:23, Cristian Marussi wrote: > > On Tue, Jan 18, 2022 at 03:21:03PM +0100, Peter Hilber wrote: > >> On 21.12.21 15:00, Cristian Marussi wrote: > >>> Add support for .mark_txdone and .poll_done transport operations to SCMI

[PATCH 0/3] Introduce akcipher service for virtio-crypto

2022-01-20 Thread zhenwei pi
Introduce akcipher service, implement RSA algorithm, and a minor fix. zhenwei pi (3): virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC virtio-crypto: introduce akcipher service virtio-crypto: implement RSA algorithm drivers/crypto/virtio/Makefile| 1 + .../virtio/virtio_crypt

[PATCH 1/3] virtio_crypto: Introduce VIRTIO_CRYPTO_NOSPC

2022-01-20 Thread zhenwei pi
Base on the lastest virtio crypto spec, define VIRTIO_CRYPTO_NOSPC. Signed-off-by: zhenwei pi --- include/uapi/linux/virtio_crypto.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/uapi/linux/virtio_crypto.h b/include/uapi/linux/virtio_crypto.h index a03932f10565..1166a49084b0 10064

[PATCH 2/3] virtio-crypto: introduce akcipher service

2022-01-20 Thread zhenwei pi
Introduce asymmetric service definition, asymmetric operations and several well known algorithms. Co-developed-by: lei he Signed-off-by: lei he Signed-off-by: zhenwei pi --- include/uapi/linux/virtio_crypto.h | 99 +++--- 1 file changed, 89 insertions(+), 10 deletions(-

[PATCH 3/3] virtio-crypto: implement RSA algorithm

2022-01-20 Thread zhenwei pi
Support rsa & pkcs1pad(rsa,sha1) with priority 150. Test with QEMU built-in backend, it works fine. 1, The self-test framework of crypto layer works fine in guest kernel 2, Test with Linux guest(with asym support), the following script test(note that pkey_XXX is supported only in a newer version o

Re: [PATCH v2 07/12] virtio: queue_reset: pci: support VIRTIO_F_RING_RESET

2022-01-20 Thread Xuan Zhuo
On Thu, 20 Jan 2022 10:03:45 -0500, Michael S. Tsirkin wrote: > On Thu, Jan 20, 2022 at 07:46:20PM +0800, Xuan Zhuo wrote: > > On Thu, 20 Jan 2022 05:55:14 -0500, Michael S. Tsirkin > > wrote: > > > On Thu, Jan 20, 2022 at 02:42:58PM +0800, Xuan Zhuo wrote: > > > > This patch implements virtio p

Re: [PATCH 3/3] virtio-crypto: implement RSA algorithm

2022-01-20 Thread kernel test robot
kernel/git/herbert/cryptodev-2.6.git master config: hexagon-randconfig-r026-20220120 (https://download.01.org/0day-ci/archive/20220121/202201211427.tgczsuoo-...@intel.com/config) compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project d4baf3b1322b84816aa623d8e8cb45a49cb68b84) reproduce (t