[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 15/22] Add iommufd configure option
From: |
Jason Gunthorpe |
Subject: |
Re: [PATCH v1 15/22] Add iommufd configure option |
Date: |
Wed, 20 Sep 2023 14:49:19 -0300 |
On Wed, Sep 20, 2023 at 07:37:53PM +0200, Eric Auger wrote:
> >> qemu will typically not be able to
> >> self-open /dev/iommufd as it is root-only.
> >
> > I don't understand, we open multiple fds to KVM devices. This is the
> > same.
> Actually qemu opens the /dev/iommu in case no fd is passed along with
> the iommufd object. This is done in
> [PATCH v1 16/22] backends/iommufd: Introduce the iommufd object, in
>
> iommufd_backend_connect(). I don't understand either.
The char dev node is root only so this automatic behvaior is fine
but not useful if qmeu is running in a sandbox.
I'm not sure what "multiple fds to KVM devices" means, I don't know
anything about kvm devices..
The iommufd design requires one open of the /dev/iommu to be shared
across all the vfios.
Jason
- Re: [PATCH v1 15/22] Add iommufd configure option, Cédric Le Goater, 2023/09/19
- RE: [PATCH v1 15/22] Add iommufd configure option, Duan, Zhenzhong, 2023/09/19
- Re: [PATCH v1 15/22] Add iommufd configure option, Cédric Le Goater, 2023/09/20
- Re: [PATCH v1 15/22] Add iommufd configure option, Cédric Le Goater, 2023/09/20
- Re: [PATCH v1 15/22] Add iommufd configure option, Eric Auger, 2023/09/20
- Re: [PATCH v1 15/22] Add iommufd configure option,
Jason Gunthorpe <=
- Re: [PATCH v1 15/22] Add iommufd configure option, Alex Williamson, 2023/09/20
- Re: [PATCH v1 15/22] Add iommufd configure option, Jason Gunthorpe, 2023/09/20
- RE: [PATCH v1 15/22] Add iommufd configure option, Duan, Zhenzhong, 2023/09/20
- RE: [PATCH v1 15/22] Add iommufd configure option, Tian, Kevin, 2023/09/26
- RE: [PATCH v1 15/22] Add iommufd configure option, Duan, Zhenzhong, 2023/09/21
- RE: [PATCH v1 15/22] Add iommufd configure option, Duan, Zhenzhong, 2023/09/20
Re: [PATCH v1 15/22] Add iommufd configure option, Alex Williamson, 2023/09/20
Re: [PATCH v1 15/22] Add iommufd configure option, Daniel P . Berrangé, 2023/09/20