From patchwork Wed Feb 1 17:43:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jintack Lim X-Patchwork-Id: 9550423 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 9693060424 for ; Wed, 1 Feb 2017 17:46:17 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 892602040D for ; Wed, 1 Feb 2017 17:46:17 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7DC3328435; Wed, 1 Feb 2017 17:46:17 +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 437E72040D for ; Wed, 1 Feb 2017 17:46:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753587AbdBARqM (ORCPT ); Wed, 1 Feb 2017 12:46:12 -0500 Received: from outprodmail02.cc.columbia.edu ([128.59.72.51]:55336 "EHLO outprodmail02.cc.columbia.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754015AbdBARnY (ORCPT ); Wed, 1 Feb 2017 12:43:24 -0500 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 v11He801001150 for ; Wed, 1 Feb 2017 12:43:18 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id ACF7B80 for ; Wed, 1 Feb 2017 12:43:18 -0500 (EST) Received: from sendprodmail03.cc.columbia.edu (sendprodmail03.cc.columbia.edu [128.59.72.15]) by hazelnut (Postfix) with ESMTP id 7F89285 for ; Wed, 1 Feb 2017 12:43:18 -0500 (EST) Received: from mail-qt0-f199.google.com (mail-qt0-f199.google.com [209.85.216.199]) by sendprodmail03.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v11HhIIr044881 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Wed, 1 Feb 2017 12:43:18 -0500 Received: by mail-qt0-f199.google.com with SMTP id c25so153958361qtg.2 for ; Wed, 01 Feb 2017 09:43:18 -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=JnIozhON7mpy7j6sZ+1ixxBckQ0e1WdfaENGKE9uwoI=; b=q3JisuSeuYwvr4mOS+Fe2tkW4m3Q/n7LOZGbqA2lg3SZtSX3FVnHlAjMtRJUPQv9IX qh64sXR9HVjPeX0FQ+551cTa/C94g4ZwPm2DiDtGyzEPLMSGFcqeZ4/XGfodss7KgZ4m RthFfdV3U3lUpEBYFzzmE9nFlt1qqZZjhmA3KFvtwPIEuhTUen78Rp4EenM7LTbAqhUM BMg2AjIcRpe/LQ2mfhT2QJi3DejTm9I3k1afA4h7FWSAOjs804KnCfoM/Ul0sXhfattM TOFHyt9TYz4ZFyBq1lMW/7cYxv8ngc4BEPQ6ERLPOPr0hG0wLupEGQf4koZXvoh+NnNC /sfg== X-Gm-Message-State: AMke39mbLc0Mbg6+G0t2vd52vnhTRV85Lsw2/40XxlMJw/O+Vk01yqGArhmlqfHx44S7EuGKh04ix8fW2SXURq6SYkSD06Iz7/8z35Cw2zcIu6ZDhC1IwyABKSD4MJ4Z5jXxnxZWFmiZRlE= X-Received: by 10.55.108.70 with SMTP id h67mr3940170qkc.245.1485970998040; Wed, 01 Feb 2017 09:43:18 -0800 (PST) X-Received: by 10.55.108.70 with SMTP id h67mr3940142qkc.245.1485970997854; Wed, 01 Feb 2017 09:43:17 -0800 (PST) Received: from jintack.cs.columbia.edu ([2001:18d8:ffff:16:21a:4aff:feaa:f900]) by smtp.gmail.com with ESMTPSA id b16sm19149046qka.9.2017.02.01.09.43.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 01 Feb 2017 09:43:16 -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 Cc: jintack@cs.columbia.edu Subject: [RFC v3 04/10] KVM: arm/arm64: Add the EL1 physical timer context Date: Wed, 1 Feb 2017 12:43:04 -0500 Message-Id: <1485970990-13775-5-git-send-email-jintack@cs.columbia.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1485970990-13775-1-git-send-email-jintack@cs.columbia.edu> References: <1485970990-13775-1-git-send-email-jintack@cs.columbia.edu> X-No-Spam-Score: Local X-Scanned-By: MIMEDefang 2.78 on 128.59.72.15 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 Acked-by: Christoffer Dall --- 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 f46fa3b..6445a3d 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; @@ -75,4 +76,5 @@ int kvm_timer_vcpu_reset(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