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

Re: [Xen-devel] [PATCH v4 06/10] x86/hvm: Setup TSC scaling ratio



>>> On 16.02.16 at 10:44, <haozhong.zhang@xxxxxxxxx> wrote:
> On 02/05/16 21:54, Jan Beulich wrote:
>> >>> On 17.01.16 at 22:58, <haozhong.zhang@xxxxxxxxx> wrote:
>> > +void hvm_setup_tsc_scaling(struct vcpu *v)
>> > +{
>> > +    v->arch.hvm_vcpu.tsc_scaling_ratio =
>> > +        hvm_get_tsc_scaling_ratio(v->domain->arch.tsc_khz);
>> > +}
>> 
>> So why again is this per-vCPU setup of per-vCPU state when it
>> only depends on a per-domain input? If this was per-domain, its
>> setup could be where it belongs - in arch_hvm_load().
>>
> 
> It's a per-domain state. I'll the state to x86's struct arch_domain
> where other TSC fields are (or struct hvm_domain, because this is only
> used for HVM?).

struct hvm_domain please.

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®.