[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20231204183410.GM1493156@nvidia.com>
Date: Mon, 4 Dec 2023 14:34:10 -0400
From: Jason Gunthorpe <jgg@...dia.com>
To: Yan Zhao <yan.y.zhao@...el.com>
Cc: iommu@...ts.linux.dev, kvm@...r.kernel.org,
linux-kernel@...r.kernel.org, alex.williamson@...hat.com,
pbonzini@...hat.com, seanjc@...gle.com, joro@...tes.org,
will@...nel.org, robin.murphy@....com, kevin.tian@...el.com,
baolu.lu@...ux.intel.com, dwmw2@...radead.org, yi.l.liu@...el.com
Subject: Re: [RFC PATCH 14/42] iommufd: Enable KVM HW page table object to be
proxy between KVM and IOMMU
On Sat, Dec 02, 2023 at 05:22:16PM +0800, Yan Zhao wrote:
> +config IOMMUFD_KVM_HWPT
> + bool "Supports KVM managed HW page tables"
> + default n
> + help
> + Selecting this option will allow IOMMUFD to create IOMMU stage 2
> + page tables whose paging structure and mappings are managed by
> + KVM MMU. IOMMUFD serves as proxy between KVM and IOMMU driver to
> + allow IOMMU driver to get paging structure meta data and cache
> + invalidate notifications from KVM.
I'm not sure we need a user selectable kconfig for this..
Just turn it on if we have kvm turned on an iommu driver implements it
Jason
Powered by blists - more mailing lists