[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH v8 02/19] x86/VPMU: Set MSR bitmaps only for HVM/PVH guests



>>> On 01.07.14 at 16:37, <boris.ostrovsky@xxxxxxxxxx> wrote:
> @@ -284,8 +285,9 @@ static int amd_vpmu_do_wrmsr(unsigned int msr, uint64_t 
> msr_content)
>      struct vpmu_struct *vpmu = vcpu_vpmu(v);
>  
>      /* For all counters, enable guest only mode for HVM guest */
> -    if ( (get_pmu_reg_type(msr) == MSR_TYPE_CTRL) &&
> -        !(is_guest_mode(msr_content)) )
> +    if ( has_hvm_container_domain(v->domain) &&
> +         (get_pmu_reg_type(msr) == MSR_TYPE_CTRL) &&
> +         !(is_guest_mode(msr_content)) )

Extra pair of parentheses.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.