From patchwork Mon Dec 26 17:12:01 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jintack Lim X-Patchwork-Id: 9488685 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7F454604B9 for ; Mon, 26 Dec 2016 17:24:30 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 73CFA26223 for ; Mon, 26 Dec 2016 17:24:30 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 689602623D; Mon, 26 Dec 2016 17:24:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.4 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 1985C26223 for ; Mon, 26 Dec 2016 17:24:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755465AbcLZRYZ (ORCPT ); Mon, 26 Dec 2016 12:24:25 -0500 Received: from outprodmail01.cc.columbia.edu ([128.59.72.39]:49596 "EHLO outprodmail01.cc.columbia.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755408AbcLZRYU (ORCPT ); Mon, 26 Dec 2016 12:24:20 -0500 Received: from hazelnut (hazelnut.cc.columbia.edu [128.59.213.250]) by outprodmail01.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id uBQHM5Ak062066 for ; Mon, 26 Dec 2016 12:24:19 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id B02897E for ; Mon, 26 Dec 2016 12:24:19 -0500 (EST) Received: from sendprodmail04.cc.columbia.edu (sendprodmail04.cc.columbia.edu [128.59.72.16]) by hazelnut (Postfix) with ESMTP id 8656880 for ; Mon, 26 Dec 2016 12:24:19 -0500 (EST) Received: from mail-qt0-f199.google.com (mail-qt0-f199.google.com [209.85.216.199]) by sendprodmail04.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id uBQHOJT9052960 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Mon, 26 Dec 2016 12:24:19 -0500 Received: by mail-qt0-f199.google.com with SMTP id p16so234034465qta.5 for ; Mon, 26 Dec 2016 09:24:19 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=XqHRgLYmvPI6Is39IME3S3Cz/8dILngSPVyuCyHp8w4=; b=lHbHdysXH9ALuo+h5f+54lrYMuhcwcyVuAGGe48F34fIjdYLncRcJaxHxQcdgNKf5h mnvVFaGOp6fN0VdLcz3fqfY0288hhIfIdkL5t8/ztHnpdlK/xoP865f+dTa6J4BJ26Xc gadZrbIC+UP3u2S8btPL3LPPVq+lIILOKK4Jgzy1glSuyycW0J8aFpdGPNizUysVT20z caculNzO7Ty1MH1sCVk3ucY8/dpjwPwyM0ZQtcG5Oc3huT+mJpT0kIMf/h/cTMj00+cS SMNvOaKH3U/7ewr4aIWcn4/SL0OeQQWFnHfvSjkrVnKGv2LxRSGxINfXRe78Qo4UJIgh sqYA== X-Gm-Message-State: AIkVDXIpZsPd+37wFOwlrn7SY3+zeh4iOPRmhCZ4JuI2RbUWBH0D7Zs0skfLw7LXHLVFksUUxSCM5JZHniMwQzuSYWsNPP5tEw2xFU27cn09BP9vMmEONs7dhOisw61PKH8ClteSQuU9I6Y= X-Received: by 10.55.122.134 with SMTP id v128mr25914641qkc.111.1482773059238; Mon, 26 Dec 2016 09:24:19 -0800 (PST) X-Received: by 10.55.122.134 with SMTP id v128mr25914626qkc.111.1482773059098; Mon, 26 Dec 2016 09:24:19 -0800 (PST) Received: from jintack.cs.columbia.edu ([2001:18d8:ffff:16:21a:4aff:feaa:f900]) by smtp.gmail.com with ESMTPSA id n79sm26731463qkn.15.2016.12.26.09.24.17 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 26 Dec 2016 09:24:18 -0800 (PST) From: Jintack Lim To: kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org, marc.zyngier@arm.com Cc: pbonzini@redhat.com, rkrcmar@redhat.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, andre.przywara@arm.com, linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Jintack Lim Subject: [RFC 3/8] KVM: arm/arm64: Add the EL1 physical timer context Date: Mon, 26 Dec 2016 12:12:01 -0500 Message-Id: <1482772326-29110-4-git-send-email-jintack@cs.columbia.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1482772326-29110-1-git-send-email-jintack@cs.columbia.edu> References: <1482772326-29110-1-git-send-email-jintack@cs.columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.78 on 128.59.72.16 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Add the EL1 physical timer context. Signed-off-by: Jintack Lim --- include/kvm/arm_arch_timer.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/include/kvm/arm_arch_timer.h b/include/kvm/arm_arch_timer.h index cf84145..d21652a 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm_arch_timer.h @@ -45,6 +45,7 @@ struct arch_timer_context { struct arch_timer_cpu { struct arch_timer_context vtimer; + struct arch_timer_context ptimer; /* Background timer used when the guest is not running */ struct hrtimer timer; @@ -77,4 +78,5 @@ bool kvm_timer_should_fire(struct kvm_vcpu *vcpu, void kvm_timer_vcpu_put(struct kvm_vcpu *vcpu); #define vcpu_vtimer(v) (&(v)->arch.timer_cpu.vtimer) +#define vcpu_ptimer(v) (&(v)->arch.timer_cpu.ptimer) #endif