From patchwork Fri Jan 27 01:04:54 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jintack Lim X-Patchwork-Id: 9540451 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 E523560429 for ; Fri, 27 Jan 2017 01:06:09 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C7D8B281C3 for ; Fri, 27 Jan 2017 01:06:09 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B90D128305; Fri, 27 Jan 2017 01:06:09 +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=-1.4 required=2.0 tests=BAYES_00, RCVD_IN_SORBS_SPAM autolearn=no version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id E14BD2824F for ; Fri, 27 Jan 2017 01:06:08 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1cWuzL-00025f-AG; Fri, 27 Jan 2017 01:06:03 +0000 Received: from outprodmail02.cc.columbia.edu ([128.59.72.51]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cWuyv-00021A-AJ for linux-arm-kernel@lists.infradead.org; Fri, 27 Jan 2017 01:05:39 +0000 Received: from hazelnut (hazelnut.cc.columbia.edu [128.59.213.250]) by outprodmail02.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v0R156Av063920 for ; Thu, 26 Jan 2017 20:05:06 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id 7AEEA8A for ; Thu, 26 Jan 2017 20:05:06 -0500 (EST) Received: from sendprodmail03.cc.columbia.edu (sendprodmail03.cc.columbia.edu [128.59.72.15]) by hazelnut (Postfix) with ESMTP id 62D0481 for ; Thu, 26 Jan 2017 20:05:06 -0500 (EST) Received: from mail-qt0-f198.google.com (mail-qt0-f198.google.com [209.85.216.198]) by sendprodmail03.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v0R156B7035878 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 26 Jan 2017 20:05:06 -0500 Received: by mail-qt0-f198.google.com with SMTP id g49so256464567qta.0 for ; Thu, 26 Jan 2017 17:05:06 -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:subject:date:message-id:in-reply-to :references; bh=QzkqPg8L5MxaSHn2GtdHJj2doVIj/hzpcYTlFp64kRg=; b=eJefkbKw9llIO10ufeoHeErq0yVvzFMaqnHZAyLAXdkVgH3H0v9yFTjb4ujxzfYpYa YY6upx1fLLkpxk+Txqd4fy+2J89qj/icQ/lC11ZffBpqIasI1ntFAehpz2nkz0eD0eoT X8Lamaa0JdNK4fPLIfJKN41xvDAIG3rrHNYmEU9wwlmQHnXC3RbF0UybRIch8MY4riMs Y7TpjFwOuXR/ytFQtzH49m710BgxDZb6omEQxjAG53sqpjw7j7VimYFRAW4xa/Qt4eOi j7g8ANA4xxCAV7rN8M4MOjScsPdecvWSnIUFEDNhJOuhwyXOpSqnpNDfoIydC8iOPJDw NHMA== X-Gm-Message-State: AIkVDXJ2S0AEXN1LAK0IKH1T80ROStUax0/cFjXIWzCRPaSZK68AG4/JsNvpnhqfyPR37cO0njW4RJuStSIFzbWP97rxEgzjtPvOtBh7Vf3sQoTpTl0nymu8siXNGRSnH3n7dBvGdR+3up+4rFBhiyF4wGxL2np7Q85u0A== X-Received: by 10.200.43.115 with SMTP id 48mr5747355qtv.157.1485479106008; Thu, 26 Jan 2017 17:05:06 -0800 (PST) X-Received: by 10.200.43.115 with SMTP id 48mr5747333qtv.157.1485479105854; Thu, 26 Jan 2017 17:05:05 -0800 (PST) Received: from jintack.cs.columbia.edu ([2001:18d8:ffff:16:21a:4aff:feaa:f900]) by smtp.gmail.com with ESMTPSA id f68sm2709538qkf.34.2017.01.26.17.05.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 26 Jan 2017 17:05:05 -0800 (PST) From: Jintack Lim To: pbonzini@redhat.com, rkrcmar@redhat.com, christoffer.dall@linaro.org, marc.zyngier@arm.com, linux@armlinux.org.uk, catalin.marinas@arm.com, will.deacon@arm.com, andre.przywara@arm.com, kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, linux-kernel@vger.kernel.org Subject: [RFC v2 04/10] KVM: arm/arm64: Add the EL1 physical timer context Date: Thu, 26 Jan 2017 20:04:54 -0500 Message-Id: <1485479100-4966-5-git-send-email-jintack@cs.columbia.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485479100-4966-1-git-send-email-jintack@cs.columbia.edu> References: <1485479100-4966-1-git-send-email-jintack@cs.columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.78 on 128.59.72.15 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170126_170537_514350_E9086907 X-CRM114-Status: GOOD ( 10.05 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.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 d921d20..69f648b 100644 --- a/include/kvm/arm_arch_timer.h +++ b/include/kvm/arm_arch_timer.h @@ -40,6 +40,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_init_vhe(void); #define vcpu_vtimer(v) (&(v)->arch.timer_cpu.vtimer) +#define vcpu_ptimer(v) (&(v)->arch.timer_cpu.ptimer) #endif