Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp2775imm; Tue, 5 Jun 2018 13:58:47 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLCNhEoEEp3Q5GYysWL6zGwCRAjkZCaytlh44iWOp81BnoaIZISiTd/7gqm144/hXzFzmRo X-Received: by 2002:a63:b307:: with SMTP id i7-v6mr164198pgf.448.1528232327799; Tue, 05 Jun 2018 13:58:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528232327; cv=none; d=google.com; s=arc-20160816; b=NAjrMWz8ZcEOdrONdxoDLd+NJqXGzg4vkXp+c23AwrkGelGp5rLOp1jmxTA5GDv0XM ambqZqiLK9SpbwgsbK97bbOJpOZNvmzIcUbWA8qoFYzBd4Lr+e6JKkyhW41kIkEIIEjc HTmmjmkcQLIEquRASIveAU7jXjHTE8ywUL0498p/HmhS36aMVao+UydpOxDHm4a7Xukf /RK01xN6EUqLT3D0TJeFnTFurIfL7EaYP7CUbb1sKDyALVsZ18V7RX4nIeQ9pIrjbXQ6 2zwMerq9sEK3t04BaUtuaX21TKXR3Ft5xAq2/QeMJGJDFVvjtt3YuEWqnJFDfM/haZAN WQWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature:arc-authentication-results; bh=R+dvWKk5wJj2yOvhK8NY6kwy1j4uzSZb8fFqFAtmtsA=; b=ph4P2/qbTfzPdVz79UljLwvkFYjwVQ+O4DXiDQAeCpdvem+c8geNGFursLE9vSPqpe dT8KqNT4EjvUe2Ejo5mD09/HVUmpwyFE3+Sy/05lzOwSj+O/fQht4hq03ytInmRmoTXZ unMPjRwjdjy4NvFXBId8svC3h4yV48gA0nIgLGk/HPrT8HGF8F5RsancLjl7sPuAAJVb iTpABXlNmwavCrTYCJwYmj0NdUpfQjqyhxOTOAtMqgogDkgnaaQ+n/j+/zZqt9zzIC3V 2FJQt6wgy7e8F1RfGIC+1z1FGQPzfpwzkIJ5gKYGbA/pwXB+A1QWUmCseItUwdGb7HXI 2F9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Zn7kokS3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s26-v6si13108230pgo.298.2018.06.05.13.58.33; Tue, 05 Jun 2018 13:58:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2017-10-26 header.b=Zn7kokS3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752435AbeFEU4S (ORCPT + 99 others); Tue, 5 Jun 2018 16:56:18 -0400 Received: from userp2130.oracle.com ([156.151.31.86]:55212 "EHLO userp2130.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751871AbeFEU4R (ORCPT ); Tue, 5 Jun 2018 16:56:17 -0400 Received: from pps.filterd (userp2130.oracle.com [127.0.0.1]) by userp2130.oracle.com (8.16.0.22/8.16.0.22) with SMTP id w55KpxQF016053; Tue, 5 Jun 2018 20:56:02 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=corp-2017-10-26; bh=R+dvWKk5wJj2yOvhK8NY6kwy1j4uzSZb8fFqFAtmtsA=; b=Zn7kokS3jrwRUYePTsPXNOKJLd4mechqXh4Di7nKuYHyMD77ZBWORrCdv31c3w2GA1Q6 ZCnxGQAUU+7eyKhqvrTnIdI7JQ/rDv4R8FxIJM6c/J5kjxQYhqGuwuO/md/EaBWXuHFK nbZrljtOKYmYQoYVTm/jNHJFD2soD4q3U6ubQW60jVQS/AI4yDBQELewOc+n5KBSpBVR Zz0+hEeZ1Am3EIt4fsOM4ccjX0dI19x8nQaKV8nLyt3DcKDWAReN7yv/L04ya8MqllCY EgeVMIPD8PEC0WaXKrSca2VsOyRM2DUdHwaNv6hBHiDQXLB9nHrrYofvRsgQYECPY5zd 0A== Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp2130.oracle.com with ESMTP id 2jbvypa2he-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 05 Jun 2018 20:56:02 +0000 Received: from userv0122.oracle.com (userv0122.oracle.com [156.151.31.75]) by userv0022.oracle.com (8.14.4/8.14.4) with ESMTP id w55Ku2b7028159 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 5 Jun 2018 20:56:02 GMT Received: from abhmp0004.oracle.com (abhmp0004.oracle.com [141.146.116.10]) by userv0122.oracle.com (8.14.4/8.14.4) with ESMTP id w55Ku17A029184; Tue, 5 Jun 2018 20:56:01 GMT Received: from char.us.oracle.com (/10.137.176.158) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 05 Jun 2018 13:56:01 -0700 Received: by char.us.oracle.com (Postfix, from userid 1000) id 46EB16A00D6; Tue, 5 Jun 2018 16:56:00 -0400 (EDT) Date: Tue, 5 Jun 2018 16:56:00 -0400 From: Konrad Rzeszutek Wilk To: Tom Lendacky Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, x86@kernel.org, tglx@linutronix.de, andrew.cooper3@citrix.com Subject: Re: [PATCH v1] AMD SSB bits. Message-ID: <20180605205600.GR5867@char.us.oracle.com> References: <20180601145921.9500-1-konrad.wilk@oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.8.3 (2017-05-23) X-Proofpoint-Virus-Version: vendor=nai engine=5900 definitions=8915 signatures=668702 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 mlxscore=0 mlxlogscore=819 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1805220000 definitions=main-1806050232 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 05, 2018 at 08:23:13AM -0500, Tom Lendacky wrote: > On 6/1/2018 9:59 AM, Konrad Rzeszutek Wilk wrote: > > Hi, > > > > I was reading the AMD whitepaper on SSBD and noticed that they have added > > two new bits in the 8000_0008 CPUID. EBX: > > 1) Bit[26] - similar to Intel's SSB_NO not needed anymore. > > 2) Bit[24] - use SPEC_CTRL MSR (0x48) instead of VIRT SPEC_CTRL MSR > > (0xC001_011f). > > > > See 124441_AMD64_SpeculativeStoreBypassDisable_Whitepaper_final.pdf > > (A copy of this document is available at > > https://bugzilla.kernel.org/show_bug.cgi?id=199889) > > > > Being that I don't have the hardware (not even sure if AMD has developed it yet) > > I ended up cobbling up a DEBUG patch, the last one - which is well, debug > > (see below). > > So I'm not sure what is debug and what isn't, so I'm just commenting as if > they weren't debug. If this patch is just for debug, then you can > probably ignore. It is just for debugging.