public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Yi Liu <yi.l.liu@intel.com>
To: Yan Zhao <yan.y.zhao@intel.com>, Jason Gunthorpe <jgg@nvidia.com>
Cc: "Tian, Kevin" <kevin.tian@intel.com>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
	"alex.williamson@redhat.com" <alex.williamson@redhat.com>,
	"peterx@redhat.com" <peterx@redhat.com>,
	"ajones@ventanamicro.com" <ajones@ventanamicro.com>
Subject: Re: [PATCH] vfio: Reuse file f_inode as vfio device inode
Date: Fri, 12 Jul 2024 14:14:08 +0800	[thread overview]
Message-ID: <46496896-0dda-4d2b-8092-021d33e4862a@intel.com> (raw)
In-Reply-To: <ZpC8zalggIyzdTFQ@yzhao56-desk>

On 2024/7/12 13:19, Yan Zhao wrote:
> On Wed, Jul 10, 2024 at 11:40:44AM -0300, Jason Gunthorpe wrote:
>> On Mon, Jul 01, 2024 at 01:48:07PM +0800, Yan Zhao wrote:
>>
>>> No, I don't have such a need.
>>> I just find it's confusing to say "Only the group path allows the device to be
>>> opened multiple times. The device cdev path doesn't have a secure way for it",
>>> since it's still doable to achieve the same "secure" level in cdev path and the
>>> group path is not that "secure" :)
>>
>> It is more that the group path had an API that allowed for multiple
>> FDs without an actual need to ever use that. You can always make more
>> FDs with dup.
>>
>> There is no reason for this functionality, we just have to keep it
>> working as a matter of uABI compatability and we are being more strict
>> in the new APIs.
> Thanks for clarification.
> Regarding to uABI compatability, even after being more strict and returning
> error when opening the second FD in group path, the uABI compatability is still
> maintained? e.g.
> QEMU would correctly reports "Verify all devices in group xxx are bound to
> vfio-<bus> or pci-stub and not already in use" in that case.
> Given there's no actual users, could we also remove the support of multiple FDs
> in group path to simplify code?

QEMU is not the only user of vfio. DPDK or other applications may have
usage for multi-fds.

-- 
Regards,
Yi Liu

  reply	other threads:[~2024-07-12  6:10 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-06-17  9:53 [PATCH] vfio: Reuse file f_inode as vfio device inode Yan Zhao
2024-06-20 10:14 ` Yan Zhao
2024-06-26  8:36   ` Tian, Kevin
2024-06-26  9:11     ` Yan Zhao
2024-06-26 13:35 ` Jason Gunthorpe
2024-06-26 23:55   ` Tian, Kevin
2024-06-27 12:26     ` Jason Gunthorpe
2024-06-27  0:17   ` Tian, Kevin
2024-06-27  9:51     ` Yan Zhao
2024-06-27 12:42       ` Jason Gunthorpe
2024-06-28  5:21         ` Yan Zhao
2024-06-28  9:48           ` Yi Liu
2024-06-28 15:28             ` Yan Zhao
2024-06-30  7:06               ` Yi Liu
2024-07-01  1:47                 ` Yan Zhao
2024-07-01  5:44                   ` Yi Liu
2024-07-01  5:48                     ` Yan Zhao
2024-07-10 14:40                       ` Jason Gunthorpe
2024-07-12  5:19                         ` Yan Zhao
2024-07-12  6:14                           ` Yi Liu [this message]
2024-07-01  7:54 ` Yi Liu
2024-07-01 11:29   ` Yan Zhao

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=46496896-0dda-4d2b-8092-021d33e4862a@intel.com \
    --to=yi.l.liu@intel.com \
    --cc=ajones@ventanamicro.com \
    --cc=alex.williamson@redhat.com \
    --cc=jgg@nvidia.com \
    --cc=kevin.tian@intel.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=peterx@redhat.com \
    --cc=yan.y.zhao@intel.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