From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753142AbdLDREt (ORCPT ); Mon, 4 Dec 2017 12:04:49 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:59949 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752600AbdLDQvM (ORCPT ); Mon, 4 Dec 2017 11:51:12 -0500 Message-Id: <20171204150606.828111617@linutronix.de> User-Agent: quilt/0.63-1 Date: Mon, 04 Dec 2017 15:07:30 +0100 From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Linus Torvalds , Andy Lutomirsky , Peter Zijlstra , Dave Hansen , Borislav Petkov , Greg KH , keescook@google.com, hughd@google.com, Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Rik van Riel , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , aliguori@amazon.com, Will Deacon , daniel.gruss@iaik.tugraz.at, Dave Hansen , michael.schwarz@iaik.tugraz.at, linux-mm@kvack.org, Borislav Petkov , moritz.lipp@iaik.tugraz.at, richard.fellner@student.tugraz.at Subject: [patch 24/60] x86/paravirt: Dont patch flush_tlb_single References: <20171204140706.296109558@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=x86-paravirt--Dont_patch_flush_tlb_single.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Thomas Gleixner native_flush_tlb_single() will be changed with the upcoming KERNEL_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 Acked-by: Peter Zijlstra Reviewed-by: Josh Poimboeuf Cc: Juergen Gross Cc: Rik van Riel Cc: Dave Hansen Cc: Denys Vlasenko Cc: Andy Lutomirski Cc: michael.schwarz@iaik.tugraz.at Cc: Brian Gerst Cc: hughd@google.com Cc: daniel.gruss@iaik.tugraz.at Cc: linux-mm@kvack.org Cc: Borislav Petkov Cc: moritz.lipp@iaik.tugraz.at Cc: keescook@google.com Cc: Boris Ostrovsky Cc: Linus Torvalds Cc: richard.fellner@student.tugraz.at --- arch/x86/kernel/paravirt_patch_64.c | 2 -- 1 file changed, 2 deletions(-) --- a/arch/x86/kernel/paravirt_patch_64.c +++ b/arch/x86/kernel/paravirt_patch_64.c @@ -10,7 +10,6 @@ DEF_NATIVE(pv_irq_ops, save_fl, "pushfq; 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, wbinvd, "wbinvd"); DEF_NATIVE(pv_cpu_ops, usergs_sysret64, "swapgs; sysretq"); @@ -60,7 +59,6 @@ unsigned native_patch(u8 type, u16 clobb PATCH_SITE(pv_mmu_ops, read_cr2); PATCH_SITE(pv_mmu_ops, read_cr3); PATCH_SITE(pv_mmu_ops, write_cr3); - PATCH_SITE(pv_mmu_ops, flush_tlb_single); PATCH_SITE(pv_cpu_ops, wbinvd); #if defined(CONFIG_PARAVIRT_SPINLOCKS) case PARAVIRT_PATCH(pv_lock_ops.queued_spin_unlock): From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wm0-f72.google.com (mail-wm0-f72.google.com [74.125.82.72]) by kanga.kvack.org (Postfix) with ESMTP id D10F66B0261 for ; Mon, 4 Dec 2017 11:51:51 -0500 (EST) Received: by mail-wm0-f72.google.com with SMTP id n13so4529882wmc.3 for ; Mon, 04 Dec 2017 08:51:51 -0800 (PST) Received: from Galois.linutronix.de (Galois.linutronix.de. [2a01:7a0:2:106d:700::1]) by mx.google.com with ESMTPS id j17si10583827wrb.367.2017.12.04.08.51.50 for (version=TLS1_2 cipher=AES128-SHA bits=128/128); Mon, 04 Dec 2017 08:51:50 -0800 (PST) Message-Id: <20171204150606.828111617@linutronix.de> Date: Mon, 04 Dec 2017 15:07:30 +0100 From: Thomas Gleixner Subject: [patch 24/60] x86/paravirt: Dont patch flush_tlb_single References: <20171204140706.296109558@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Disposition: inline; filename=x86-paravirt--Dont_patch_flush_tlb_single.patch Sender: owner-linux-mm@kvack.org List-ID: To: LKML Cc: x86@kernel.org, Linus Torvalds , Andy Lutomirsky , Peter Zijlstra , Dave Hansen , Borislav Petkov , Greg KH , keescook@google.com, hughd@google.com, Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Rik van Riel , Boris Ostrovsky , Juergen Gross , David Laight , Eduardo Valentin , aliguori@amazon.com, Will Deacon , daniel.gruss@iaik.tugraz.at, Dave Hansen , michael.schwarz@iaik.tugraz.at, linux-mm@kvack.org, Borislav Petkov , moritz.lipp@iaik.tugraz.at, richard.fellner@student.tugraz.at From: Thomas Gleixner native_flush_tlb_single() will be changed with the upcoming KERNEL_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 Acked-by: Peter Zijlstra Reviewed-by: Josh Poimboeuf Cc: Juergen Gross Cc: Rik van Riel Cc: Dave Hansen Cc: Denys Vlasenko Cc: Andy Lutomirski Cc: michael.schwarz@iaik.tugraz.at Cc: Brian Gerst Cc: hughd@google.com Cc: daniel.gruss@iaik.tugraz.at Cc: linux-mm@kvack.org Cc: Borislav Petkov Cc: moritz.lipp@iaik.tugraz.at Cc: keescook@google.com Cc: Boris Ostrovsky Cc: Linus Torvalds Cc: richard.fellner@student.tugraz.at --- arch/x86/kernel/paravirt_patch_64.c | 2 -- 1 file changed, 2 deletions(-) --- a/arch/x86/kernel/paravirt_patch_64.c +++ b/arch/x86/kernel/paravirt_patch_64.c @@ -10,7 +10,6 @@ DEF_NATIVE(pv_irq_ops, save_fl, "pushfq; 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, wbinvd, "wbinvd"); DEF_NATIVE(pv_cpu_ops, usergs_sysret64, "swapgs; sysretq"); @@ -60,7 +59,6 @@ unsigned native_patch(u8 type, u16 clobb PATCH_SITE(pv_mmu_ops, read_cr2); PATCH_SITE(pv_mmu_ops, read_cr3); PATCH_SITE(pv_mmu_ops, write_cr3); - PATCH_SITE(pv_mmu_ops, flush_tlb_single); PATCH_SITE(pv_cpu_ops, wbinvd); #if defined(CONFIG_PARAVIRT_SPINLOCKS) case PARAVIRT_PATCH(pv_lock_ops.queued_spin_unlock): -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: email@kvack.org