From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37028) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y99wL-0003rt-QI for qemu-devel@nongnu.org; Thu, 08 Jan 2015 05:03:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Y99wF-0002HL-AZ for qemu-devel@nongnu.org; Thu, 08 Jan 2015 05:03:41 -0500 Received: from mail-wg0-x22a.google.com ([2a00:1450:400c:c00::22a]:59844) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Y99wF-0002G9-3Q for qemu-devel@nongnu.org; Thu, 08 Jan 2015 05:03:35 -0500 Received: by mail-wg0-f42.google.com with SMTP id k14so1677577wgh.1 for ; Thu, 08 Jan 2015 02:03:34 -0800 (PST) Received: from playground.station (net-37-117-147-67.cust.vodafonedsl.it. [37.117.147.67]) by mx.google.com with ESMTPSA id qg11sm21175327wic.17.2015.01.08.02.03.32 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 08 Jan 2015 02:03:33 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 8 Jan 2015 11:03:24 +0100 Message-Id: <1420711408-15766-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 0/4] qemu-timer: introduce usable pointer-free API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org The current pointer free API for timers is very low level. Introduce a new API that matches timer_new_ns/us/ms and also a new API timer_deinit that can be used instead of timer_free. Finally, mechanically change timer macro names in vmstate, to make it clear that they accept a pointer. This prepares for conversion of timers from QEMUTimer * to QEMUTimer. Paolo Paolo Bonzini (4): qemu-timer: rename timer_init to timer_init_tl qemu-timer: add timer_init and timer_init_ns/us/ms qemu-timer: introduce timer_deinit vmstate: accept QEMUTimer in VMSTATE_TIMER*, add VMSTATE_TIMER_PTR* hw/acpi/ich9.c | 2 +- hw/acpi/piix4.c | 2 +- hw/arm/stellaris.c | 2 +- hw/block/fdc.c | 2 +- hw/char/cadence_uart.c | 2 +- hw/char/serial.c | 4 +- hw/core/ptimer.c | 2 +- hw/dma/pl330.c | 2 +- hw/input/lm832x.c | 2 +- hw/intc/armv7m_nvic.c | 2 +- hw/isa/vt82c686.c | 2 +- hw/misc/macio/cuda.c | 2 +- hw/net/pcnet.c | 2 +- hw/sd/sdhci.c | 4 +- hw/timer/a9gtimer.c | 2 +- hw/timer/arm_mptimer.c | 2 +- hw/timer/hpet.c | 2 +- hw/timer/mc146818rtc.c | 4 +- hw/usb/hcd-ehci.c | 2 +- hw/usb/hcd-ohci.c | 2 +- hw/usb/hcd-uhci.c | 2 +- hw/usb/hcd-xhci.c | 2 +- hw/usb/redirect.c | 2 +- hw/watchdog/wdt_i6300esb.c | 2 +- hw/watchdog/wdt_ib700.c | 2 +- include/block/aio.h | 2 +- include/migration/vmstate.h | 18 +++++++-- include/qemu/timer.h | 94 ++++++++++++++++++++++++++++++++++++++++++--- qemu-timer.c | 20 +++++++--- target-arm/machine.c | 4 +- 30 files changed, 149 insertions(+), 45 deletions(-) -- 2.1.0