From: Abhishek Sahu <abhsahu@nvidia.com>
To: Alex Williamson <alex.williamson@redhat.com>
Cc: Jason Gunthorpe <jgg@nvidia.com>,
Cornelia Huck <cohuck@redhat.com>,
Yishai Hadas <yishaih@nvidia.com>,
Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>,
Kevin Tian <kevin.tian@intel.com>,
"Rafael J . Wysocki" <rafael@kernel.org>,
Max Gurtovoy <mgurtovoy@nvidia.com>,
Bjorn Helgaas <bhelgaas@google.com>,
linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
linux-pm@vger.kernel.org, linux-pci@vger.kernel.org
Subject: Re: [PATCH v6 5/5] vfio/pci: Implement VFIO_DEVICE_FEATURE_LOW_POWER_ENTRY_WITH_WAKEUP
Date: Fri, 26 Aug 2022 20:00:41 +0530 [thread overview]
Message-ID: <44dfe49d-6613-5869-390e-f9709e71ca50@nvidia.com> (raw)
In-Reply-To: <20220825163240.274950c8.alex.williamson@redhat.com>
On 8/26/2022 4:02 AM, Alex Williamson wrote:
> On Thu, 18 Aug 2022 22:31:03 +0530
> Abhishek Sahu <abhsahu@nvidia.com> wrote:
>
>> On 8/17/2022 11:10 PM, Jason Gunthorpe wrote:
>>> On Wed, Aug 17, 2022 at 09:34:30PM +0530, Abhishek Sahu wrote:
>>>> On 8/17/2022 7:23 PM, Jason Gunthorpe wrote:
>>>>> On Wed, Aug 17, 2022 at 10:43:23AM +0530, Abhishek Sahu wrote:
>>>>>
>>>>>> +static int
>>>>>> +vfio_pci_core_pm_entry_with_wakeup(struct vfio_device *device, u32 flags,
>>>>>> + void __user *arg, size_t argsz)
>>>>>
>>>>> This should be
>>>>> struct vfio_device_low_power_entry_with_wakeup __user *arg
>>>>>
>>>>
>>>> Thanks Jason.
>>>>
>>>> I can update this.
>>>>
>>>> But if we look the existing code, for example
>>>> (vfio_ioctl_device_feature_mig_device_state()), then there it still uses
>>>> 'void __user *arg' only. Is this a new guideline which we need to take
>>>> care ?
>>>
>>> I just sent a patch that fixes that too
>>>
>>
>> Thanks for the update.
>> I will change this.
>>
>>>> Do we need to keep the IOCTL name alphabetically sorted in the case list.
>>>> Currently, I have added in the order of IOCTL numbers.
>>>
>>> It is generally a good practice to sort lists of things.
>>>
>>> Jason
>>
>> Sure. I will make the sorted list.
>
> The series looks good to me, so I'd suggest to rebase on Jason's
> patches[1][2] so you can easily sort out the above. Thanks,
>
> Alex
>
> [1]https://lore.kernel.org/all/0-v1-da6fc51ee22e+562-vfio_pci_priv_jgg@nvidia.com/
> [2]https://lore.kernel.org/all/0-v1-11d8272dc65a+4bd-vfio_ioctl_split_jgg@nvidia.com/
>
Thanks Alex.
I will rebase my patches to the above mentioned patch series
and will send the updated patches.
Regards,
Abhishek
prev parent reply other threads:[~2022-08-26 14:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-08-17 5:13 [PATCH v6 0/5] vfio/pci: power management changes Abhishek Sahu
2022-08-17 5:13 ` [PATCH v6 1/5] vfio: Add the device features for the low power entry and exit Abhishek Sahu
2022-08-17 5:13 ` [PATCH v6 2/5] vfio: Increment the runtime PM usage count during IOCTL call Abhishek Sahu
2022-08-17 5:13 ` [PATCH v6 3/5] vfio/pci: Mask INTx during runtime suspend Abhishek Sahu
2022-08-17 5:13 ` [PATCH v6 4/5] vfio/pci: Implement VFIO_DEVICE_FEATURE_LOW_POWER_ENTRY/EXIT Abhishek Sahu
2022-08-17 5:13 ` [PATCH v6 5/5] vfio/pci: Implement VFIO_DEVICE_FEATURE_LOW_POWER_ENTRY_WITH_WAKEUP Abhishek Sahu
2022-08-17 13:53 ` Jason Gunthorpe
2022-08-17 16:04 ` Abhishek Sahu
2022-08-17 17:40 ` Jason Gunthorpe
2022-08-18 17:01 ` Abhishek Sahu
2022-08-25 22:32 ` Alex Williamson
2022-08-26 14:30 ` Abhishek Sahu [this message]
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=44dfe49d-6613-5869-390e-f9709e71ca50@nvidia.com \
--to=abhsahu@nvidia.com \
--cc=alex.williamson@redhat.com \
--cc=bhelgaas@google.com \
--cc=cohuck@redhat.com \
--cc=jgg@nvidia.com \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=linux-pm@vger.kernel.org \
--cc=mgurtovoy@nvidia.com \
--cc=rafael@kernel.org \
--cc=shameerali.kolothum.thodi@huawei.com \
--cc=yishaih@nvidia.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;
as well as URLs for NNTP newsgroup(s).