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 ; 24 Oct 2019 13:31:05 -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 1iNdCh-0006zh-S9 for speck@linutronix.de; Thu, 24 Oct 2019 15:31:04 +0200 Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 3C717BB61 for ; Thu, 24 Oct 2019 13:30:57 +0000 (UTC) Message-Id: From: Borislav Petkov Date: Thu, 24 Oct 2019 10:20:27 +0200 MIME-Version: 1.0 Subject: [MODERATED] [PATCH 0/9] TAA 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 Hi, 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. Thx. 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 | 256 ++++++++++++++++++ .../admin-guide/kernel-parameters.txt | 52 ++++ 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 | 133 +++++++++ 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 | 134 +++++++++ arch/x86/kvm/x86.c | 19 ++ drivers/base/cpu.c | 9 + include/linux/cpu.h | 3 + 20 files changed, 842 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