Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp4647125ybc; Tue, 26 Nov 2019 12:15:37 -0800 (PST) X-Google-Smtp-Source: APXvYqywiF/8vKAm1RfOh4MEN5jtNVG1LGKVKDW31r7UA9Gb1fv3gaDLLUMTYjzClgVjTaKwgXRj X-Received: by 2002:aa7:ca4a:: with SMTP id j10mr27629811edt.54.1574799337342; Tue, 26 Nov 2019 12:15:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1574799337; cv=none; d=google.com; s=arc-20160816; b=vl0cfDywnqeM77eT9ZmcRL4XJzgouWeFIQFFmwAWw1raYY6nmlJJwYZz9b3P4roT46 drdSikI0+9Ugslij5Cyl0pxkUL1YSRaqr6QjQZxsVj8olXEeAE8QyQcvVVOzJMRp8FW0 rFbNrZsBHrV6VSvA/yNQnAGniYV5nYfFPnojY80yBT70VkOKErAma3j+BKsynvN9MT5F a0PfhvcLFRk6c8smyGL4GzV1hLNdnDh78NiQduTPg8zKZyaWO5mkbx/KB5eq0Rvinj55 7ELWbxvpdXxHBOttoVFWWY8eRnx4pLHpysbcWcgE61/TbKAfe3+r/g5OeIRrL8NrjKsI e6lg== 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=G6Xyase62gyAFDJ0P4I/y2nwE+GJNBoYTb5BmHkKsQddhwmvkNYLEzwwU8Vy/L3UHO wn/rlc8SJqkL3i4rX0chNgA71a0m1+DFdIoPaUZzlPSfhjIdujoP61SWbJsKlfSyr2PY +sxMIy17wWtrsYg+XSc0uYKqy/j7q2b910nB0CnK/N+5tCxHFjqYtZ8rVhRnjLEscLaw tmC3iPqpopGTUALmV+9Suh3BTJsdyCzmDMP8K7dVA8b9qYgUUthpy3rOjnlW5ImduO/g yFlSwjlAqZf0zDUMBFmEXoxEh0Ic/KxmIlY+bfEgvp014Z/t049E273GAW/7Uq9qjjLX Ojww== 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 h19si7544626ejx.34.2019.11.26.12.15.13; Tue, 26 Nov 2019 12:15:37 -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 S1727126AbfKZUOH (ORCPT + 99 others); Tue, 26 Nov 2019 15:14:07 -0500 Received: from mx2.suse.de ([195.135.220.15]:45782 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726033AbfKZUOG (ORCPT ); Tue, 26 Nov 2019 15:14:06 -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 AB9A8AFFE; Tue, 26 Nov 2019 20:14:03 +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 03/35] powerpc/64s/exception: Add GEN_KVM macro that uses INT_DEFINE parameters Date: Tue, 26 Nov 2019 21:13:17 +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