From: Espen Skoglund Subject: RE: [PATCH 4/5] VT-d support for PV guests Date: Tue, 20 May 2008 15:16:46 +0100 Message-ID: <18482.56654.541079.633563@gargle.gargle.HOWL> References: <18481.58268.276841.816679@gargle.gargle.HOWL> <1FE6DD409037234FAB833C420AA843EC015F2766@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: <1FE6DD409037234FAB833C420AA843EC015F2766@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] > - if ( iommu_enabled && is_hvm_domain(d) ) > + if ( iommu_enabled && (is_hvm_domain(d) || need_iommu(d)) ) > I thought PV guests don't have p2m page table. Why do you need to > modify set_p2m_entry() for VT-d PV guest support? If only HVM guests have a p2m page table then why was the is_hvm_domain() check there is the first place? Can't you also have PV guests with shadow page tables, and don't such guests also use p2m? I haven't looked into shadow PT support, so I would really like to have an answer on this one. eSk