Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 25 Jul 2018 14:31:11 -0000 Received: from mail-wm0-x234.google.com ([2a00:1450:400c:c09::234]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_128_CBC_SHA1:128) (Exim 4.80) (envelope-from ) id 1fiKon-0008J1-R2 for speck@linutronix.de; Wed, 25 Jul 2018 16:31:10 +0200 Received: by mail-wm0-x234.google.com with SMTP id y9-v6so5433974wma.5 for ; Wed, 25 Jul 2018 07:31:09 -0700 (PDT) Received: from donizetti.redhat.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id w8-v6sm13922118wrp.72.2018.07.25.07.31.01 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 25 Jul 2018 07:31:01 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Subject: [MODERATED] [PATCH v2 0/4] L1TF KVM ARCH_CAPABILITIES #0 Date: Wed, 25 Jul 2018 16:30:56 +0200 Message-Id: <20180725143100.16309-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 1 is already in Linus's tree. Paolo Bonzini (4): KVM: VMX: support MSR_IA32_ARCH_CAPABILITIES as a feature MSR x86: SMT doesn't matter for VMX L1TF if EPT disabled or mitigation disabled x86: use ARCH_CAPABILITIES to skip L1D flush on vmentry KVM: VMX: tell nested hypervisor to skip L1D flush on vmentry Documentation/admin-guide/l1tf.rst | 21 +++++++++++++++++++++ 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 | 8 +++++++- arch/x86/kvm/vmx.c | 13 +++++++++++-- arch/x86/kvm/x86.c | 18 +++++++++++++++++- 7 files changed, 59 insertions(+), 4 deletions(-) -- 2.17.1