From patchwork Mon Sep 12 16:42:56 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vijay Kilari X-Patchwork-Id: 9327035 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 AC35D6048B for ; Mon, 12 Sep 2016 16:49:41 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9DD3328D30 for ; Mon, 12 Sep 2016 16:49:41 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 91B5D28D40; Mon, 12 Sep 2016 16:49:41 +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.8 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 1FA7428D30 for ; Mon, 12 Sep 2016 16:49:41 +0000 (UTC) Received: from localhost ([::1]:44147 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjUQG-0003Yq-PE for patchwork-qemu-devel@patchwork.kernel.org; Mon, 12 Sep 2016 12:49:32 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39559) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjULt-0000kA-Cq for qemu-devel@nongnu.org; Mon, 12 Sep 2016 12:45:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bjULo-00028N-4I for qemu-devel@nongnu.org; Mon, 12 Sep 2016 12:45:00 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:34314) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bjULd-0001xl-MJ; Mon, 12 Sep 2016 12:44:45 -0400 Received: by mail-pa0-f67.google.com with SMTP id ph5so1892167pab.1; Mon, 12 Sep 2016 09:44:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=6WayaGcTLp6KmR2Id0ZF7ZITH6k/jpgOQUWycIKFVkg=; b=eQ/DiBCa3QVfly14uckZ8ZlyqiOleJjjsLw/NxViXCAOvfzKlVxGtYufd8uI5z/wjP lv0OZEAPDJDoGYV1RGkUrcSKV019ICouQ2RCMIp8vU/xt+So00xIM5B16lo+2BtiZo/8 DRinvlQIzTOZg2fUsMPyrwGz2+0jf0Jk9ROQ4NNGhMNj6JTOetVhSOJrNzQ+yajttIrj gSsWKX+3ZfUrRAlUDey5hApao2mMb1fuXXLE6BH6Q9kRJIIdMsMk1uo9LrLG1Ve91Ttl EAVI7R9l1kXelLqI/AVXAvet3xdfWgE+dvpYaiK/HKOn6JfbkFo2lp4a+r54dOC8phWu VoJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=6WayaGcTLp6KmR2Id0ZF7ZITH6k/jpgOQUWycIKFVkg=; b=EICv6KfIvh5jpzP3K1dg0HIkTZ2GT/EakmpXEX9v34o0bSwof9TC6mj8T0tNBCOKbk 2Qlrhz+Zl80CKSmWIayvnAVMCyxdNhO/MCktBk0Lt5MSVNbtz+Xa5CUTWQWdXXffO7yl WcLZdAzVGFgcqwaIK8UnKvbED7cF6iyRxuLfwtyp6kMGlTSiZwpJAlD5tS9l4xR1jajn O76N2RKZBLy6M5brryt4x2CbDSTJsu4FyHhg3FBXK/BmNYxwdh9WXSMa198O/NreRRh5 hUnU3BZWqOvVDjGi+kzHewiyI10LIXqJ9JuWFsH3c70kA+C2KXsaRvwyIjtP84e4AFqN VGUg== X-Gm-Message-State: AE9vXwOpL1xMqTFiamccXlGm3XpYL+1Ko9zVgnhZEHxibxM2x4K17hnzz426vb9Pb0iN9Q== X-Received: by 10.66.0.99 with SMTP id 3mr13759923pad.109.1473698603687; Mon, 12 Sep 2016 09:43:23 -0700 (PDT) Received: from localhost.localdomain ([14.140.2.178]) by smtp.gmail.com with ESMTPSA id s12sm25734728pfj.73.2016.09.12.09.43.20 (version=TLS1_1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 12 Sep 2016 09:43:23 -0700 (PDT) From: vijay.kilari@gmail.com To: qemu-arm@nongnu.org, peter.maydell@linaro.org, pbonzini@redhat.com, rth@twiddle.net, marc.zyngier@arm.com Date: Mon, 12 Sep 2016 22:12:56 +0530 Message-Id: <1473698577-18365-2-git-send-email-vijay.kilari@gmail.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1473698577-18365-1-git-send-email-vijay.kilari@gmail.com> References: <1473698577-18365-1-git-send-email-vijay.kilari@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.85.220.67 Subject: [Qemu-devel] [RFC PATCH v4 1/2] kernel: Add definitions for GICv3 attributes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: p.fedin@samsung.com, qemu-devel@nongnu.org, vijay.kilari@gmail.com, Vijaya Kumar K Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" X-Virus-Scanned: ClamAV using ClamSMTP From: Vijaya Kumar K This temporary patch adds kernel API definitions. Use proper header update procedure after these features are released. Signed-off-by: Pavel Fedin Signed-off-by: Vijaya Kumamr K --- linux-headers/asm-arm64/kvm.h | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm-arm64/kvm.h index 7d82d1f..3dc0860 100644 --- a/linux-headers/asm-arm64/kvm.h +++ b/linux-headers/asm-arm64/kvm.h @@ -199,10 +199,23 @@ struct kvm_arch_memory_slot { #define KVM_DEV_ARM_VGIC_GRP_CPU_REGS 2 #define KVM_DEV_ARM_VGIC_CPUID_SHIFT 32 #define KVM_DEV_ARM_VGIC_CPUID_MASK (0xffULL << KVM_DEV_ARM_VGIC_CPUID_SHIFT) +#define KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT 32 +#define KVM_DEV_ARM_VGIC_V3_MPIDR_MASK \ + (0xffffffffULL << KVM_DEV_ARM_VGIC_V3_MPIDR_SHIFT) #define KVM_DEV_ARM_VGIC_OFFSET_SHIFT 0 #define KVM_DEV_ARM_VGIC_OFFSET_MASK (0xffffffffULL << KVM_DEV_ARM_VGIC_OFFSET_SHIFT) +#define KVM_DEV_ARM_VGIC_SYSREG_INSTR_MASK (0xffff) #define KVM_DEV_ARM_VGIC_GRP_NR_IRQS 3 #define KVM_DEV_ARM_VGIC_GRP_CTRL 4 +#define KVM_DEV_ARM_VGIC_GRP_REDIST_REGS 5 +#define KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS 6 +#define KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO 7 +#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT 10 +#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK \ + (0x3fffffULL << KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT) +#define KVM_DEV_ARM_VGIC_LINE_LEVEL_INTID_MASK 0x3ff +#define VGIC_LEVEL_INFO_LINE_LEVEL 0 + #define KVM_DEV_ARM_VGIC_CTRL_INIT 0 /* Device Control API on vcpu fd */