Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 15 Jul 2018 13:57:27 -0000 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1fehWf-00047z-VC for speck@linutronix.de; Sun, 15 Jul 2018 15:57:26 +0200 Received: by mail-wr1-x42e.google.com with SMTP id e7-v6so9773381wrs.9 for ; Sun, 15 Jul 2018 06:57:25 -0700 (PDT) Received: from donizetti.redhat.com (dynamic-adsl-78-12-156-57.clienti.tiscali.it. [78.12.156.57]) by smtp.gmail.com with ESMTPSA id m10-v6sm29902662wrj.35.2018.07.15.06.57.17 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 15 Jul 2018 06:57:18 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Subject: [MODERATED] [PATCH] L1TF KVM ARCH_CAPABILITIES #0 Date: Sun, 15 Jul 2018 15:57:12 +0200 Message-Id: <20180715135716.1874-1-pbonzini@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 To: speck@linutronix.de List-ID: Support for ARCH_CAPABILITIES bit 3, which can already be used to disable the mitigations on a nested hypervisor. Patch 3 will shortly go to Linus's tree. Paolo Bonzini (4): KVM: test L1TF EPT bug separately from X86_BUG_L1TF x86: use ARCH_CAPABILITIES to skip L1D flush on vmentry KVM: VMX: support MSR_IA32_ARCH_CAPABILITIES as a feature MSR KVM: VMX: tell nested hypervisor to skip L1D flush on vmentry Documentation/admin-guide/l1tf.rst | 24 ++++++++++++++++++++++++ arch/x86/include/asm/kvm_host.h | 1 + arch/x86/include/asm/msr-index.h | 1 + arch/x86/include/asm/vmx.h | 1 + arch/x86/kernel/cpu/bugs.c | 26 ++++++++++++++++++++------ arch/x86/kvm/vmx.c | 35 ++++++++++++++++++++++++----------- arch/x86/kvm/x86.c | 17 ++++++++++++++++- 7 files changed, 87 insertions(+), 18 deletions(-) -- 1.8.3.1