From mboxrd@z Thu Jan 1 00:00:00 1970 From: Joerg Roedel Subject: Re: bind pasid table API Date: Fri, 29 Sep 2017 17:38:41 +0200 Message-ID: <20170929153841.GV8398@8bytes.org> References: <20170918204516.2f6beffb@jacob-builder> <6ecc1afc-6302-cd22-6944-ef4c6ac09587@arm.com> <20170927134041.GN8398@8bytes.org> <20170928171121.GA101520@otc-nc-03> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: iommu-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: "Tian, Kevin" Cc: "iommu-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org" , "Pan, Jacob jun" , David Woodhouse List-Id: iommu@lists.linux-foundation.org On Fri, Sep 29, 2017 at 05:44:02AM +0000, Tian, Kevin wrote: > Thinking about anyway we need to factor page table code in the > guest side. It's not a big deal to further factor PASID code due to the > same reason. Of course there are additional format info to be > communicated back-and-forth, but the framework should be same > for both page table and PASID purposes. Also such change is restricted > within IOMMU sub-system. :-) Right, and in the common case where the guest runs a distro-kernel which has the iommu-drivers compiled-in, the code to build the pasid-tables is also already available and vIOMMU just needs to use it. So this is the easiest approach. Regards, Joerg