[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [RFC 06/19] s390/zcrypt: register matrix device with VF
From: |
Martin Schwidefsky |
Subject: |
Re: [qemu-s390x] [RFC 06/19] s390/zcrypt: register matrix device with VFIO mediated device framework |
Date: |
Mon, 16 Oct 2017 11:03:29 +0200 |
On Fri, 13 Oct 2017 13:38:51 -0400
Tony Krowiak <address@hidden> wrote:
> diff --git a/drivers/s390/crypto/ap_matrix_bus.c
> b/drivers/s390/crypto/ap_matrix_bus.c
> index 66bfa54..418c23b 100644
> --- a/drivers/s390/crypto/ap_matrix_bus.c
> +++ b/drivers/s390/crypto/ap_matrix_bus.c
> @@ -61,6 +61,7 @@ static int ap_matrix_dev_create(void)
> matrix->device.bus = &ap_matrix_bus_type;
> matrix->device.parent = ap_matrix_root_device;
> matrix->device.release = ap_matrix_dev_release;
> + INIT_LIST_HEAD(&matrix->queues);
>
> ret = device_register(&matrix->device);
> if (ret) {
> diff --git a/drivers/s390/crypto/ap_matrix_bus.h
> b/drivers/s390/crypto/ap_matrix_bus.h
> index c2aff23..3eccc36 100644
> --- a/drivers/s390/crypto/ap_matrix_bus.h
> +++ b/drivers/s390/crypto/ap_matrix_bus.h
> @@ -12,8 +12,12 @@
>
> #include <linux/device.h>
>
> +#include "ap_bus.h"
> +
> struct ap_matrix {
> struct device device;
> + spinlock_t qlock;
> + struct list_head queues;
> };
>
> struct ap_matrix *ap_matrix_get_device(void);
Move these two hunks into patch #5 please. Yes, strictly speaking the two
elements
in the struct ap_matrix are needed only with patch #6, but it is fine to
introduce
an element with a new driver that is only exploited with a later patch.
--
blue skies,
Martin.
"Reality continues to ruin my life." - Calvin.
- [qemu-s390x] [RFC 16/19] KVM: s390: interface to configure KVM guest's AP matrix, (continued)
- [qemu-s390x] [RFC 16/19] KVM: s390: interface to configure KVM guest's AP matrix, Tony Krowiak, 2017/10/13
- [qemu-s390x] [RFC 03/19] s390/zcrypt: new AP matrix bus, Tony Krowiak, 2017/10/13
- [qemu-s390x] [RFC 02/19] KVM: s390: refactor crypto initialization, Tony Krowiak, 2017/10/13
- [qemu-s390x] [RFC 05/19] s390/zcrypt: base implementation of AP matrix device driver, Tony Krowiak, 2017/10/13
- [qemu-s390x] [RFC 06/19] s390/zcrypt: register matrix device with VFIO mediated device framework, Tony Krowiak, 2017/10/13
- Re: [qemu-s390x] [RFC 06/19] s390/zcrypt: register matrix device with VFIO mediated device framework,
Martin Schwidefsky <=
- Re: [qemu-s390x] [RFC 00/19] KVM: s390/crypto/vfio: guest dedicated crypto adapters, Martin Schwidefsky, 2017/10/16
- Re: [qemu-s390x] [RFC 00/19] KVM: s390/crypto/vfio: guest dedicated crypto adapters, Cornelia Huck, 2017/10/16
- Re: [qemu-s390x] [RFC 00/19] KVM: s390/crypto/vfio: guest dedicated crypto adapters, Christian Borntraeger, 2017/10/18
- Re: [qemu-s390x] [RFC 00/19] KVM: s390/crypto/vfio: guest dedicated crypto adapters, Cornelia Huck, 2017/10/29