From: Ian Campbell Subject: Re: [PATCH] tools/xl: disallow PCI device assignment for HVM guest when PoD is enabled Date: Fri, 10 Jan 2014 09:22:11 +0000 Message-ID: <1389345731.19142.3.camel@kazak.uk.xensource.com> References: <1389294644-25423-1-git-send-email-wei.liu2@citrix.com> <52CFC93C0200007800112390@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W1YIC-0000FG-8t for xen-devel@lists.xenproject.org; Fri, 10 Jan 2014 09:22:16 +0000 In-Reply-To: <52CFC93C0200007800112390@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Ian Jackson , xen-devel , Wei Liu , Ian Campbell List-Id: xen-devel@lists.xenproject.org On Fri, 2014-01-10 at 09:19 +0000, Jan Beulich wrote: > >>> On 09.01.14 at 20:10, Wei Liu wrote: > > + /* We cannot have PoD and PCI device assignment at the same > > + * time. VT-d engine needs to set up the entire page table for > > + * the domain. However if PoD is enabled, un-populated memory is > > + * marked as populate_on_demand, and VT-d engine won't set up page > > + * tables for them. Therefore any DMA towards those memory may > > + * cause DMA fault. > > + * > > + * This is restricted to HVM guest, as only VT-d is relevant > > + * in the counterpart in Xend. We're late in release cycle so the change > > + * should only does what's necessary. Probably we can revisit if > > + * we need to do the same thing for PV guest in the future. > > + */ > > The comment shouldn't say VT-d as long as the code isn't special > casing VT-d. Also this second paragraph looks more suitable to the commit message to me. Ian.