From: "Jan Beulich" Subject: Re: [PATCH] tools/xl: disallow PCI device assignment for HVM guest when PoD is enabled Date: Fri, 10 Jan 2014 09:19:40 +0000 Message-ID: <52CFC93C0200007800112390@nat28.tlf.novell.com> References: <1389294644-25423-1-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1W1YFn-00008t-Fw for xen-devel@lists.xenproject.org; Fri, 10 Jan 2014 09:19:47 +0000 In-Reply-To: <1389294644-25423-1-git-send-email-wei.liu2@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Wei Liu Cc: Ian Jackson , xen-devel , Ian Campbell List-Id: xen-devel@lists.xenproject.org >>> 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. Jan