|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] x86/vpmu: Add get/put_vpmu() and VPMU_ENABLED
On 02/17/2017 10:58 AM, Andrew Cooper wrote: On 17/02/17 14:17, Boris Ostrovsky wrote:On 02/17/2017 03:27 AM, Jan Beulich wrote:On 16.02.17 at 19:09, <boris.ostrovsky@xxxxxxxxxx> wrote:On 02/16/2017 12:09 PM, Andrew Cooper wrote:Second, if it is available, has the toolstack chosen to allow the domain to use it. This should determine whether features/information are visible in CPUID.You mean if toolstack masks out leaf 0xa on Intel? I chould check this in get_vpmu(). Is this information available by the time vcpu_initialise() runs?You shouldn't rely on this, even if it happened to be that way right now. Instead you'd have to adjust accordingly when CPUID info gets updated by the tool stack (update_domain_cpuid_info() as the root hook point).Right, that's what I was going to do --- destroy VPMU if CPUID indicates no support. Currently, since we don't know whether the toolstack will be updating leaf 0xa, we have to initialize VPMU at VCPU initialization time and then possibly destroy it if CPUID update does come in. When your suggested infrastructure is in place it we can defer VPMU initialization until after the policy has been loaded. And I think it should be a pretty easy conversion. Let me send what I have now. -boris _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |