From: "Jan Beulich" Subject: Re: [PATCH v9 1/3] xen/libxc: Allow changing max number of hypervisor cpuid leaves Date: Tue, 06 May 2014 16:35:39 +0100 Message-ID: <53691D6B020000780000F86F@mail.emea.novell.com> References: <1398194263-21858-1-git-send-email-boris.ostrovsky@oracle.com> <1398194263-21858-2-git-send-email-boris.ostrovsky@oracle.com> <1398242528.4880.102.camel@kazak.uk.xensource.com> <5357A80E020000780000B451@nat28.tlf.novell.com> <5368FE74.2050705@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5368FE74.2050705@oracle.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: Boris Ostrovsky Cc: Kevin Tian , Ian Campbell , "stefano.stabellini@eu.citrix.com" , "andrew.cooper3@citrix.com" , Eddie Dong , "xen-devel@lists.xen.org" , Yang Z Zhang , "ian.jackson@eu.citrix.com" List-Id: xen-devel@lists.xenproject.org >>> On 06.05.14 at 17:23, wrote: > On 04/23/2014 08:36 PM, Zhang, Yang Z wrote: >> Jan Beulich wrote on 2014-04-23: >>> I'll definitely want a VMX maintainer's ack (or at least Yang's >>> consent) on patch 3 before applying the whole series (the first two >>> patches alone don't make that much sense). >> I have discussed with Boris before (offlist) and I don't think it is > necessary to expose two bits. Per my understanding, only one bit to indicate > whether APICv is enabled should be enough. The reason is that all hardwires > that support APICv must also support virtualized x2apic(Intel SDM doesn't say > it explicitly, but I get confirmed from hardware guys). And in current Xen's > implementation, it will enable APICv and virtualize_x2apic unconditionally if > hardware support them and not disabled by user. So based on current xen's > implementation, APICv is enabled means virtulized x2apic is enabled, vice > versa. That's the reason why I think one bit is enough. >> But if you guys think two bits also is acceptable, I am ok. > > > Jan, how do you want to proceed? Although I didn't realize that x2apic > virtualization is guaranteed for APICv-enabled silicon I still prefer to > keep separate bits for x2apic vs plain APIC for guests that can only use > the latter. > > (I know that I need to resend this in any case with stray printk removed) I already committed the patches a couple of days ago (with that printk() removed). Jan