Re: [PATCH V4 2/4] Utilize the vmx preemption timer

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

 



2016-06-23 9:37 GMT+08:00 yunhong jiang <yunhong.jiang@xxxxxxxxxxxxxxx>:
> On Thu, 23 Jun 2016 07:22:11 +0800
> Wanpeng Li <kernellwp@xxxxxxxxx> wrote:
>
>> 2016-06-14 5:19 GMT+08:00 Yunhong Jiang
>> <yunhong.jiang@xxxxxxxxxxxxxxx>: [...]
>> > +static int vmx_set_hv_timer(struct kvm_vcpu *vcpu, u64
>> > guest_deadline_tsc) +{
>> > +       u64 tscl = rdtsc(), delta_tsc;
>> > +
>> > +       delta_tsc = guest_deadline_tsc - kvm_read_l1_tsc(vcpu,
>> > tscl); +
>> > +       /* Convert to host delta tsc if tsc scaling is enabled */
>>
>> If this need to convert to host delta tsc if guest and host tsc rate
>> are different when w/o tsc scaling?
>
> Hi, Wanpeng, thanks for review.
>
> What do you mean 'guest and host tsc rate are different when w/o tsc scaling'?
> You mean there is no hardware scaling support?

Yes.

Regards,
Wanpeng Li
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux