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 :-)