From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:38035) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rtzcp-0007Cx-Py for qemu-devel@nongnu.org; Sun, 05 Feb 2012 05:47:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rtzcd-0006QY-Ao for qemu-devel@nongnu.org; Sun, 05 Feb 2012 05:47:15 -0500 Received: from fmmailgate01.web.de ([217.72.192.221]:42462) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rtzcc-0006QJ-Uj for qemu-devel@nongnu.org; Sun, 05 Feb 2012 05:47:03 -0500 Received: from moweb001.kundenserver.de (moweb001.kundenserver.de [172.19.20.114]) by fmmailgate01.web.de (Postfix) with ESMTP id D299C1A9DD195 for ; Sun, 5 Feb 2012 11:46:36 +0100 (CET) From: Jan Kiszka Date: Sun, 5 Feb 2012 11:46:26 +0100 Message-Id: Subject: [Qemu-devel] [PATCH 0/4] uq/master: Introduce KVM PIT support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity , Marcelo Tosatti Cc: Anthony Liguori , qemu-devel , kvm@vger.kernel.org This adds another piece of qemu-kvm to upstream: The accelerated in-kernel model of the i8254. It does this in the same fashion as the interrupt controllers were already introduced. And it even has one bug less than qemu-kvm: PC speaker output still works with KVM acceleration enabled. Changes in v2: - Rebased over recent upstream master to reflect QOM changes The patches depend on the follow upstream or uq/master patches: - pit, hpet, pcspk: fixes & preparation for KVM (v4, 7 patches) http://thread.gmane.org/gmane.comp.emulators.kvm.devel/86006 - kvm: Implement kvm_irqchip_in_kernel http://thread.gmane.org/gmane.comp.emulators.qemu/134399 - KVM: Fix breakages of QOM conversion http://permalink.gmane.org/gmane.comp.emulators.qemu/134844 It is based on upstream commit cb437e48ab (before the VGA breakage). The series plus dependencies is also available at git://git.kiszka.org/qemu-kvm.git queues/kvm-pit Please review / merge. Jan Kiszka (4): i8254: Factor out base class for KVM reuse i8254: Open-code timer restore kvm: Add kvm_has_pit_state2 helper kvm: x86: Add user space part for in-kernel i8254 Makefile.objs | 2 +- Makefile.target | 2 +- hw/i8254.c | 281 +++++++--------------------------------------- hw/i8254.h | 11 ++ hw/i8254_common.c | 307 +++++++++++++++++++++++++++++++++++++++++++++++++++ hw/i8254_internal.h | 85 ++++++++++++++ hw/kvm/i8254.c | 241 ++++++++++++++++++++++++++++++++++++++++ hw/pc.c | 14 ++- kvm-all.c | 10 ++ kvm-stub.c | 5 + kvm.h | 1 + 11 files changed, 717 insertions(+), 242 deletions(-) create mode 100644 hw/i8254_common.c create mode 100644 hw/i8254_internal.h create mode 100644 hw/kvm/i8254.c -- 1.7.3.4