From patchwork Sat Dec 1 01:05:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Christoffer Dall X-Patchwork-Id: 1828751 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) by patchwork2.kernel.org (Postfix) with ESMTP id 0BE02DF24C for ; Sat, 1 Dec 2012 01:08:43 +0000 (UTC) Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.76 #1 (Red Hat Linux)) id 1TebWt-0002ft-Fi; Sat, 01 Dec 2012 01:06:03 +0000 Received: from mail-vb0-f49.google.com ([209.85.212.49]) by merlin.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1TebWq-0002fY-HO for linux-arm-kernel@lists.infradead.org; Sat, 01 Dec 2012 01:06:01 +0000 Received: by mail-vb0-f49.google.com with SMTP id r6so64046vbi.36 for ; Fri, 30 Nov 2012 17:05:58 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:cc:content-type:x-gm-message-state; bh=zlJMQlEEyBKQCeKSL9pkDI7317IYzabfnCh/hP02VeM=; b=eoMv4Ta/SqCrdRcN/afMrFVXSPtnKh/9ZR0ZAEyM/B5V1PgSEY5xdSI4Rz7AXUVx28 ZkkGyxhMaSkf7Mh6CXv4KCKNnTFodvyO9Uq9rzcUq/rmzd1OXefk+bnF0iFhoQROJcXO Ip/Kr9tBsHUgmIweS0iL/8T9gVPldvNdXe1tlg391Xg0409NKK5l0TgSWixh044Q2Q6C DCgqnVBl+GW00UZ7bfzcSkry7TKXtlWu+AR+GRdEdMC3zB8OhYdtwe+6rjBXKJayUgbT lRzYQOlqAyfvlzS8hwxgEo388wNvJL9VHug9fnSFqhU8uKUVujzTVnKYWaOuqMPU5XC5 imAg== MIME-Version: 1.0 Received: by 10.220.8.138 with SMTP id h10mr2591978vch.35.1354323958473; Fri, 30 Nov 2012 17:05:58 -0800 (PST) Received: by 10.221.6.7 with HTTP; Fri, 30 Nov 2012 17:05:58 -0800 (PST) X-Originating-IP: [72.80.83.148] In-Reply-To: <20121123163109.GM32200@mudshark.cambridge.arm.com> References: <20121110154554.3274.77777.stgit@chazy-air> <20121110154632.3274.37896.stgit@chazy-air> <20121123163109.GM32200@mudshark.cambridge.arm.com> Date: Fri, 30 Nov 2012 20:05:58 -0500 Message-ID: Subject: Re: [PATCH v4 5/5] ARM: KVM: arch_timers: Wire the init code and config option From: Christoffer Dall To: Will Deacon X-Gm-Message-State: ALoCoQntg5S40Aqf7U54M7UjJIFBm+6YkZ573vD4UQxRuIOsTXiUymC7vatdDoZHzq/dAJzWtGqX X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20121130_200600_706584_45122A48 X-CRM114-Status: GOOD ( 13.60 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [209.85.212.49 listed in list.dnswl.org] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: Marc Zyngier , "linux-arm-kernel@lists.infradead.org" , "kvm@vger.kernel.org" , "kvmarm@lists.cs.columbia.edu" X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linux-arm-kernel-bounces@lists.infradead.org Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org On Fri, Nov 23, 2012 at 11:31 AM, Will Deacon wrote: > On Sat, Nov 10, 2012 at 03:46:32PM +0000, Christoffer Dall wrote: >> From: Marc Zyngier >> >> It is now possible to select CONFIG_KVM_ARM_TIMER to enable the >> KVM architected timer support. >> >> Signed-off-by: Marc Zyngier >> Signed-off-by: Christoffer Dall >> --- >> arch/arm/kvm/Kconfig | 7 +++++++ >> arch/arm/kvm/Makefile | 1 + >> arch/arm/kvm/arm.c | 11 +++++++++++ >> arch/arm/kvm/vgic.c | 1 + >> 4 files changed, 20 insertions(+) >> >> diff --git a/arch/arm/kvm/Kconfig b/arch/arm/kvm/Kconfig >> index 3c979ce..eaecb9f 100644 >> --- a/arch/arm/kvm/Kconfig >> +++ b/arch/arm/kvm/Kconfig >> @@ -58,6 +58,13 @@ config KVM_ARM_VGIC >> ---help--- >> Adds support for a hardware assisted, in-kernel GIC emulation. >> >> +config KVM_ARM_TIMER >> + bool "KVM support for Architected Timers" >> + depends on KVM_ARM_VGIC && ARM_ARCH_TIMER >> + select HAVE_KVM_IRQCHIP >> + ---help--- >> + Adds support for the Architected Timers in virtual machines >> + > > This should probably be default y > yes, good idea, they all should, like this: --- Thanks, -Christoffer diff --git a/arch/arm/kvm/Kconfig b/arch/arm/kvm/Kconfig index 60d3d2a..739500b 100644 --- a/arch/arm/kvm/Kconfig +++ b/arch/arm/kvm/Kconfig @@ -21,6 +21,7 @@ config KVM select PREEMPT_NOTIFIERS select ANON_INODES select KVM_MMIO + select KVM_ARM_HOST depends on ARM_VIRT_EXT && ARM_LPAE ---help--- Support hosting virtualized guest machines. You will also @@ -54,6 +55,7 @@ config KVM_ARM_VGIC bool "KVM support for Virtual GIC" depends on KVM_ARM_HOST && OF select HAVE_KVM_IRQCHIP + default y ---help--- Adds support for a hardware assisted, in-kernel GIC emulation. @@ -61,6 +63,7 @@ config KVM_ARM_TIMER bool "KVM support for Architected Timers" depends on KVM_ARM_VGIC && ARM_ARCH_TIMER select HAVE_KVM_IRQCHIP + default y ---help--- Adds support for the Architected Timers in virtual machines