Received: by 10.223.176.5 with SMTP id f5csp2653175wra; Thu, 1 Feb 2018 04:02:36 -0800 (PST) X-Google-Smtp-Source: AH8x226huXxHBxhN5/nGEybMiXBjVr/c+z2h+VbJoBWIEgYazSadV2i8GDFQY/dEjQsAEDDaLUNj X-Received: by 10.101.65.205 with SMTP id b13mr29106205pgq.280.1517485800273; Thu, 01 Feb 2018 03:50:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517485729; cv=none; d=google.com; s=arc-20160816; b=vql6T/rk4zd1Y9yOaqD48EcNi4/OOMIdUAkRcONjenR57UijYOflA+5fsxQYHCKBah CvkNwPogU8xJXAVoyyGSxC3GwSwOxrsKsomQsHkiVG3CAEaTTFaQVbLeRelCfP/X5N0V 9otqo8w/TT/V/oKSnJ7GGcAPxXkb4ObvQFpxouXXcC6d5DTry3g7PAcTb24103xB6JM2 Jj2x7XuxpWlyiOEyWdEioXDMqr2LdRBNw3cmxDa4vNu+DNSnZWz+MT8PSJJf4D4O7xAr h994nXbeteOHt/fEpWlqzGI+ELNHsVLjo1/a4ljtewDuNob5+rWFKxMEK/qR5A2EIiRr BL9Q== 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=Q/Vlw5K+UX+WvNWHQ2cUU6BeWoSpc4W9Du9aBWjUCZo=; b=NhYemRNWeBUci4/yq/Kx7gq9Mv8YFD15aj/nuJnLIqJGeufo0wFxC3CcxzpFPvBjib mN0JffUZHE2fGghpiMo4/2kr1UBBnRQwLtrOtXYGcuhx57g/E+VRrDI+S2AVUnZSq7Ue Zg+p4NtQeaw8jKASQCCbdRu9kad2PeQXR0IFzcBMWFDdj9PkLPLXSdrVXExiZmYbu1yU KO3a4ULHzY2LphUKGbWGYJEBzsFNYnWkzIohIwQpKKeHpxkv5SgIDEUGeUH6BZlg41Ns xKRYWb1ke7xeLJJel5Muhw+z1jDQLoSaGEGTL+0es3/w+JXyOtGEK6cGHEnlkq3tVjIf o7jw== 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 g1-v6si1878822plk.422.2018.02.01.03.48.35; Thu, 01 Feb 2018 03:48:49 -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 S1752456AbeBALrz (ORCPT + 99 others); Thu, 1 Feb 2018 06:47:55 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:48344 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752411AbeBALrt (ORCPT ); Thu, 1 Feb 2018 06:47:49 -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 C78EB164F; Thu, 1 Feb 2018 03:47:48 -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 0AC5D3F25C; Thu, 1 Feb 2018 03:47:45 -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 , Andrew Jones , Hanjun Guo , Jayachandran C , Jon Masters , Russell King - ARM Linux Subject: [PATCH v3 04/18] arm/arm64: KVM: Consolidate the PSCI include files Date: Thu, 1 Feb 2018 11:46:43 +0000 Message-Id: <20180201114657.7323-5-marc.zyngier@arm.com> X-Mailer: git-send-email 2.14.2 In-Reply-To: <20180201114657.7323-1-marc.zyngier@arm.com> References: <20180201114657.7323-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 a4bf0f6f024a..230ae4079108 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 5493bbefbd0d..588f910632a7 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