Re: [PATCH] KVM: lapic: Reuse auto-adjusted timer advance of first stable vCPU

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

 



On 08/05/19 23:47, Sean Christopherson wrote:
> +
> +		/*
> +		 * The first vCPU to get a stable advancement time "wins" and
> +		 * sets the advancement time that is used for *new* vCPUS that
> +		 * are created with auto-adjusting enabled.
> +		 */
> +		if (apic->lapic_timer.timer_advance_adjust_done)
> +			(void)cmpxchg(&adjusted_timer_advance_ns, -1,
> +				      timer_advance_ns);

This is relatively expensive, so it should only be done after setting
timer_advance_adjust_done to true.

Paolo



[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