From: "Jan Beulich" Subject: Re: [PATCH] x86/HVM: support IOMMU-related Viridian CPUID bits Date: Fri, 01 Aug 2014 15:16:08 +0100 Message-ID: <53DBBD4802000078000287AD@mail.emea.novell.com> References: <53DBB6CE020000780002875F@mail.emea.novell.com> <9AAE0902D5BC7E449B7C8E4E778ABCD03FD857@AMSPEX01CL01.citrite.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XDDcv-0006cl-Kl for xen-devel@lists.xenproject.org; Fri, 01 Aug 2014 14:16:09 +0000 In-Reply-To: <9AAE0902D5BC7E449B7C8E4E778ABCD03FD857@AMSPEX01CL01.citrite.net> 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: Paul Durrant Cc: Andrew Cooper , "Keir (Xen.org)" , xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 01.08.14 at 15:58, wrote: >> -----Original Message----- >> From: Jan Beulich [mailto:JBeulich@suse.com] >> Sent: 01 August 2014 14:49 >> To: xen-devel >> Cc: Andrew Cooper; Paul Durrant; Keir (Xen.org) >> Subject: [PATCH] x86/HVM: support IOMMU-related Viridian CPUID bits >> >> Signed-off-by: Jan Beulich > > Whilst this patch is technically fine, is it of any real use? From my > reading of the Hypervisor Top Level Functional Spec (v4.0a) these bits are > only of relevance to the root partition. I'm not that familiar with Hyper-V concepts, so I'm not sure what "root partition" refers to. If it was what I imagined (the host OS instance), then these bits clearly couldn't be meant for it, as it only sees the native CPUID output. > If they do make a difference to a guest, should we not also be specifying > bits 6 and 7 in leaf 40000004:EAX Rather not I would say, at least on VT-d, until we have a vIOMMU. And I'm not sure the vIOMMU on the AMD side is mature enough to _recommend_ its use. > and putting a value in 40000005:ECX? That one I'd view as separate work item, aiming at populating its EAX and EBX outputs at once. Albeit I may again have a terminology issue here: For a guest, what's the difference between virtual and logical CPUs? Additionally, for ECX I don't think we would know the correct value to put there under Xen, since we're not doing the remapping in a vector centric way (i.e. this value might be reflecting some Hyper-V internals). Jan