From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752888AbdJKJkR (ORCPT ); Wed, 11 Oct 2017 05:40:17 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:51016 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752264AbdJKJkO (ORCPT ); Wed, 11 Oct 2017 05:40:14 -0400 Subject: Re: [PATCH v4 19/20] x86/mm: Add speculative pagefault handling To: Andrew Morton Cc: paulmck@linux.vnet.ibm.com, peterz@infradead.org, kirill@shutemov.name, ak@linux.intel.com, mhocko@kernel.org, dave@stgolabs.net, jack@suse.cz, Matthew Wilcox , benh@kernel.crashing.org, mpe@ellerman.id.au, paulus@samba.org, Thomas Gleixner , Ingo Molnar , hpa@zytor.com, Will Deacon , Sergey Senozhatsky , Andrea Arcangeli , Alexei Starovoitov , linux-kernel@vger.kernel.org, linux-mm@kvack.org, haren@linux.vnet.ibm.com, khandual@linux.vnet.ibm.com, npiggin@gmail.com, bsingharora@gmail.com, Tim Chen , linuxppc-dev@lists.ozlabs.org, x86@kernel.org References: <1507543672-25821-1-git-send-email-ldufour@linux.vnet.ibm.com> <1507543672-25821-20-git-send-email-ldufour@linux.vnet.ibm.com> <20171010142356.b33f8a8fee3427fbdf0708e3@linux-foundation.org> From: Laurent Dufour Date: Wed, 11 Oct 2017 11:39:58 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.3.0 MIME-Version: 1.0 In-Reply-To: <20171010142356.b33f8a8fee3427fbdf0708e3@linux-foundation.org> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 x-cbid: 17101109-0040-0000-0000-00000401B0E9 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 17101109-0041-0000-0000-000020A3BC5F Message-Id: <6c58b73a-b089-237f-46df-95e7c6fbe7ba@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2017-10-11_02:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 spamscore=0 suspectscore=0 malwarescore=0 phishscore=0 adultscore=0 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1707230000 definitions=main-1710110133 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/10/2017 23:23, Andrew Morton wrote: > On Mon, 9 Oct 2017 12:07:51 +0200 Laurent Dufour wrote: > >> +/* >> + * Advertise that we call the Speculative Page Fault handler. >> + */ >> +#if defined(CONFIG_X86_64) && defined(CONFIG_SMP) >> +#define __HAVE_ARCH_CALL_SPF >> +#endif > > Here's where I mess up your life ;) That's ok... for this time ;) > It would be more idiomatic to define this in arch/XXX/Kconfig: > > config SPF > def_bool y if SMP > > then use CONFIG_SPF everywhere. That's far smarter ! Thanks for the tip, I'll change the series in this way. > Also, it would be better if CONFIG_SPF were defined at the start of the > patch series rather than the end, so that as the patches add new code, > that code is actually compilable. For bisection purposes. I can > understand if this is too much work and effort - we can live with > things the way they are now. I'll make the change and define CONFIG_SPF earlier, since until the patch enabling SPF page fault handler call in the arch part, the code is not triggered but the sequence count and the RCU stuff will be called this way. > This patchset is a ton of new code in very sensitive areas and seems to > have received little review and test. I can do a > merge-and-see-what-happens but it would be quite a risk to send all > this upstream based only on my sketchy review and linux-next runtime > testing. Can we bribe someone? I'll do appreciate to get more review too. So please...