From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (193.142.43.55:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 27 Oct 2019 09:42:24 -0000 Received: from mx2.suse.de ([195.135.220.15] helo=mx1.suse.de) by Galois.linutronix.de with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1iOf42-0004Na-DP for speck@linutronix.de; Sun, 27 Oct 2019 10:42:23 +0100 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 794C6ACA4 for ; Sun, 27 Oct 2019 09:42:15 +0000 (UTC) Message-Id: From: Borislav Petkov Date: Sun, 27 Oct 2019 10:35:37 +0100 MIME-Version: 1.0 Subject: [MODERATED] [PATCH 0/9] TAA v2 0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: From: Borislav Petkov Subject: [PATCH 0/9] TAA v2 Hi, lemme send the pile out one more time before I leave for OSS EU in Lyon. Patch 6 is still there until Paolo and Tony have figured out what should happen with guests. changelog: ========== v1: here's the pile I've picked up. I've incorporated as much of the feedback as possible, scream loudly if something's missing. First testing looks good. We'll cast them in stone in the coming days because distros and stable have to start backporting soon. All fixes will go ontop, as in previous occasions. Michal Hocko (1): x86/tsx: Add config options to set tsx=on|off|auto Pawan Gupta (8): x86/msr: Add the IA32_TSX_CTRL MSR x86/cpu: Add a helper function x86_read_arch_cap_msr() x86/cpu: Add a "tsx=" cmdline option with TSX disabled by default x86/speculation/taa: Add mitigation for TSX Async Abort x86/speculation/taa: Add sysfs reporting for TSX Async Abort kvm/x86: Export MDS_NO=0 to guests when TSX is enabled x86/tsx: Add "auto" option to the tsx= cmdline parameter x86/speculation/taa: Add documentation for TSX Async Abort .../ABI/testing/sysfs-devices-system-cpu | 1 + Documentation/admin-guide/hw-vuln/index.rst | 1 + .../admin-guide/hw-vuln/tsx_async_abort.rst | 276 ++++++++++++++++++ .../admin-guide/kernel-parameters.txt | 67 +++++ Documentation/x86/index.rst | 1 + Documentation/x86/tsx_async_abort.rst | 117 ++++++++ arch/x86/Kconfig | 45 +++ arch/x86/include/asm/cpufeatures.h | 1 + arch/x86/include/asm/msr-index.h | 9 + arch/x86/include/asm/nospec-branch.h | 4 +- arch/x86/include/asm/processor.h | 7 + arch/x86/kernel/cpu/Makefile | 2 +- arch/x86/kernel/cpu/bugs.c | 131 +++++++++ arch/x86/kernel/cpu/common.c | 32 +- arch/x86/kernel/cpu/cpu.h | 18 ++ arch/x86/kernel/cpu/intel.c | 5 + arch/x86/kernel/cpu/tsx.c | 140 +++++++++ arch/x86/kvm/x86.c | 19 ++ drivers/base/cpu.c | 9 + include/linux/cpu.h | 3 + 20 files changed, 881 insertions(+), 7 deletions(-) create mode 100644 Documentation/admin-guide/hw-vuln/tsx_async_abort.rst create mode 100644 Documentation/x86/tsx_async_abort.rst create mode 100644 arch/x86/kernel/cpu/tsx.c -- 2.21.0