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: 9540503 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 EF19E60429 for ; Fri, 27 Jan 2017 01:09:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DCE2F2824F for ; Fri, 27 Jan 2017 01:09:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D1DBE28306; Fri, 27 Jan 2017 01:09:07 +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=unavailable 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 6B9792824F for ; Fri, 27 Jan 2017 01:09:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754135AbdA0BIw (ORCPT ); Thu, 26 Jan 2017 20:08:52 -0500 Received: from outprodmail01.cc.columbia.edu ([128.59.72.39]:57840 "EHLO outprodmail01.cc.columbia.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752926AbdA0BGZ (ORCPT ); Thu, 26 Jan 2017 20:06:25 -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 v0R14A9v050347 for ; Thu, 26 Jan 2017 20:05:06 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id 856E085 for ; Thu, 26 Jan 2017 20:05:06 -0500 (EST) Received: from sendprodmail04.cc.columbia.edu (sendprodmail04.cc.columbia.edu [128.59.72.16]) by hazelnut (Postfix) with ESMTP id 6D2088B for ; Thu, 26 Jan 2017 20:05:06 -0500 (EST) Received: from mail-qt0-f197.google.com (mail-qt0-f197.google.com [209.85.216.197]) by sendprodmail04.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v0R1567C011877 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Thu, 26 Jan 2017 20:05:06 -0500 Received: by mail-qt0-f197.google.com with SMTP id k15so256519281qtg.5 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=ZCI7bpjRa23e9s+GK657Lyu0Y9oA3b0myXHV7k+vlBtloxaVv2bUrMKw8rFQ7iyr3g Iee0bZI27gykpEA4gB09aAL7de7dR4GJi6e0WlYDaeIgtQ6FKwHIKM4IDkkWq03qk1Io 5DWt3TzCmMjqxsCWdutizINq6TtmNWoM9XXwcsOFw0Loh67IPKbXeYgT+H6cz/q0nRbt cKcHTEwIsBMDUf0C12I0prf/cgZEOlZU2NYyADqJJsO27B9Tx4DJ17DFECPs+fQMGGoO W/fSsg+fsVkHTmmti3EBdJRTbc09rTA7jGGm1jzjKUzXDHoF/4y7B4tg7m0vk5dKRX/r 28sg== X-Gm-Message-State: AIkVDXKzBl9rtBhWaoGqFlbpnC7HddeiN9vzLSKUnsgVYucDx7EojRtByRQDfVvBHwsebKYIJE077MI7QIcGPEoIsT/dhrjJ6JMHdajnewt1Ggl8Cizdb5TIB4cKHFxsBQA30LeB7yopAkI= X-Received: by 10.200.43.115 with SMTP id 48mr5747351qtv.157.1485479106006; 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.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 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