Received: by 10.223.185.116 with SMTP id b49csp7394764wrg; Thu, 1 Mar 2018 05:00:48 -0800 (PST) X-Google-Smtp-Source: AG47ELs2XOiZ4uEQ8SqS48XHSNiW/ny+3l/ptUJOgpaBX+6FLx4acZ/dRnRz/E3VtESmyjH9pEmo X-Received: by 10.99.150.2 with SMTP id c2mr1522559pge.424.1519909248010; Thu, 01 Mar 2018 05:00:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519909248; cv=none; d=google.com; s=arc-20160816; b=nwIVsRYwuiqGf/jh/LM6Mz/s6IuyPCOROZtkV8HZ3bPVxPln3pM96n6KJ9CBhksZC3 YMwZMOOZR8ECLYmWMKY4p+VTDixQwsy76BepPN6223jGhe3RUbPIc6yQbYKPqvgSlNHb tx5w83fOb0/tPyGlrANGdTNsIZQmjHVGWJXSfoQ8CumZixfk4cy1GQVXyE3xdz0K9DZU ScGRHZ//4PsCjYf2SlTkFWyUmySBBOgyJm4j1igOG9RO4dcCrKvFjZw4tXGNSr9Gk1kx z823U2zGH71dWhgAmEv4SwEG4ro/H6qmIOrJ8ujOOQx3HOltZKBFWgf+RSTxzfR8fcN7 L2lQ== 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:dkim-signature:arc-authentication-results; bh=iXQ1ea6Hf/00SPSEn2cgvnnJnEbrG1bOJUxh9KRtS1o=; b=DsQEurfbXuv18H/spy6N3qxbEPPX2+uoTgyyGtGmCataUTGR3fyltx+pih2AhPRYRq qanCOY9sQPLNCLlQ8/gEUYOaufCfDlkbC3Mt2W0FrdTl9HE7WqL+xLD7/VjiBtm5PDG4 rH2Qou8Dx94AYsplcprWeYiLy4cYbekGDRBmvj/X24nZSCTLAwl0NIm8kyIjwrkY4/hJ 5lphe7nbW2oGJDm27Xwq7KXXXTr6jHJpuBgq+Zy+EJl8fpRZDdOEmYhdvULDd32FgtDn +Y9BQU3xUzyaBTkS0DkirHb2qbRlmiGAI0X8voimpj6ujaFC9//ocywoQgWzHuQvp8G6 3LSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=HPw8khHD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a89-v6si3060767pla.527.2018.03.01.05.00.32; Thu, 01 Mar 2018 05:00:47 -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; dkim=pass header.i=@linaro.org header.s=google header.b=HPw8khHD; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031027AbeCAM7j (ORCPT + 99 others); Thu, 1 Mar 2018 07:59:39 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:38727 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031015AbeCAM7g (ORCPT ); Thu, 1 Mar 2018 07:59:36 -0500 Received: by mail-pg0-f66.google.com with SMTP id l24so2275583pgc.5 for ; Thu, 01 Mar 2018 04:59:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=iXQ1ea6Hf/00SPSEn2cgvnnJnEbrG1bOJUxh9KRtS1o=; b=HPw8khHDIOr90kZmiRgPeRdSq2EXPf7Ue7ekWyGqkLS/x99eLh5AmuNzHEnVuc0Jy2 a6fKIW1LGIzjUe3uGhM7sSfPxEBaexkI3xr/2oR6rK2fSAx7FYAPDc7MVRMRZ+Jm5A9D qbGKofIEnTruBfA+aVHV+uie7D1YQ4gQEx5yw= 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=iXQ1ea6Hf/00SPSEn2cgvnnJnEbrG1bOJUxh9KRtS1o=; b=qOloISfm6PXC1q4MJbRGZ3prnYwOQuVaiGsrq6FkLDNKUrTiuTIkuJZFHTULlC4Fcu V95SK3cHfY6thkkfUgzlNhbU90sH0afXplaJAHDoYACETr6H7zFkYqPAuxKNJAfPDYrV pxVm8qU6zTR+dQwoeXTR8YupNWTFaf1vNER/qvMRgjNgQZYXzQrjkqZN8l1DvQDrUKs6 5rAEWIziN9DFIAB2KKq8/+SWp5PM+T+yMK1J2K4Z6PSwAKzR/yojLtdmFA75DuoMpV9n xwelF4D+ANz6BQ3iKwsTET3+QlcKzdzVw1hfsc8QgNkb6J8IPEhqJUapytue5OeVSgCv XPCQ== X-Gm-Message-State: APf1xPCnsSK3881YAXWZt6WodLBJ9awHqO6TJXM/7tLMTc27KwEbN3u2 aQfH0h2T/Qi0xnPal3J1fGGiKQ== X-Received: by 10.98.86.15 with SMTP id k15mr1877067pfb.187.1519909175506; Thu, 01 Mar 2018 04:59:35 -0800 (PST) Received: from localhost.localdomain (176.122.172.82.16clouds.com. [176.122.172.82]) by smtp.gmail.com with ESMTPSA id x4sm2289655pfb.46.2018.03.01.04.59.28 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 01 Mar 2018 04:59:34 -0800 (PST) From: Alex Shi To: Marc Zyngier , Will Deacon , Ard Biesheuvel , Catalin Marinas , stable@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Cc: Alex Shi Subject: [PATCH 31/45] arm/arm64: KVM: Consolidate the PSCI include files Date: Thu, 1 Mar 2018 20:54:08 +0800 Message-Id: <1519908862-11425-32-git-send-email-alex.shi@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1519908862-11425-1-git-send-email-alex.shi@linaro.org> References: <1519908862-11425-1-git-send-email-alex.shi@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Marc Zyngier commit 1a2fb94e6a77 upstream. 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. Acked-by: Christoffer Dall Tested-by: Ard Biesheuvel Signed-off-by: Marc Zyngier Signed-off-by: Catalin Marinas Signed-off-by: Will Deacon Signed-off-by: Alex Shi --- arch/arm/include/asm/kvm_psci.h | 27 --------------------------- arch/arm/kvm/arm.c | 2 +- arch/arm/kvm/handle_exit.c | 2 +- arch/arm/kvm/psci.c | 2 +- arch/arm64/include/asm/kvm_psci.h | 27 --------------------------- arch/arm64/kvm/handle_exit.c | 3 ++- include/kvm/arm_psci.h | 27 +++++++++++++++++++++++++++ 7 files changed, 32 insertions(+), 58 deletions(-) delete mode 100644 arch/arm/include/asm/kvm_psci.h delete mode 100644 arch/arm64/include/asm/kvm_psci.h create mode 100644 include/kvm/arm_psci.h diff --git a/arch/arm/include/asm/kvm_psci.h b/arch/arm/include/asm/kvm_psci.h deleted file mode 100644 index 6bda945..0000000 --- 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/arm.c b/arch/arm/kvm/arm.c index 4e4ae07..8588e67 100644 --- a/arch/arm/kvm/arm.c +++ b/arch/arm/kvm/arm.c @@ -44,8 +44,8 @@ #include #include #include -#include #include +#include #ifdef REQUIRES_VIRT __asm__(".arch_extension virt"); diff --git a/arch/arm/kvm/handle_exit.c b/arch/arm/kvm/handle_exit.c index 4e57ebc..0a2b758 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/arm/kvm/psci.c b/arch/arm/kvm/psci.c index a08d7a9..18f9e9d 100644 --- a/arch/arm/kvm/psci.c +++ b/arch/arm/kvm/psci.c @@ -21,8 +21,8 @@ #include #include -#include #include +#include #include diff --git a/arch/arm64/include/asm/kvm_psci.h b/arch/arm64/include/asm/kvm_psci.h deleted file mode 100644 index bc39e55..0000000 --- a/arch/arm64/include/asm/kvm_psci.h +++ /dev/null @@ -1,27 +0,0 @@ -/* - * Copyright (C) 2012,2013 - 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 __ARM64_KVM_PSCI_H__ -#define __ARM64_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 /* __ARM64_KVM_PSCI_H__ */ diff --git a/arch/arm64/kvm/handle_exit.c b/arch/arm64/kvm/handle_exit.c index 5b56b09..0231ebc 100644 --- a/arch/arm64/kvm/handle_exit.c +++ b/arch/arm64/kvm/handle_exit.c @@ -22,12 +22,13 @@ #include #include +#include + #include #include #include #include #include -#include #define CREATE_TRACE_POINTS #include "trace.h" diff --git a/include/kvm/arm_psci.h b/include/kvm/arm_psci.h new file mode 100644 index 0000000..2042bb9 --- /dev/null +++ b/include/kvm/arm_psci.h @@ -0,0 +1,27 @@ +/* + * Copyright (C) 2012,2013 - 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 __KVM_ARM_PSCI_H__ +#define __KVM_ARM_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 /* __KVM_ARM_PSCI_H__ */ -- 2.7.4