Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp767452ybc; Tue, 12 Nov 2019 08:54:29 -0800 (PST) X-Google-Smtp-Source: APXvYqyV5/qSKtkUGzuj2LYu3Oy7ALqxw28KJ8IEKpTXMV7MnudTf4nCB+rri8NkTaNeHk1MsE+T X-Received: by 2002:a17:906:24d4:: with SMTP id f20mr30467578ejb.182.1573577669860; Tue, 12 Nov 2019 08:54:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573577669; cv=none; d=google.com; s=arc-20160816; b=AfrhuAfeZVj3EeH4ym52SUHZxcQZY6BZKQThlIHJbLa5Y5Lw/zoxGMTNsCrQCOyBBu zFKZjJie2++AvVxc99QWHDQoUv+OqpKaFdYjhgH6z0DHjD9KB6LzKo7DDW7M66kTX9qr XG1DP+jXSUCPGc17GQUaHk76sRpKPMTra+ll/RjsD7oQandwihjsbmCFwj+wMVajgU4U KyeJOtaVJEpphcWR9VHDpjofw1T8uDiHIdxiQH/LYm/laiNbc7UItICkmW5gU4LbpIFt NFTwQnBJHpD/97kyhPNUNDcaBcOr+tcs9doaHuFNUSfzOekti1Nj8KndiyRaxBl6v4K8 0wKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=mCBS37QHa5p7GYBZWBDlgQNEgqXmRyMMchjXY9rypPk=; b=UwxjDqWLANeHPRZcFRegNJ4i3b5C+2zP4uw4JvM4NEUXnUTE4x3iqO4dsTK8n9jElX OblIyqMyUkVRBGOzndKJqq8LqjlC9QjNbNWzaDCYj+uGT0l3LiBK6M2xCDje26HuSwnC +0kVlSPKLxZe4m8SG/ZJq5MyArbbJGnEXgu5B0PVYLMG0B0pDscjx4TNq3oTsXhUSgW3 YRIxb9z40RqVStp0a5c9MXEyE1w5bGDIdUnEVhGehRvj/kqEJNnLI1IY/EEbmsr3VUGR UbGHOJVHMJiDp8ArV+uc3lTGJseLfCJoXRA8Ykv5nqBdlJaUfqRwd3/3enpTdkWjjQUf wB8A== 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 u12si16700460eda.319.2019.11.12.08.54.05; Tue, 12 Nov 2019 08:54:29 -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 S1727409AbfKLQxX (ORCPT + 99 others); Tue, 12 Nov 2019 11:53:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:33242 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727069AbfKLQxV (ORCPT ); Tue, 12 Nov 2019 11:53:21 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id BD8BDB2BF; Tue, 12 Nov 2019 16:53:18 +0000 (UTC) From: Michal Suchanek To: linuxppc-dev@lists.ozlabs.org Cc: Benjamin Herrenschmidt , Paul Mackerras , Michael Ellerman , Oleg Nesterov , Alexander Viro , Christian Brauner , Nicholas Piggin , Allison Randal , "Naveen N. Rao" , Michal Suchanek , Thomas Gleixner , Breno Leitao , Christophe Leroy , Claudio Carvalho , Russell Currey , Greg Kroah-Hartman , Mahesh Salgaonkar , Arnd Bergmann , Geert Uytterhoeven , Firoz Khan , Dmitry Vyukov , Masahiro Yamada , Hari Bathini , Andrew Donnellan , Nicolai Stange , Valentin Schneider , Diana Craciun , Daniel Axtens , Michael Neuling , Gustavo Romero , Mathieu Malaterre , "Steven Rostedt" , "Eric W. Biederman" , Heiko Carstens , David Howells , Brajeswar Ghosh , Jagadeesh Pagadala , David Hildenbrand , Andrew Morton , Madhavan Srinivasan , linux-kernel@vger.kernel.org Subject: [PATCH 03/33] powerpc/64s/exception: Add GEN_KVM macro that uses INT_DEFINE parameters Date: Tue, 12 Nov 2019 17:52:01 +0100 Message-Id: X-Mailer: git-send-email 2.23.0 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nicholas Piggin No generated code change. Signed-off-by: Nicholas Piggin --- arch/powerpc/kernel/exceptions-64s.S | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/arch/powerpc/kernel/exceptions-64s.S b/arch/powerpc/kernel/exceptions-64s.S index 591ae2a73e18..0e39e98ef719 100644 --- a/arch/powerpc/kernel/exceptions-64s.S +++ b/arch/powerpc/kernel/exceptions-64s.S @@ -204,6 +204,7 @@ END_FTR_SECTION_NESTED(ftr,ftr,943) #define ISET_RI .L_ISET_RI_\name\() #define IEARLY .L_IEARLY_\name\() #define IMASK .L_IMASK_\name\() +#define IKVM_SKIP .L_IKVM_SKIP_\name\() #define IKVM_REAL .L_IKVM_REAL_\name\() #define IKVM_VIRT .L_IKVM_VIRT_\name\() #define ISTACK .L_ISTACK_\name\() @@ -243,6 +244,9 @@ do_define_int n .ifndef IMASK IMASK=0 .endif + .ifndef IKVM_SKIP + IKVM_SKIP=0 + .endif .ifndef IKVM_REAL IKVM_REAL=0 .endif @@ -265,6 +269,10 @@ do_define_int n KVM_HANDLER \vec, \hsrr, \area, \skip .endm +.macro GEN_KVM name + KVM_HANDLER IVEC, IHSRR, IAREA, IKVM_SKIP +.endm + #ifdef CONFIG_KVM_BOOK3S_64_HANDLER #ifdef CONFIG_KVM_BOOK3S_HV_POSSIBLE /* @@ -1226,6 +1234,7 @@ INT_DEFINE_BEGIN(data_access) IVEC=0x300 IDAR=1 IDSISR=1 + IKVM_SKIP=1 IKVM_REAL=1 INT_DEFINE_END(data_access) @@ -1235,7 +1244,8 @@ EXC_REAL_END(data_access, 0x300, 0x80) EXC_VIRT_BEGIN(data_access, 0x4300, 0x80) GEN_INT_ENTRY data_access, virt=1 EXC_VIRT_END(data_access, 0x4300, 0x80) -INT_KVM_HANDLER data_access, 0x300, EXC_STD, PACA_EXGEN, 1 +TRAMP_KVM_BEGIN(data_access_kvm) + GEN_KVM data_access EXC_COMMON_BEGIN(data_access_common) GEN_COMMON data_access ld r4,_DAR(r1) -- 2.23.0