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

Re: [Xen-devel] [PATCH 2/6] x86/vpmu: Move vpmu_do_cpuid() handling into {pv, hvm}_cpuid()



On 16/11/16 12:53, Jan Beulich wrote:
>>>> On 16.11.16 at 13:31, <andrew.cooper3@xxxxxxxxxx> wrote:
>> This reduces the net complexity of CPUID handling by having all adjustments 
>> in
>> at the same place.  Remove the now-unused vpmu_do_cpuid() infrastructure.
> I have to admit that I'm not convinced this is a good idea at this point,
> due to the added redundancy. Iirc your plan is to combine hvm_cpuid()
> and pv_cpuid() anyway, at which point the folding done here would be
> quite a bit more natural.

Indeed, to guest_cpuid().

It is far easier to reason about the safety of both changes by first
untangling the calltree, then merging the functions.  I tried it the
other way first, but that is far more complicated change.

~Andrew

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

 


Rackspace

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