Message ID | 0-v2-d7744ee9cf4f+33d-vfio_container_split_jgg@nvidia.com (mailing list archive) |
---|---|
Headers | show |
Series | vfio: Split the container code into a clean layer and dedicated file | expand |
> From: Jason Gunthorpe <jgg@nvidia.com> > Sent: Wednesday, September 21, 2022 8:42 AM > drivers/vfio/Makefile | 1 + > drivers/vfio/container.c | 680 +++++++++++++++++++++++++++++++++++++ > drivers/vfio/vfio.h | 56 ++++ > drivers/vfio/vfio_main.c | 708 ++------------------------------------- > 4 files changed, 765 insertions(+), 680 deletions(-) > create mode 100644 drivers/vfio/container.c > > > base-commit: 245898eb9275ce31942cff95d0bdc7412ad3d589 it's not the latest vfio/next: commit f39856aacb078c1c93acef011a37121b17d54fe0 (vfio/next) Author: Yishai Hadas <yishaih@nvidia.com> Date: Thu Sep 8 21:34:48 2022 +0300 vfio/mlx5: Set the driver DMA logging callbacks Now that everything is ready set the driver DMA logging callbacks if supported by the device. Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Link: https://lore.kernel.org/r/20220908183448.195262-11-yishaih@nvidia.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
On Wed, Sep 21, 2022 at 08:07:42AM +0000, Tian, Kevin wrote: > > From: Jason Gunthorpe <jgg@nvidia.com> > > Sent: Wednesday, September 21, 2022 8:42 AM > > drivers/vfio/Makefile | 1 + > > drivers/vfio/container.c | 680 +++++++++++++++++++++++++++++++++++++ > > drivers/vfio/vfio.h | 56 ++++ > > drivers/vfio/vfio_main.c | 708 ++------------------------------------- > > 4 files changed, 765 insertions(+), 680 deletions(-) > > create mode 100644 drivers/vfio/container.c > > > > > > base-commit: 245898eb9275ce31942cff95d0bdc7412ad3d589 > > it's not the latest vfio/next: Ah, I did the rebase before I left for lpc.. There is a minor merge conflict with the stuff from the last week: diff --cc drivers/vfio/Makefile index d67c604d0407ef,d5ae6921eb4ece..00000000000000 --- a/drivers/vfio/Makefile +++ b/drivers/vfio/Makefile @@@ -1,11 -1,10 +1,12 @@@ # SPDX-License-Identifier: GPL-2.0 vfio_virqfd-y := virqfd.o -vfio-y += container.o -vfio-y += vfio_main.o - obj-$(CONFIG_VFIO) += vfio.o + +vfio-y += vfio_main.o \ + iova_bitmap.o \ ++ container.o + obj-$(CONFIG_VFIO_VIRQFD) += vfio_virqfd.o obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o obj-$(CONFIG_VFIO_IOMMU_SPAPR_TCE) += vfio_iommu_spapr_tce.o Alex, let me know if you want me to respin it Thanks, Jason
On Wed, 21 Sep 2022 22:00:30 -0300 Jason Gunthorpe <jgg@nvidia.com> wrote: > On Wed, Sep 21, 2022 at 08:07:42AM +0000, Tian, Kevin wrote: > > > From: Jason Gunthorpe <jgg@nvidia.com> > > > Sent: Wednesday, September 21, 2022 8:42 AM > > > drivers/vfio/Makefile | 1 + > > > drivers/vfio/container.c | 680 +++++++++++++++++++++++++++++++++++++ > > > drivers/vfio/vfio.h | 56 ++++ > > > drivers/vfio/vfio_main.c | 708 ++------------------------------------- > > > 4 files changed, 765 insertions(+), 680 deletions(-) > > > create mode 100644 drivers/vfio/container.c > > > > > > > > > base-commit: 245898eb9275ce31942cff95d0bdc7412ad3d589 > > > > it's not the latest vfio/next: > > Ah, I did the rebase before I left for lpc.. > > There is a minor merge conflict with the stuff from the last week: > > diff --cc drivers/vfio/Makefile > index d67c604d0407ef,d5ae6921eb4ece..00000000000000 > --- a/drivers/vfio/Makefile > +++ b/drivers/vfio/Makefile > @@@ -1,11 -1,10 +1,12 @@@ > # SPDX-License-Identifier: GPL-2.0 > vfio_virqfd-y := virqfd.o > > -vfio-y += container.o > -vfio-y += vfio_main.o > - > obj-$(CONFIG_VFIO) += vfio.o > + > +vfio-y += vfio_main.o \ > + iova_bitmap.o \ > ++ container.o > + > obj-$(CONFIG_VFIO_VIRQFD) += vfio_virqfd.o > obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o > obj-$(CONFIG_VFIO_IOMMU_SPAPR_TCE) += vfio_iommu_spapr_tce.o > > Alex, let me know if you want me to respin it That's trivial, but you also have conflicts with Kevin's 'Tidy up vfio_device life cycle' series, which gets uglier than I'd like to fixup on commit. Could one of you volunteer to rebase on the other? Thanks, Alex
On Thu, Sep 22, 2022 at 11:09:30AM -0600, Alex Williamson wrote: > On Wed, 21 Sep 2022 22:00:30 -0300 > Jason Gunthorpe <jgg@nvidia.com> wrote: > > > On Wed, Sep 21, 2022 at 08:07:42AM +0000, Tian, Kevin wrote: > > > > From: Jason Gunthorpe <jgg@nvidia.com> > > > > Sent: Wednesday, September 21, 2022 8:42 AM > > > > drivers/vfio/Makefile | 1 + > > > > drivers/vfio/container.c | 680 +++++++++++++++++++++++++++++++++++++ > > > > drivers/vfio/vfio.h | 56 ++++ > > > > drivers/vfio/vfio_main.c | 708 ++------------------------------------- > > > > 4 files changed, 765 insertions(+), 680 deletions(-) > > > > create mode 100644 drivers/vfio/container.c > > > > > > > > > > > > base-commit: 245898eb9275ce31942cff95d0bdc7412ad3d589 > > > > > > it's not the latest vfio/next: > > > > Ah, I did the rebase before I left for lpc.. > > > > There is a minor merge conflict with the stuff from the last week: > > > > diff --cc drivers/vfio/Makefile > > index d67c604d0407ef,d5ae6921eb4ece..00000000000000 > > --- a/drivers/vfio/Makefile > > +++ b/drivers/vfio/Makefile > > @@@ -1,11 -1,10 +1,12 @@@ > > # SPDX-License-Identifier: GPL-2.0 > > vfio_virqfd-y := virqfd.o > > > > -vfio-y += container.o > > -vfio-y += vfio_main.o > > - > > obj-$(CONFIG_VFIO) += vfio.o > > + > > +vfio-y += vfio_main.o \ > > + iova_bitmap.o \ > > ++ container.o > > + > > obj-$(CONFIG_VFIO_VIRQFD) += vfio_virqfd.o > > obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o > > obj-$(CONFIG_VFIO_IOMMU_SPAPR_TCE) += vfio_iommu_spapr_tce.o > > > > Alex, let me know if you want me to respin it > > That's trivial, but you also have conflicts with Kevin's 'Tidy up > vfio_device life cycle' series, which gets uglier than I'd like to > fixup on commit. Could one of you volunteer to rebase on the other? Sure, I'll rebase this one, can you pick up Kevin's so I have a stable target? Thanks, Jason
On Thu, 22 Sep 2022 14:22:03 -0300 Jason Gunthorpe <jgg@nvidia.com> wrote: > On Thu, Sep 22, 2022 at 11:09:30AM -0600, Alex Williamson wrote: > > On Wed, 21 Sep 2022 22:00:30 -0300 > > Jason Gunthorpe <jgg@nvidia.com> wrote: > > > > > On Wed, Sep 21, 2022 at 08:07:42AM +0000, Tian, Kevin wrote: > > > > > From: Jason Gunthorpe <jgg@nvidia.com> > > > > > Sent: Wednesday, September 21, 2022 8:42 AM > > > > > drivers/vfio/Makefile | 1 + > > > > > drivers/vfio/container.c | 680 +++++++++++++++++++++++++++++++++++++ > > > > > drivers/vfio/vfio.h | 56 ++++ > > > > > drivers/vfio/vfio_main.c | 708 ++------------------------------------- > > > > > 4 files changed, 765 insertions(+), 680 deletions(-) > > > > > create mode 100644 drivers/vfio/container.c > > > > > > > > > > > > > > > base-commit: 245898eb9275ce31942cff95d0bdc7412ad3d589 > > > > > > > > it's not the latest vfio/next: > > > > > > Ah, I did the rebase before I left for lpc.. > > > > > > There is a minor merge conflict with the stuff from the last week: > > > > > > diff --cc drivers/vfio/Makefile > > > index d67c604d0407ef,d5ae6921eb4ece..00000000000000 > > > --- a/drivers/vfio/Makefile > > > +++ b/drivers/vfio/Makefile > > > @@@ -1,11 -1,10 +1,12 @@@ > > > # SPDX-License-Identifier: GPL-2.0 > > > vfio_virqfd-y := virqfd.o > > > > > > -vfio-y += container.o > > > -vfio-y += vfio_main.o > > > - > > > obj-$(CONFIG_VFIO) += vfio.o > > > + > > > +vfio-y += vfio_main.o \ > > > + iova_bitmap.o \ > > > ++ container.o > > > + > > > obj-$(CONFIG_VFIO_VIRQFD) += vfio_virqfd.o > > > obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o > > > obj-$(CONFIG_VFIO_IOMMU_SPAPR_TCE) += vfio_iommu_spapr_tce.o > > > > > > Alex, let me know if you want me to respin it > > > > That's trivial, but you also have conflicts with Kevin's 'Tidy up > > vfio_device life cycle' series, which gets uglier than I'd like to > > fixup on commit. Could one of you volunteer to rebase on the other? > > Sure, I'll rebase this one, can you pick up Kevin's so I have a stable target? Yup, you should see it in my next branch now. Thanks, Alex
> From: Alex Williamson <alex.williamson@redhat.com> > Sent: Friday, September 23, 2022 1:59 AM > > On Thu, 22 Sep 2022 14:22:03 -0300 > Jason Gunthorpe <jgg@nvidia.com> wrote: > > > On Thu, Sep 22, 2022 at 11:09:30AM -0600, Alex Williamson wrote: > > > On Wed, 21 Sep 2022 22:00:30 -0300 > > > Jason Gunthorpe <jgg@nvidia.com> wrote: > > > > > > > On Wed, Sep 21, 2022 at 08:07:42AM +0000, Tian, Kevin wrote: > > > > > > From: Jason Gunthorpe <jgg@nvidia.com> > > > > > > Sent: Wednesday, September 21, 2022 8:42 AM > > > > > > drivers/vfio/Makefile | 1 + > > > > > > drivers/vfio/container.c | 680 > +++++++++++++++++++++++++++++++++++++ > > > > > > drivers/vfio/vfio.h | 56 ++++ > > > > > > drivers/vfio/vfio_main.c | 708 ++------------------------------------- > > > > > > 4 files changed, 765 insertions(+), 680 deletions(-) > > > > > > create mode 100644 drivers/vfio/container.c > > > > > > > > > > > > > > > > > > base-commit: 245898eb9275ce31942cff95d0bdc7412ad3d589 > > > > > > > > > > it's not the latest vfio/next: > > > > > > > > Ah, I did the rebase before I left for lpc.. > > > > > > > > There is a minor merge conflict with the stuff from the last week: > > > > > > > > diff --cc drivers/vfio/Makefile > > > > index d67c604d0407ef,d5ae6921eb4ece..00000000000000 > > > > --- a/drivers/vfio/Makefile > > > > +++ b/drivers/vfio/Makefile > > > > @@@ -1,11 -1,10 +1,12 @@@ > > > > # SPDX-License-Identifier: GPL-2.0 > > > > vfio_virqfd-y := virqfd.o > > > > > > > > -vfio-y += container.o > > > > -vfio-y += vfio_main.o > > > > - > > > > obj-$(CONFIG_VFIO) += vfio.o > > > > + > > > > +vfio-y += vfio_main.o \ > > > > + iova_bitmap.o \ > > > > ++ container.o > > > > + > > > > obj-$(CONFIG_VFIO_VIRQFD) += vfio_virqfd.o > > > > obj-$(CONFIG_VFIO_IOMMU_TYPE1) += vfio_iommu_type1.o > > > > obj-$(CONFIG_VFIO_IOMMU_SPAPR_TCE) += vfio_iommu_spapr_tce.o > > > > > > > > Alex, let me know if you want me to respin it > > > > > > That's trivial, but you also have conflicts with Kevin's 'Tidy up > > > vfio_device life cycle' series, which gets uglier than I'd like to > > > fixup on commit. Could one of you volunteer to rebase on the other? > > > > Sure, I'll rebase this one, can you pick up Kevin's so I have a stable target? > > > Yup, you should see it in my next branch now. Thanks, > Thank you both!