[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v2 2/3] x86/vpmu: Disable VPMU if guest's CPUID indicates no PMU support
>>> On 17.02.17 at 18:40, <boris.ostrovsky@xxxxxxxxxx> wrote: > --- a/xen/arch/x86/cpu/vpmu_intel.c > +++ b/xen/arch/x86/cpu/vpmu_intel.c > @@ -884,6 +884,10 @@ int vmx_vpmu_initialise(struct vcpu *v) > if ( vpmu_mode == XENPMU_MODE_OFF ) > return 0; > > + if ( MASK_EXTR(v->domain->arch.cpuid->basic.raw[0xa].a, > + PMU_VERSION_MASK) == 0 ) > + return -EINVAL; How about other unsupported (too large) values? Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |