From patchwork Fri Feb 3 15:20:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jintack Lim X-Patchwork-Id: 9554381 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 6F818602B7 for ; Fri, 3 Feb 2017 15:22:25 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 703EB2847D for ; Fri, 3 Feb 2017 15:22:25 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 64BFE2838D; Fri, 3 Feb 2017 15:22:25 +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.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI 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 6DBF92838D for ; Fri, 3 Feb 2017 15:22:24 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751464AbdBCPUX (ORCPT ); Fri, 3 Feb 2017 10:20:23 -0500 Received: from outprodmail02.cc.columbia.edu ([128.59.72.51]:57725 "EHLO outprodmail02.cc.columbia.edu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbdBCPUU (ORCPT ); Fri, 3 Feb 2017 10:20:20 -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 v13FI75L025851 for ; Fri, 3 Feb 2017 10:20:14 -0500 Received: from hazelnut (localhost.localdomain [127.0.0.1]) by hazelnut (Postfix) with ESMTP id D990A81 for ; Fri, 3 Feb 2017 10:20:14 -0500 (EST) Received: from sendprodmail03.cc.columbia.edu (sendprodmail03.cc.columbia.edu [128.59.72.15]) by hazelnut (Postfix) with ESMTP id C02C889 for ; Fri, 3 Feb 2017 10:20:14 -0500 (EST) Received: from mail-qk0-f200.google.com (mail-qk0-f200.google.com [209.85.220.200]) by sendprodmail03.cc.columbia.edu (8.14.4/8.14.4) with ESMTP id v13FKEVS046660 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 3 Feb 2017 10:20:14 -0500 Received: by mail-qk0-f200.google.com with SMTP id u25so631659qki.3 for ; Fri, 03 Feb 2017 07:20:14 -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=YtMTk1/TlLD/7JNhtF9jONULJfSaIMmgOua6Mz378b0=; b=k8bpZtPvkDtjDvET0p8CbZqFZ35o8FD/FCMFrhw1G4Csfs6nuR9AQwl3kaZH1ouJOh 26xz2KAlmqOejGsdICfiXZnzC0yUlUpEgcyVAcBJkcW1ZL3lSft5uWuwWJF5D81L3qQJ S0GAEt/idepK1RwaKZMSADemriB/0sAje9M/l507W6X5JYcGvYsF/uzWfO05uhMiFjcG xrXt45NLkBBhUO2n+0339Bl3gltZIuVfKHRMo5qpGwD1axNEMABlR4mvt8+5GXnOSsN/ 63pPUQJGm1v6yn1lXyWvLCXrkVlCd7wCstjsdMG/fopV6vM8ApZVpzVM9NdZMjDGe+Gj lDlA== X-Gm-Message-State: AMke39lu0U/0tcQUeorfOeTzhsOtyqXhBo91gbTX+6k0vJxudGQ9eIUPUVyzzuM7imQOnh2KkUmd0wz+urXUFxzowvQQI65ltW5HCxLrselVTKfmWX0Ywi9xhb3MQZubk5WhseN9xZAHJHM= X-Received: by 10.55.192.137 with SMTP id v9mr13523269qkv.305.1486135214341; Fri, 03 Feb 2017 07:20:14 -0800 (PST) X-Received: by 10.55.192.137 with SMTP id v9mr13523249qkv.305.1486135214176; Fri, 03 Feb 2017 07:20:14 -0800 (PST) Received: from jintack.cs.columbia.edu ([2001:18d8:ffff:16:21a:4aff:feaa:f900]) by smtp.gmail.com with ESMTPSA id t35sm24462204qtc.40.2017.02.03.07.20.13 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 03 Feb 2017 07:20:13 -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 v4 04/10] KVM: arm/arm64: Add the EL1 physical timer context Date: Fri, 3 Feb 2017 10:20:02 -0500 Message-Id: <1486135208-13415-5-git-send-email-jintack@cs.columbia.edu> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1486135208-13415-1-git-send-email-jintack@cs.columbia.edu> References: <1486135208-13415-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