From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Graf Subject: [PATCH RFC v2 0/2] Enable cp15 timers with user space gic & kvm Date: Mon, 14 Nov 2016 15:32:13 +0100 Message-ID: <1479133935-63848-1-git-send-email-agraf@suse.de> Cc: Peter Maydell , Paolo Bonzini , kvm-devel , qemu-arm To: QEMU Developers Return-path: Received: from mx2.suse.de ([195.135.220.15]:57071 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbcKNOcI (ORCPT ); Mon, 14 Nov 2016 09:32:08 -0500 Sender: kvm-owner@vger.kernel.org List-ID: When running with KVM enabled, you can choose between emulating the gic in kernel or user space. If the kernel supports in-kernel virtualization of the interrupt controller, it will default to that. If not, if will default to user space emulation. Unfortunately when running in user mode gic emulation, we miss out on timer events which are only available from kernel space. This patch set leverages the new kernel/user space pending line synchronization for those timer events. rfc1 -> rfc2: - use local variable for ARM_CPU - remove bear trap - move timer warning to gic device Alexander Graf (2): linux-headers: update ARM: KVM: Enable in-kernel timers with user space gic hw/intc/arm_gic.c | 7 +++++++ include/sysemu/kvm.h | 11 +++++++++++ kvm-all.c | 5 +++++ kvm-stub.c | 5 +++++ linux-headers/asm-arm/kvm.h | 1 + linux-headers/asm-arm64/kvm.h | 1 + linux-headers/linux/kvm.h | 6 ++++++ target-arm/cpu.h | 3 +++ target-arm/kvm.c | 20 ++++++++++++++++++++ 9 files changed, 59 insertions(+) -- 1.8.5.6 From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45955) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6IJ5-0000iK-TC for qemu-devel@nongnu.org; Mon, 14 Nov 2016 09:32:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6IJ1-0008Jz-Qx for qemu-devel@nongnu.org; Mon, 14 Nov 2016 09:32:23 -0500 From: Alexander Graf Date: Mon, 14 Nov 2016 15:32:13 +0100 Message-Id: <1479133935-63848-1-git-send-email-agraf@suse.de> Subject: [Qemu-devel] [PATCH RFC v2 0/2] Enable cp15 timers with user space gic & kvm List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: Peter Maydell , Paolo Bonzini , kvm-devel , qemu-arm When running with KVM enabled, you can choose between emulating the gic in kernel or user space. If the kernel supports in-kernel virtualization of the interrupt controller, it will default to that. If not, if will default to user space emulation. Unfortunately when running in user mode gic emulation, we miss out on timer events which are only available from kernel space. This patch set leverages the new kernel/user space pending line synchronization for those timer events. rfc1 -> rfc2: - use local variable for ARM_CPU - remove bear trap - move timer warning to gic device Alexander Graf (2): linux-headers: update ARM: KVM: Enable in-kernel timers with user space gic hw/intc/arm_gic.c | 7 +++++++ include/sysemu/kvm.h | 11 +++++++++++ kvm-all.c | 5 +++++ kvm-stub.c | 5 +++++ linux-headers/asm-arm/kvm.h | 1 + linux-headers/asm-arm64/kvm.h | 1 + linux-headers/linux/kvm.h | 6 ++++++ target-arm/cpu.h | 3 +++ target-arm/kvm.c | 20 ++++++++++++++++++++ 9 files changed, 59 insertions(+) -- 1.8.5.6