From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail.linutronix.de (146.0.238.70:993) by crypto-ml.lab.linutronix.de with IMAP4-SSL for ; 16 Jul 2018 14:36:49 -0000 Received: from userp2120.oracle.com ([156.151.31.85]) by Galois.linutronix.de with esmtps (TLS1.2:RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1ff4cK-00072h-3q for speck@linutronix.de; Mon, 16 Jul 2018 16:36:48 +0200 Received: from pps.filterd (userp2120.oracle.com [127.0.0.1]) by userp2120.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w6GEXx8k013025 for ; Mon, 16 Jul 2018 14:36:41 GMT Received: from userv0021.oracle.com (userv0021.oracle.com [156.151.31.71]) by userp2120.oracle.com with ESMTP id 2k7a3jmqjm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 16 Jul 2018 14:36:41 +0000 Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0021.oracle.com (8.14.4/8.14.4) with ESMTP id w6GEaeVt013940 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK) for ; Mon, 16 Jul 2018 14:36:41 GMT Received: from abhmp0016.oracle.com (abhmp0016.oracle.com [141.146.116.22]) by aserv0121.oracle.com (8.14.4/8.13.8) with ESMTP id w6GEae5t013714 for ; Mon, 16 Jul 2018 14:36:40 GMT Date: Mon, 16 Jul 2018 10:36:39 -0400 From: Konrad Rzeszutek Wilk Subject: [MODERATED] Re: [PATCH] L1TF KVM ARCH_CAPABILITIES #1 Message-ID: <20180716143639.GA24786@char.US.ORACLE.com> References: <20180715135716.1874-1-pbonzini@redhat.com> <20180715135716.1874-2-pbonzini@redhat.com> MIME-Version: 1.0 In-Reply-To: <20180715135716.1874-2-pbonzini@redhat.com> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit To: speck@linutronix.de List-ID: On Sun, Jul 15, 2018 at 03:57:13PM +0200, speck for Paolo Bonzini wrote: > From: Paolo Bonzini > Subject: [PATCH 1/4] KVM: test L1TF EPT bug separately from X86_BUG_L1TF > > If bit 3 of ARCH_CAPABILITIES is set, the L1TF bug is present but the hypervisor > does not need to flush the L1D cache on vmentry. To prepare for that, use > l1tf_vmx_mitigation to test for the EPT variant of the bug in KVM. > boot_cpu_has(X86_BUG_L1TF) is only used for the non-hypervisor case. > > Signed-off-by: Paolo Bonzini > --- > arch/x86/include/asm/vmx.h | 1 + > arch/x86/kernel/cpu/bugs.c | 18 ++++++++++++------ > arch/x86/kvm/vmx.c | 33 +++++++++++++++++++++++---------- > 3 files changed, 36 insertions(+), 16 deletions(-) patching file arch/x86/include/asm/vmx.h patching file arch/x86/kernel/cpu/bugs.c Hunk #1 succeeded at 678 (offset 6 lines). Hunk #2 FAILED at 743. 1 out of 2 hunks FAILED -- saving rejects to file arch/x86/kernel/cpu/bugs.c.rej patching file arch/x86/kvm/vmx.c [konrad@char linux]$ Which seems to be related to the whitespace in l1tf_vmx_states?