Received: from eggs.gnu.org ([140.186.70.92]:57139) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqqOO-0007iY-A7 for qemu-devel@nongnu.org; Fri, 27 Jan 2012 13:19:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RqqOM-00054U-GG for qemu-devel@nongnu.org; Fri, 27 Jan 2012 13:19:20 -0500 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:32196 helo=SMTP.EU.CITRIX.COM) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RqqOM-00054N-6j for qemu-devel@nongnu.org; Fri, 27 Jan 2012 13:19:18 -0500 Date: Fri, 27 Jan 2012 18:20:16 +0000 From: Stefano Stabellini Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Subject: [Qemu-devel] [PATCH v3 0/6] prevent Qemu from waking up needlessly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "qemu-devel@nongnu.org" Cc: Paolo Bonzini , "xen-devel@lists.xensource.com" , Avi Kivity , Stefano Stabellini Hi all, this small patch series prevents Qemu from waking up needlessly on Xen several times a second in order to check some timers. The first patch stops Qemu from emulating the PIT on Xen, the second patch disables the rtc_clock entirely. The third patch makes use of a new mechanism to receive buffered io event notifications from Xen, so that Qemu doesn't need to check the buffered io page for data 10 times a sec for the entire life of the VM. The fourth patch fixes win32_rearm_timer and mm_rearm_timer that risk an overflow if INT64_MAX is passed as delta. The fifth patch changes qemu_next_alarm_deadline only to check the expire time of a clock if it is enabled. Finally the last patch increases the default select timeout to 1h: nothing should rely on the select timeout to be 1sec, so we might as well increase it to 1h. Changes in v3: - added a new patch to fix win32_rearm_timer and mm_rearm_timer, that risk an overflow if INT64_MAX is passed as delta. Shortlog and diffstat follow: Stefano Stabellini (6): xen: do not initialize the interval timer emulator xen: disable rtc_clock xen: introduce an event channel for buffered io event notifications timers: the rearm function should be able to handle delta = INT64_MAX qemu_next_alarm_deadline: check the expire time of a clock only if it is enabled qemu_calculate_timeout: increase minimum timeout to 1h hw/pc.c | 7 +++++-- qemu-timer.c | 30 ++++++++++++++++++------------ xen-all.c | 43 +++++++++++++++++++++++++++++++++++++------ 3 files changed, 60 insertions(+), 20 deletions(-) A git tree available here: git://xenbits.xen.org/people/sstabellini/qemu-dm.git timers-3 Cheers, Stefano