From: Espen Skoglund Subject: RE: [PATCH 0/5] VT-d support for PV guests Date: Tue, 20 May 2008 11:16:53 +0100 Message-ID: <18482.42261.877510.586657@gargle.gargle.HOWL> References: <18481.58026.284129.700801@gargle.gargle.HOWL> <1FE6DD409037234FAB833C420AA843EC015F2709@orsmsx424.amr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1FE6DD409037234FAB833C420AA843EC015F2709@orsmsx424.amr.corp.intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Kay, Allen M" Cc: "Han, Weidong" , xen-devel@lists.xensource.com, Espen Skoglund List-Id: xen-devel@lists.xenproject.org [Allen M Kay] >> >> While adding the PV VT-d support I also noticed that there is a lot >> of duplicated and unused code dealing with VT-d. This really needs >> to be cleaned up properly. I don't know if the original VT-d >> submitters already have made plans for doing this. >> >> > Other than the hardware wait loops which is something we need to > clean up, can you give some example of duplicated/unused code in > vt-d directory? >From the top of my head: iommu_set/free_pgd() in xen/drivers/passthrough/vtd/x86/vtd.c iommu_page_unmapping() in xen/drivers/passthrough/vtd/iommu.c There's probably more that I can't think of right now. eSk