Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp5349628ybc; Wed, 27 Nov 2019 02:40:53 -0800 (PST) X-Google-Smtp-Source: APXvYqzv5JIxRnwhYCmk01Bwix1ediN2lb69ROa5jABBNpEqOMZMCtotqLhLpzOFonkWBvm1jmD4 X-Received: by 2002:a17:906:604e:: with SMTP id p14mr48855701ejj.257.1574851253063; Wed, 27 Nov 2019 02:40:53 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574851253; cv=none; d=google.com; s=arc-20160816; b=ahtg2qS6VVvWgovI5J6r32W1gU8CDCPq4ky/ffpIpz7wDwKI4A4AXM2iqHeDjcIARY ZQsIBst+T7SQONfMtgvZWUDHCkufUt7Fjut881ogbXd0lNByEkpN1+a6uq3OIyz/caiP od96K0vSXUvGB0vArasoq6c8Ng7cyaSZbex7Wc7qrTGCGPgeSFicPGyTJz5RbdaEnOpG zCyRnmzL2HtgCAuZA46U6TC05KMpBthxxJCfcm0AiLQ56dKdrB5GP/gkWjrUOqMqO71U qfinYQZcjY5GoZKdi5mR3Y+N8cafVavffctL10TMvxOI9PvGyyyeki4QrAaEqArBemQS MA4Q== 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=icT3OE0WhVx4dyEvjZe1lG+IojCrDvK4rz8/X/yJUIU=; b=xz7FcNwR1CqIRhkrQKcF/dZc46l2ZTyUOENP+pM4TqClAD2uXwm+IkvHfqM9z1k4FC nXC46+Z1ugLgAYuBGZstIv52ThjeqDrlBVPwmeIegjfCrbKxqxgjNPLdPWm6HqESS0bz 0WGEniyVrwOeD9UFDm1Q0HAkWLu5ZFyqlGOlsiXwzWsL1+npJaTZVauy3L/61E1JIIvH 1nFKO2h94MZbv25b52hlydjm7M58YSQ/Ikd7J9QdXsb7HlcxCpUUV4P6Rd+PiqNOkKau 5uSpiXNAGTiO8E7XO814jBAHsbXAJUZ1/elRXLBibgCgC4EuiU61Bz+KRXJo4PblRZ7c 1c1A== 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 dm8si717705edb.392.2019.11.27.02.40.27; Wed, 27 Nov 2019 02:40: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 S1726696AbfK0Kj0 (ORCPT + 99 others); Wed, 27 Nov 2019 05:39:26 -0500 Received: from mx2.suse.de ([195.135.220.15]:54698 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726204AbfK0KjZ (ORCPT ); Wed, 27 Nov 2019 05:39:25 -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 BC5A6B3E4; Wed, 27 Nov 2019 10:39:22 +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 v2 rebase 03/34] powerpc/64s/exception: Add GEN_KVM macro that uses INT_DEFINE parameters Date: Wed, 27 Nov 2019 11:38:39 +0100 Message-Id: <39767da084ed4dc0e462ba96588a0b6047e8a0df.1574803684.git.msuchanek@suse.de> 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 595e215515e9..087df86d03ff 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