Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp2946227ybz; Sun, 19 Apr 2020 13:39:04 -0700 (PDT) X-Google-Smtp-Source: APiQypIlmE7yrxJ/9ZnIAfZ0vGzrDEiZGxiEcDDg6DxDHyrkOL7+fstc5I/vLbPXwVohq6VYY28U X-Received: by 2002:a50:c112:: with SMTP id l18mr12164977edf.37.1587328744346; Sun, 19 Apr 2020 13:39:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587328744; cv=none; d=google.com; s=arc-20160816; b=0/EuJSwyFVT/7adBWKU/YhzPlPPAm+1o6Ej/D8M5gak8ygrohPUQpwuHecmWxDWYCK FIPwzgrN8fIdMVhXQQ6aizFhy6wMK5kvJoTAk2QkE0JI+XWQAeVe+3sIdCWSdnbpYBQl Z5YUC6Msf0xk2aWxAc8mgQ07zE0I0K5OmjnWzDPx+NGmdo4vlDv2wGRo5ouGOH/62svc 5xYUeImnGRV7tZ1xThzAHd8TjqRwIqnGJ5+ZnIvQz+Ckshw+/3IKwVC/BQmIbdQHdDwA 5qGoRiKjhExKkRfhKHP7Yjb8WkTLLxKd2XsR7T1aGf2bAYryPA4nw4uAyt7bxJ7ZXRXv MxJQ== 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:subject:cc:to :from:date:user-agent:message-id; bh=5DX6X5Qno4b2coVsXUTDCE/3ldwI7rI+fcH2CBHzFKQ=; b=pQveQNAvHu/prmK3z6tcu3oo1DdobGp2qTkt8gmbeh9mBiAno3Wzm0ZSDbCQ84XYq0 F6Ao6UdwAMpk+tREVh3Pl0J5Nw9ASQhW2fGhbPOJSFyTVvQeh6zYs+xE/KnIZsD063VO 9hCUWCr4lfZ0n+ITlumiO/pQuCoaf0WZdnkGnUqT8R/PGzqHuChm7+fwXp4lgThwGcUO c4OrVX6HQWH3rcaO60SDKecDKXfpt/U+1RSoCsvAlZBCaQmIYNppr62MMFzZMAtORTl2 t6FN2cLhRN3rjhZrzJsQKbS7QjWRKM8ksWUCgiBeBvAfGqcS2hERm3w3hKykDukAqpVg 9NWQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n23si2299805edt.420.2020.04.19.13.38.41; Sun, 19 Apr 2020 13:39:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726081AbgDSUgN (ORCPT + 99 others); Sun, 19 Apr 2020 16:36:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53596 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725960AbgDSUgN (ORCPT ); Sun, 19 Apr 2020 16:36:13 -0400 Received: from Galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C53D2C061A0C for ; Sun, 19 Apr 2020 13:36:12 -0700 (PDT) Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1jQGfa-0007IU-1J; Sun, 19 Apr 2020 22:36:02 +0200 Received: from nanos.tec.linutronix.de (localhost [IPv6:::1]) by nanos.tec.linutronix.de (Postfix) with ESMTP id BC673FFBA2; Sun, 19 Apr 2020 22:36:00 +0200 (CEST) Message-Id: <20200419203137.214111265@linutronix.de> User-Agent: quilt/0.65 Date: Sun, 19 Apr 2020 22:31:37 +0200 From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Kees Cook , Paolo Bonzini , Thomas Lendacky , Juergen Gross , Boris Ostrovsky Subject: [patch 00/15] x86/tlb: Unexport per-CPU tlbstate Content-transfer-encoding: 8-bit X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The per-CPU tlbstate contains sensitive information which should be really only accessible in core code. It is exported to modules because some inline functions which are required by KVM need access to it. The following series creates regular exported functions for the few things which are needed by KVM and hides the struct definition and some low level helpers from modules. The series is also available from git: git://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel x86/tlb Thanks, tglx 8<----------------- arch/x86/events/core.c | 11 arch/x86/include/asm/mmu_context.h | 88 ------- arch/x86/include/asm/paravirt.h | 12 arch/x86/include/asm/pgtable_32.h | 2 arch/x86/include/asm/tlbflush.h | 454 ++++--------------------------------- arch/x86/kernel/alternative.c | 55 ++++ arch/x86/kernel/cpu/common.c | 25 +- arch/x86/kernel/cpu/mtrr/generic.c | 4 arch/x86/kernel/paravirt.c | 21 - arch/x86/kernel/process.c | 11 arch/x86/mm/init.c | 14 + arch/x86/mm/init_64.c | 2 arch/x86/mm/ioremap.c | 2 arch/x86/mm/kmmio.c | 2 arch/x86/mm/mem_encrypt.c | 2 arch/x86/mm/pat/set_memory.c | 2 arch/x86/mm/pgtable.c | 8 arch/x86/mm/pgtable_32.c | 2 arch/x86/mm/tlb.c | 367 +++++++++++++++++++++++++++++ arch/x86/platform/uv/tlb_uv.c | 2 drivers/xen/privcmd.c | 1 21 files changed, 556 insertions(+), 531 deletions(-)