From: Tony Krowiak <akrowiak@linux.ibm.com>
To: Thomas Huth <thuth@redhat.com>,
Harald Freudenberger <freude@linux.ibm.com>,
linux-s390@vger.kernel.org, Halil Pasic <pasic@linux.ibm.com>,
Jason Herne <jjherne@linux.ibm.com>
Cc: linux-kernel@vger.kernel.org, Heiko Carstens <hca@linux.ibm.com>,
Vasily Gorbik <gor@linux.ibm.com>
Subject: Re: [RFC PATCH] s390: vfio-ap: Register the vfio_ap module for the "ap" parent bus
Date: Thu, 27 Jan 2022 10:10:36 -0500 [thread overview]
Message-ID: <f986c509-adea-ed8c-36a6-24715362661c@linux.ibm.com> (raw)
In-Reply-To: <345cc07e-e654-2607-57ff-95e78dbfe12d@redhat.com>
On 1/27/22 05:33, Thomas Huth wrote:
> On 14/12/2021 22.28, Tony Krowiak wrote:
>>
>>
>> On 12/13/21 10:44, Harald Freudenberger wrote:
>>> On 01.12.21 15:11, Thomas Huth wrote:
>>>> The crypto devices that we can use with the vfio_ap module are sitting
>>>> on the "ap" bus, not on the "vfio_ap" bus that the module defines
>>>> itself. With this change, the vfio_ap module now gets automatically
>>>> loaded if a supported crypto adapter is available in the host.
>>>>
>>>> Signed-off-by: Thomas Huth <thuth@redhat.com>
>>>> ---
>>>> Note: Marked as "RFC" since I'm not 100% sure about it ...
>>>> please review carefully!
>>>>
>>>> drivers/s390/crypto/vfio_ap_drv.c | 2 +-
>>>> 1 file changed, 1 insertion(+), 1 deletion(-)
>>>>
>>>> diff --git a/drivers/s390/crypto/vfio_ap_drv.c
>>>> b/drivers/s390/crypto/vfio_ap_drv.c
>>>> index 4d2556bc7fe5..5580e40608a4 100644
>>>> --- a/drivers/s390/crypto/vfio_ap_drv.c
>>>> +++ b/drivers/s390/crypto/vfio_ap_drv.c
>>>> @@ -39,7 +39,7 @@ static struct ap_device_id ap_queue_ids[] = {
>>>> { /* end of sibling */ },
>>>> };
>>>> -MODULE_DEVICE_TABLE(vfio_ap, ap_queue_ids);
>>>> +MODULE_DEVICE_TABLE(ap, ap_queue_ids);
>>>> /**
>>>> * vfio_ap_queue_dev_probe:
>>> I had a chance to check this now.
>>> First I have to apologize about the dispute with vfio devices
>>> appearing on the ap bus.
>>> That's not the case with this patch. As Connie states the
>>> MODULE_DEVICE_TABLE() does not
>>> change the parent of a device and vfio_ap_drv is a driver for ap
>>> devices and thus
>>> belongs to the ap bus anyway.
>>> So what's left is that with this change the vfio_ap kernel module is
>>> automatically loaded
>>> when an ap device type 10-13 is recognized by the ap bus. So the
>>> intention of the patch
>>> is fulfilled.
>>> Yet another kernel module which may occupy memory but will never get
>>> used by most customers.
>>> This may not be a problem but I had a glance at the list of kernel
>>> modules loaded on my
>>> LPAR with and without the patch and the difference is:
>>> ...
>>> kvm 512000 1 vfio_ap
>>> vfio_ap 28672 0
>>> ...
>>> So the vfio_ap module has a dependency to the biggest kernel module
>>> ever - kvm.
>>> Do I need to say something more?
>>>
>>> If this dependency is removed then I would not hesitate to accept
>>> this patch. However
>>> this is up to Tony as he is the maintainer of the vfio ap device
>>> driver.
>>
>> The vfio_ap device driver has a dependency on kvm, it can not be
>> removed.
>> If the user base for vfio_ap is minimal, then I see no reason why the
>> vfio_ap
>> module should be automatically loaded when an AP device type 10-13 is
>> recognized by the AP bus. The module is needed only to pass through AP
>> queue devices to a KVM guest.
>
> To continue the discussion here - it seems like my patch here won't be
> accepted? Shall I send another one instead to remove the bad
> MODLE_DEVICE_TABLE from the vfio_ap_drv.c file?
>
> Thomas
After re-reviewing all of the comments, I am okay with this patch:
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
If there are any other objections, speak now or forever hold your peace:)
next prev parent reply other threads:[~2022-01-27 15:10 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-01 14:11 Thomas Huth
2021-12-01 17:10 ` Harald Freudenberger
2021-12-02 7:13 ` Thomas Huth
2021-12-02 8:33 ` Harald Freudenberger
2021-12-03 19:26 ` Tony Krowiak
2021-12-08 13:46 ` Thomas Huth
2021-12-08 14:25 ` Cornelia Huck
2022-01-27 14:41 ` Tony Krowiak
2022-01-27 14:23 ` Tony Krowiak
2022-01-31 11:03 ` Harald Freudenberger
2021-12-13 15:44 ` Harald Freudenberger
2021-12-13 16:11 ` Cornelia Huck
2021-12-14 21:55 ` Tony Krowiak
2021-12-15 12:05 ` Thomas Huth
2021-12-15 12:51 ` Cornelia Huck
2021-12-15 14:38 ` Thomas Huth
2021-12-15 23:02 ` Halil Pasic
2021-12-16 10:39 ` Cornelia Huck
2021-12-16 11:25 ` Halil Pasic
2022-01-27 15:04 ` Tony Krowiak
2022-01-28 1:35 ` Halil Pasic
2022-01-27 14:48 ` Tony Krowiak
2022-01-27 14:46 ` Tony Krowiak
2021-12-14 21:28 ` Tony Krowiak
2022-01-27 10:33 ` Thomas Huth
2022-01-27 15:10 ` Tony Krowiak [this message]
2021-12-16 9:50 ` Harald Freudenberger
2021-12-16 10:44 ` Cornelia Huck
2022-01-27 14:45 ` Tony Krowiak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f986c509-adea-ed8c-36a6-24715362661c@linux.ibm.com \
--to=akrowiak@linux.ibm.com \
--cc=freude@linux.ibm.com \
--cc=gor@linux.ibm.com \
--cc=hca@linux.ibm.com \
--cc=jjherne@linux.ibm.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pasic@linux.ibm.com \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®