Re: [PATCH 5/7] KVM-GST: KVM Steal time accounting

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

 



On Tue, 2011-06-14 at 22:08 -0300, Glauber Costa wrote:
> >> +               while (steal>  TICK_NSEC) {
> >
> >                       /* really, if we wanted a division we'd have
> written one */
> >                       asm("" : "+rm" (steal));
> 
> Out of curiosity, have we seen any compiler de-optimize it to a 
> division, or are you just being careful ?
> 
> >> +                       steal -= TICK_NSEC;
> >> +                       st++;
> >> +               } 

No that really happened a number of times, there's one in
sched_avg_period() that actually triggered and __iter_div_u64_rem() that
started it all iirc.
--
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