From: Wei Liu Subject: Re: [PATCH] tools/xl: disallow PCI device assignment for HVM guest when PoD is enabled Date: Fri, 10 Jan 2014 11:39:03 +0000 Message-ID: <20140110113903.GD29180@zion.uk.xensource.com> References: <1389295023-25507-1-git-send-email-wei.liu2@citrix.com> <20140109191913.GD17806@pegasus.dumpdata.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20140109191913.GD17806@pegasus.dumpdata.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: Konrad Rzeszutek Wilk Cc: Ian Jackson , Wei Liu , Ian Campbell , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Thu, Jan 09, 2014 at 02:19:14PM -0500, Konrad Rzeszutek Wilk wrote: > On Thu, Jan 09, 2014 at 07:17:03PM +0000, Wei Liu wrote: > > This replicates a Xend behavior, see ec789523749 ("xend: Dis-allow > > device assignment if PoD is enabled."). > > > > Allegedly-reported-by: Konrad Wilk > > Signed-off-by: Wei Liu > > Cc: Ian Campbell > > Cc: Ian Jackson > > --- > > This was listed in 4.4 development update. A quick skim through > > hypervisor vtd changesets suggests the situation stays unchanged since 3 > > years ago -- at least I didn't find any log message related to "PoD". > > > > Rune: git log --since="2010-01-21" xen/drivers/passthrough/vtd > > (It was first reported on 2010-01-21) > > > > This patch is tested with setting memory=, maxmem= and pci=[] parameters > > in both HVM and PV guests. In HVM guest's case I need to have > > claim_mode=0 in /etc/xen/xl.conf to make xl actually create HVM with PoD > > mode enabled. > > Which implies something is amiss with the PoD memory usage >= nr_pages > for the domain. Which implies that it allocates more memory than it asked > for. > > We should track that as a bug I think. Ian, can you track this in Xen bug tracker? Claim mode doesn't work for HVM with PoD enabled. Wei.