Re: [PATCH] KVM: x86: Fix guest time accounting with VIRT_CPU_ACCOUNTING_GEN

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

 



On Wed, Jul 10, 2019 at 08:42:30PM +0800, Zhang Yang wrote:
> Yes, In fact we had a trouble with the small window,  the system monitor
> found that the host machine's sys is very high now and then.  Based on our's
> tracing, we found that timer interrupt always hit after local_irq_enable, the
> guest tick would be always accounted to system time. after applying this
> patch, the phenomenon disappears.

Fun.  Rather than switching to guest_exit(), I think it'd be better to
unconditionally open an irq window in order to minimize the overhead.
I'll send a patch, it's easier to explain with code :-)



[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