From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50691) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpxqz-0002mI-Qx for qemu-devel@nongnu.org; Sat, 24 Oct 2015 08:23:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zpxqu-000480-VK for qemu-devel@nongnu.org; Sat, 24 Oct 2015 08:23:21 -0400 Received: from mail-lf0-x234.google.com ([2a00:1450:4010:c07::234]:36072) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zpxqu-00047w-Og for qemu-devel@nongnu.org; Sat, 24 Oct 2015 08:23:16 -0400 Received: by lffz202 with SMTP id z202so107930206lff.3 for ; Sat, 24 Oct 2015 05:23:15 -0700 (PDT) From: Dmitry Osipenko Date: Sat, 24 Oct 2015 15:21:58 +0300 Message-Id: Subject: [Qemu-devel] [PATCH v7 0/2] PTimer fix and ARM MPTimer conversion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: Peter Maydell , Peter Crosthwaite Changelog for ARM MPTimer QEMUTimer to ptimer conversion: V2: Fixed changing periodic timer counter value "on the fly". I added a test to the gist to cover that issue. V3: Fixed starting the timer with load = 0 and counter != 0, added tests to the gist for this issue. Changed vmstate version for all VMSD's, since loadvm doesn't check version of nested VMSD. V4: Fixed spurious IT bit set for the timer starting in the periodic mode with counter = 0. Test added. V5: Code cleanup, now depends on ptimer_set_limit() fix. V6: No code change, added test to check ptimer_get_count() with corrected .limit value. V7: No change. ARM MPTimer tests: https://gist.github.com/digetx/dbd46109503b1a91941a Patch for ptimer is introduced since V5 of ARM MPTimer conversion. Changelog for ptimer patch: V5: Only fixed ptimer_set_limit() for the disabled timer. V6: As was pointed by Peter Maydell, there are other issues beyond ptimer_set_limit(), so V6 supposed to cover all those issues. V7: Added accidentally removed !use_icount check. Added missed "else" statement, thanks to checkpatch :) Dmitry Osipenko (2): hw/ptimer: Fix issues caused by artificially limited timer timeout arm_mptimer: Convert to use ptimer hw/core/ptimer.c | 37 ++++++++------ hw/timer/arm_mptimer.c | 110 ++++++++++++++++++----------------------- include/hw/timer/arm_mptimer.h | 4 +- 3 files changed, 72 insertions(+), 79 deletions(-) -- 2.6.1