Received: by 10.223.176.5 with SMTP id f5csp3172282wra; Mon, 29 Jan 2018 09:49:54 -0800 (PST) X-Google-Smtp-Source: AH8x225ei+cMM8zxB4j07PgyF7nL526H+qAEuKswRNtsZc/ZzRMHn7bsIM7jT00C/1jBvOFRhrH0 X-Received: by 2002:a17:902:7892:: with SMTP id q18-v6mr1846077pll.232.1517248194027; Mon, 29 Jan 2018 09:49:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517248193; cv=none; d=google.com; s=arc-20160816; b=rPaMcysJiX7p3Xt195alzDjb0PsucXDXgExRRDKRz6W262b/afv2TOSKfOd7ku5OIM nn7ln69uoE7D6iCt9wFYJy8P3vKDzM5lClnWXiQXA2srfQdPTKEmUTBr6cHwHW/Z9cx9 38o7j2+5P6YJTro0y4cS4JyRZwWxa9UzIsdo+hahMcE4iJ4DUBoNbhi7ZIWSBaIWQn+8 hRaayfMGcWfTcQa+ILzUt5DSlM7PsC/Lp8FVGa5++/5wXuilOCLDh/M5YyekauxCIgiH 2Jf4+p95LvZLs5IDMu54QCRLDzZxzxs9cI3osrziJX03KwV3wSle2ZtPXYYy56SSXlAk +lWA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=+Ao5lf4ob3cvlRVfmQPCUhl6E672bJqRJvBNimmp3KE=; b=QSIzxy0U48ocZexeDUTzHND9H1lBSZuRh5XdY+XesNw2KEjUMoaWcWbbAvpt5kjf33 h+yF3kJL6lfaVpK51FbetT7tfKBiTKcZG3ZzeQSJxzTkzYR7jT6ky5ppqHbYeokFkWPE r3/uyBnQv6z9t6OhI8yenuK5+wcPc6b0ufejBhV1yzLDY7juo5F2zLzr7ThUS8PTXCSG hxnT5uYX2OlhdjSAl+WBD6BOjlIW6hrURE/sqHTPRz+eZsovg9MC7PXhYBRhBS/NN3BN 97EdPbM3XzZ7oZgfRLWeDniHoFTY9Dlpfd3N5sa66bWjQL5tnTyxNEwzbALzpPujlKaY uQMA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z2si1489069pgr.168.2018.01.29.09.49.39; Mon, 29 Jan 2018 09:49:53 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751649AbeA2RqX (ORCPT + 99 others); Mon, 29 Jan 2018 12:46:23 -0500 Received: from foss.arm.com ([217.140.101.70]:43482 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751600AbeA2RqV (ORCPT ); Mon, 29 Jan 2018 12:46:21 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D5816164F; Mon, 29 Jan 2018 09:46:20 -0800 (PST) Received: from approximate.cambridge.arm.com (approximate.cambridge.arm.com [10.1.207.62]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C24AA3F487; Mon, 29 Jan 2018 09:46:18 -0800 (PST) From: Marc Zyngier To: linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu Cc: Catalin Marinas , Will Deacon , Peter Maydell , Christoffer Dall , Lorenzo Pieralisi , Mark Rutland , Robin Murphy , Ard Biesheuvel , Jon Masters Subject: [PATCH v2 03/16] arm/arm64: KVM: Consolidate the PSCI include files Date: Mon, 29 Jan 2018 17:45:46 +0000 Message-Id: <20180129174559.1866-4-marc.zyngier@arm.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180129174559.1866-1-marc.zyngier@arm.com> References: <20180129174559.1866-1-marc.zyngier@arm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As we're about to update the PSCI support, and because I'm lazy, let's move the PSCI include file to include/kvm so that both ARM architectures can find it. Signed-off-by: Marc Zyngier --- arch/arm/include/asm/kvm_psci.h | 27 ---------------------- arch/arm/kvm/handle_exit.c | 2 +- arch/arm64/kvm/handle_exit.c | 3 ++- .../asm/kvm_psci.h => include/kvm/arm_psci.h | 6 ++--- virt/kvm/arm/arm.c | 2 +- virt/kvm/arm/psci.c | 3 ++- 6 files changed, 9 insertions(+), 34 deletions(-) delete mode 100644 arch/arm/include/asm/kvm_psci.h rename arch/arm64/include/asm/kvm_psci.h => include/kvm/arm_psci.h (89%) diff --git a/arch/arm/include/asm/kvm_psci.h b/arch/arm/include/asm/kvm_psci.h deleted file mode 100644 index 6bda945d31fa..000000000000 --- a/arch/arm/include/asm/kvm_psci.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2012 - ARM Ltd - * Author: Marc Zyngier - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License version 2 as - * published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program. If not, see . - */ - -#ifndef __ARM_KVM_PSCI_H__ -#define __ARM_KVM_PSCI_H__ - -#define KVM_ARM_PSCI_0_1 1 -#define KVM_ARM_PSCI_0_2 2 - -int kvm_psci_version(struct kvm_vcpu *vcpu); -int kvm_psci_call(struct kvm_vcpu *vcpu); - -#endif /* __ARM_KVM_PSCI_H__ */ diff --git a/arch/arm/kvm/handle_exit.c b/arch/arm/kvm/handle_exit.c index d15ac772d186..e020cc82c4b1 100644 --- a/arch/arm/kvm/handle_exit.c +++ b/arch/arm/kvm/handle_exit.c @@ -21,7 +21,7 @@ #include #include #include -#include +#include #include #include "trace.h" diff --git a/arch/arm64/kvm/handle_exit.c b/arch/arm64/kvm/handle_exit.c index 520b0dad3c62..97e8d64a203d 100644 --- a/arch/arm64/kvm/handle_exit.c +++ b/arch/arm64/kvm/handle_exit.c @@ -22,13 +22,14 @@ #include #include +#include + #include #include #include #include #include #include -#include #include #include diff --git a/arch/arm64/include/asm/kvm_psci.h b/include/kvm/arm_psci.h similarity index 89% rename from arch/arm64/include/asm/kvm_psci.h rename to include/kvm/arm_psci.h index bc39e557c56c..2042bb909474 100644 --- a/arch/arm64/include/asm/kvm_psci.h +++ b/include/kvm/arm_psci.h @@ -15,8 +15,8 @@ * along with this program. If not, see . */ -#ifndef __ARM64_KVM_PSCI_H__ -#define __ARM64_KVM_PSCI_H__ +#ifndef __KVM_ARM_PSCI_H__ +#define __KVM_ARM_PSCI_H__ #define KVM_ARM_PSCI_0_1 1 #define KVM_ARM_PSCI_0_2 2 @@ -24,4 +24,4 @@ int kvm_psci_version(struct kvm_vcpu *vcpu); int kvm_psci_call(struct kvm_vcpu *vcpu); -#endif /* __ARM64_KVM_PSCI_H__ */ +#endif /* __KVM_ARM_PSCI_H__ */ diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c index 15bf026eb182..af3e98fc377e 100644 --- a/virt/kvm/arm/arm.c +++ b/virt/kvm/arm/arm.c @@ -31,6 +31,7 @@ #include #include #include +#include #define CREATE_TRACE_POINTS #include "trace.h" @@ -46,7 +47,6 @@ #include #include #include -#include #include #ifdef REQUIRES_VIRT diff --git a/virt/kvm/arm/psci.c b/virt/kvm/arm/psci.c index f1e363bab5e8..b322e46fd142 100644 --- a/virt/kvm/arm/psci.c +++ b/virt/kvm/arm/psci.c @@ -21,9 +21,10 @@ #include #include -#include #include +#include + #include /* -- 2.14.2