Received: by 10.223.185.116 with SMTP id b49csp3206080wrg; Mon, 5 Mar 2018 16:31:32 -0800 (PST) X-Google-Smtp-Source: AG47ELvJXkTI3O3uUHsq03D+4yJAQhmIHIyVI4ZRgfGUaky2+WUd5LQJ+5wkAjvKPeq0fZJEydR/ X-Received: by 2002:a17:902:6789:: with SMTP id g9-v6mr15019035plk.167.1520296292087; Mon, 05 Mar 2018 16:31:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520296292; cv=none; d=google.com; s=arc-20160816; b=DEFJm3TAnurRt0hz0Y7MH4Z/FTzSkjXo6Wf9/iHPARFxAshtqsiHdDv0fBpJO1gyxl 200rjSgZTW+xM8tua+um9NToR+hIUnSKZHpZLeSJMk6qAklPX7Z7lvHZt1K0UfZVzQfa NxYxp0VRchGVjNWjE5IqPGhEuFb31yJJsbxn/HUBuHaBlUqEe9fKQk+UnKVBAYdtX3Zs vQghFn8NWqEuqPusDSNWP+jELOdDxNTramDaqLuBOarYI9U5ZxpxDcrOIH7zhM0NT1qa xckplY1jzWCkgJME/IJJd8W+hcudwm+FLd09qkY9d9llkfxkFj4rJtaIZumTtcwJj4iz zeNA== 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:to:from:dkim-signature:arc-authentication-results; bh=csj1Trfq4HsPu3KvuA5RLRp4Uar1J5tIraYT0acHLLA=; b=ACVw1WB3xq+z3hZFos96AEhFXekOMqu+324jHOeK0I7kvNdA5FjWLeOYrJtTDOT9UU WgXOiMQdSOp+MbKs9WntX+apHkaNFKVUQjZRVmlqso+VvgIi6UTUzGYyCXlMRS0RIz1Y WVdBScOA23calvCgMZ0n2OFwLK+WK7noIrJimsDZKHrbPGcObSnsW+K2lHzINpeQfDJj Sn2FwAdjf/1un1K8GnRm8g+dcjkZ2Y9iL6VjarUss9DY/bpgw0RAyKHuUSxBKXRgv3aW m7QzrFDXoAnaofuw4w3mt2tvU/V2KpSp5LueusktZhPPDamBHxUymYh0OU8PndSAb4cs dTdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=iEDY/kba; 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=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4-v6si10019907plw.297.2018.03.05.16.31.17; Mon, 05 Mar 2018 16:31:32 -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=@oracle.com header.s=corp-2017-10-26 header.b=iEDY/kba; 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=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933689AbeCFA2n (ORCPT + 99 others); Mon, 5 Mar 2018 19:28:43 -0500 Received: from userp2120.oracle.com ([156.151.31.85]:43168 "EHLO userp2120.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933532AbeCFA07 (ORCPT ); Mon, 5 Mar 2018 19:26:59 -0500 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w260Qthm077101; Tue, 6 Mar 2018 00:26:55 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=from : to : subject : date : message-id : in-reply-to : references; s=corp-2017-10-26; bh=csj1Trfq4HsPu3KvuA5RLRp4Uar1J5tIraYT0acHLLA=; b=iEDY/kbaSUYqp/qDvrRAE4PSLfsI1Adu6HwvYlF0EPpJic1KELuh3nmp4pzh+HZxgdb5 Vq5k9txvc8lln5vT/3e9aQViCy8P2uA6sEqCkabBfkkC6qvl0xukNAawT97n+mOPcKAC BETYastGw+QVaCBA8exH3t9PkZ9kLCY0zsEtyaYIyZ4Q0JBUt9h/ImUokxRCDNGDePrC EZzilh+kaInjPjR00nPJIncBmSPsVEs2AKIOhhSIYJYnv4PEoH4jjGn09VLZeVt2/AgB kE7UvCWGfu2NSMvNci2MFA0c0S+Bw3V6GREN8ljNo4a7wn0nPFqiPzgQ+l/zJZd77I7X eQ== Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2ghe5xgf1r-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 06 Mar 2018 00:26:55 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w260Qoko026546 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL); Tue, 6 Mar 2018 00:26:50 GMT Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w260QoZh025279; Tue, 6 Mar 2018 00:26:50 GMT Received: from localhost.localdomain (/98.216.35.41) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 05 Mar 2018 16:26:49 -0800 From: Pavel Tatashin To: steven.sistare@oracle.com, daniel.m.jordan@oracle.com, linux-kernel@vger.kernel.org, Alexander.Levin@microsoft.com, dan.j.williams@intel.com, sathyanarayanan.kuppuswamy@intel.com, pankaj.laxminarayan.bharadiya@intel.com, akuster@mvista.com, cminyard@mvista.com, pasha.tatashin@oracle.com, gregkh@linuxfoundation.org, stable@vger.kernel.org Subject: [PATCH 4.1 57/65] x86/paravirt: Dont patch flush_tlb_single Date: Mon, 5 Mar 2018 19:25:30 -0500 Message-Id: <20180306002538.1761-58-pasha.tatashin@oracle.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180306002538.1761-1-pasha.tatashin@oracle.com> References: <20180306002538.1761-1-pasha.tatashin@oracle.com> X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8823 signatures=668683 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=999 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1711220000 definitions=main-1803060005 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner commit a035795499ca1c2bd1928808d1a156eda1420383 upstream native_flush_tlb_single() will be changed with the upcoming PAGE_TABLE_ISOLATION feature. This requires to have more code in there than INVLPG. Remove the paravirt patching for it. Signed-off-by: Thomas Gleixner Reviewed-by: Josh Poimboeuf Reviewed-by: Juergen Gross Acked-by: Peter Zijlstra Cc: Andy Lutomirski Cc: Boris Ostrovsky Cc: Borislav Petkov Cc: Borislav Petkov Cc: Brian Gerst Cc: Dave Hansen Cc: Dave Hansen Cc: David Laight Cc: Denys Vlasenko Cc: Eduardo Valentin Cc: Greg KH Cc: H. Peter Anvin Cc: Linus Torvalds Cc: Rik van Riel Cc: Will Deacon Cc: aliguori@amazon.com Cc: daniel.gruss@iaik.tugraz.at Cc: hughd@google.com Cc: keescook@google.com Cc: linux-mm@kvack.org Cc: michael.schwarz@iaik.tugraz.at Cc: moritz.lipp@iaik.tugraz.at Cc: richard.fellner@student.tugraz.at Link: https://lkml.kernel.org/r/20171204150606.828111617@linutronix.de Signed-off-by: Ingo Molnar Acked-by: Borislav Petkov Signed-off-by: Greg Kroah-Hartman (cherry picked from commit 3e809caffdd7beeac731feb16788873c3bdb811e) Signed-off-by: Pavel Tatashin --- arch/x86/kernel/paravirt_patch_64.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/kernel/paravirt_patch_64.c b/arch/x86/kernel/paravirt_patch_64.c index a1da6737ba5b..a91d9b9b4bde 100644 --- a/arch/x86/kernel/paravirt_patch_64.c +++ b/arch/x86/kernel/paravirt_patch_64.c @@ -9,7 +9,6 @@ DEF_NATIVE(pv_irq_ops, save_fl, "pushfq; popq %rax"); DEF_NATIVE(pv_mmu_ops, read_cr2, "movq %cr2, %rax"); DEF_NATIVE(pv_mmu_ops, read_cr3, "movq %cr3, %rax"); DEF_NATIVE(pv_mmu_ops, write_cr3, "movq %rdi, %cr3"); -DEF_NATIVE(pv_mmu_ops, flush_tlb_single, "invlpg (%rdi)"); DEF_NATIVE(pv_cpu_ops, clts, "clts"); DEF_NATIVE(pv_cpu_ops, wbinvd, "wbinvd"); @@ -57,7 +56,6 @@ unsigned native_patch(u8 type, u16 clobbers, void *ibuf, PATCH_SITE(pv_mmu_ops, read_cr3); PATCH_SITE(pv_mmu_ops, write_cr3); PATCH_SITE(pv_cpu_ops, clts); - PATCH_SITE(pv_mmu_ops, flush_tlb_single); PATCH_SITE(pv_cpu_ops, wbinvd); patch_site: -- 2.16.2