From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NMdKl-0002hA-LB for qemu-devel@nongnu.org; Mon, 21 Dec 2009 03:09:40 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NMdKg-0002fg-GW for qemu-devel@nongnu.org; Mon, 21 Dec 2009 03:09:38 -0500 Received: from [199.232.76.173] (port=52808 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NMdKg-0002fd-9o for qemu-devel@nongnu.org; Mon, 21 Dec 2009 03:09:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:61766) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NMdKf-0003nK-MS for qemu-devel@nongnu.org; Mon, 21 Dec 2009 03:09:33 -0500 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nBL89WFt030896 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 21 Dec 2009 03:09:32 -0500 Received: from localhost.localdomain (vpn2-10-119.ams2.redhat.com [10.36.10.119]) by int-mx01.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id nBL89V3K011460 for ; Mon, 21 Dec 2009 03:09:32 -0500 From: Paolo Bonzini Date: Mon, 21 Dec 2009 09:09:11 +0100 Message-Id: <1261382970-23251-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 00/19][RFC] Cleanups + split timer handling out of vl.o List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org This series makes a few cleanup in the timer handling code and splits out ~1500 lines out of the huge vl.o file. So far I've tested it by booting a live CD both under Linux and by cross-compiling to Windows. If the series is considered helpful, I can test further including actually running the Windows version (Wine doesn't work). Paolo Bonzini (19): centralize handling of -icount add qemu_icount_round avoid dubiously clever code in win32_start_timer fix error in win32_rearm_timer only one flag is needed for alarm_timer more alarm timer cleanup add qemu_get_clock_ns move kbd/mouse events to event.c remove qemu_rearm_alarm_timer from main loop add qemu_bh_scheduled use a bottom half to run timers new function qemu_icount_delta move tcg_has_work to cpu-exec.c and rename it disentangle tcg and deadline calculation do not provide qemu_event_increment if iothread not used tweak qemu_notify_event move vmstate registration of vmstate_timers earlier introduce qemu_clock_enable split out qemu-timer.c Makefile | 2 +- Makefile.target | 1 + async.c | 5 + cpu-all.h | 4 +- cpu-exec.c | 16 +- event.c | 238 +++++++++ hw/xenfb.c | 6 +- qemu-common.h | 2 + qemu-timer.c | 1218 ++++++++++++++++++++++++++++++++++++++++++++ qemu-timer.h | 12 + sysemu.h | 2 +- vl.c | 1529 ++++--------------------------------------------------- 12 files changed, 1592 insertions(+), 1443 deletions(-) create mode 100644 event.c create mode 100644 qemu-timer.c