Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1965526yba; Sat, 27 Apr 2019 10:59:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwK0rCRqy73Cw8cu49QLb0tMWWJYnQpClLFk0NLRXiMQwT3nXzx4wM2s1Uw2Bbg9p4pN+Ry X-Received: by 2002:a63:6e01:: with SMTP id j1mr50625733pgc.442.1556387940678; Sat, 27 Apr 2019 10:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556387940; cv=none; d=google.com; s=arc-20160816; b=PjZykOY/Yn6r8xzt68zdSWW/m9XaghcAwZOZi/KkoJtC47EAGC6RaUWHuH9kuiHo6S MMnOCeSmSAtyD08xlquAQM5+pNgBRvTODv5ex2vXX8jN3zwgISA+vSkp3/M0ElVXN6eH 2uAPahidE/lDOWLFQDljw1cmFS3ZssoU2yfRX+j7pORMjvACZNsSGZYYTcWMTTsYd0dG V/tLRrvJGr4TH7QHcWYO8c55UQqlHE08+H1yWqqkR9VgrRQ67j2g9SR+Kp1uUZAp7tt0 gVNGraOA/aeodFm1X5oar5EMMDgOs2/fvmTyhpgwO9CpSyvOq7YY7cnptU08XI27rYo0 Ft7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=IRMwCipQmbzQOz/VmePpUbaA6ieiTzkHm5Y+pjNgmk8=; b=oMkyrmYkrCUI7UZtZ5sxHuy2McRzRJ+c+W8JfFAWRK+gTTxblAzEMXs2lquwKlQSfL dnazvdNUvjn6B8FrF2+VdWW4dZ3Y6CS6xLqqLMjrk+oLH9fRBfCPcUR+jPlDewUOtHU+ LPhX6DqE9i8Q0n6oEkEL913iZ96BGDHDm37hgH9TeKENYkXWvEdPmD9yXLeDSRqPPLdk hdj+ko+ydLMIPywJRtw4ZpfSa1kc9H0EUXpKTmtXjPjOngzH07QzNjq59VFul5kVpczx LK2nQMjq1e/W583WngEXwgcqfslvFC2qs8Q7vSobvCcvedaO74r97GR8rIDOZgo9UVnq QMlg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=ATUPXvdS; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l1si29647803plb.423.2019.04.27.10.58.45; Sat, 27 Apr 2019 10:59:00 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=ATUPXvdS; 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=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726404AbfD0R4D (ORCPT + 99 others); Sat, 27 Apr 2019 13:56:03 -0400 Received: from casper.infradead.org ([85.118.1.10]:50212 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725942AbfD0R4C (ORCPT ); Sat, 27 Apr 2019 13:56:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Content-Transfer-Encoding:Content-Type: MIME-Version:References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date:Sender :Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=IRMwCipQmbzQOz/VmePpUbaA6ieiTzkHm5Y+pjNgmk8=; b=ATUPXvdS6LCIXS9ZXmU/MLMZEC qOtbQLiTXnUapZhQW8aET2bId6kD0ZZSWrMJX685glqFoXm0+1IoSYv8SuiiVYve3aqPST9BoL5/U 3+3FeeAG6uN8lsBLrcqQHdMu3LDjcbeo7mcXETVHmq1HxkcVRtcJsixIvZiUerXgj/XWEl2lKiRwA m0NmL3RaQXWcCdA83sz8O5pCtOwkK5GWpYHU0Ey6prMDLNY37fHcCu5sVuT6giAE66LhxaCkRS62l +U8qzMrl1HSkulayg4EK4OUsT9/92KB32+VZ6XI5xD+CfrKXekiN4/vHSStLWvKiDC5t7XuRy+Q+x F4+tgXfA==; Received: from 177.17.250.151.dynamic.adsl.gvt.net.br ([177.17.250.151] helo=coco.lan) by casper.infradead.org with esmtpsa (Exim 4.90_1 #2 (Red Hat Linux)) id 1hKRYL-00039c-Do; Sat, 27 Apr 2019 17:55:57 +0000 Date: Sat, 27 Apr 2019 14:55:52 -0300 From: Mauro Carvalho Chehab To: Changbin Du Cc: Jonathan Corbet , tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, x86@kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 14/27] Documentation: x86: convert amd-memory-encryption.txt to reST Message-ID: <20190427145552.013e6bc4@coco.lan> In-Reply-To: <20190426153150.21228-15-changbin.du@gmail.com> References: <20190426153150.21228-1-changbin.du@gmail.com> <20190426153150.21228-15-changbin.du@gmail.com> X-Mailer: Claws Mail 3.17.3 (GTK+ 2.24.32; x86_64-redhat-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Fri, 26 Apr 2019 23:31:37 +0800 Changbin Du escreveu: > This converts the plain text documentation to reStructuredText format and > add it to Sphinx TOC tree. No essential content change. > > Signed-off-by: Changbin Du Reviewed-by: Mauro Carvalho Chehab > --- > ...ory-encryption.txt => amd-memory-encryption.rst} | 13 ++++++++++--- > Documentation/x86/index.rst | 1 + > 2 files changed, 11 insertions(+), 3 deletions(-) > rename Documentation/x86/{amd-memory-encryption.txt => amd-memory-encryption.rst} (94%) > > diff --git a/Documentation/x86/amd-memory-encryption.txt b/Documentation/x86/amd-memory-encryption.rst > similarity index 94% > rename from Documentation/x86/amd-memory-encryption.txt > rename to Documentation/x86/amd-memory-encryption.rst > index afc41f544dab..c48d452d0718 100644 > --- a/Documentation/x86/amd-memory-encryption.txt > +++ b/Documentation/x86/amd-memory-encryption.rst > @@ -1,3 +1,9 @@ > +.. SPDX-License-Identifier: GPL-2.0 > + > +===================== > +AMD Memory Encryption > +===================== > + > Secure Memory Encryption (SME) and Secure Encrypted Virtualization (SEV) are > features found on AMD processors. > > @@ -34,7 +40,7 @@ is operating in 64-bit or 32-bit PAE mode, in all other modes the SEV hardware > forces the memory encryption bit to 1. > > Support for SME and SEV can be determined through the CPUID instruction. The > -CPUID function 0x8000001f reports information related to SME: > +CPUID function 0x8000001f reports information related to SME:: > > 0x8000001f[eax]: > Bit[0] indicates support for SME > @@ -48,14 +54,14 @@ CPUID function 0x8000001f reports information related to SME: > addresses) > > If support for SME is present, MSR 0xc00100010 (MSR_K8_SYSCFG) can be used to > -determine if SME is enabled and/or to enable memory encryption: > +determine if SME is enabled and/or to enable memory encryption:: > > 0xc0010010: > Bit[23] 0 = memory encryption features are disabled > 1 = memory encryption features are enabled > > If SEV is supported, MSR 0xc0010131 (MSR_AMD64_SEV) can be used to determine if > -SEV is active: > +SEV is active:: > > 0xc0010131: > Bit[0] 0 = memory encryption is not active > @@ -68,6 +74,7 @@ requirements for the system. If this bit is not set upon Linux startup then > Linux itself will not set it and memory encryption will not be possible. > > The state of SME in the Linux kernel can be documented as follows: > + > - Supported: > The CPU supports SME (determined through CPUID instruction). > > diff --git a/Documentation/x86/index.rst b/Documentation/x86/index.rst > index 20091d3e5d97..a0426ab156bd 100644 > --- a/Documentation/x86/index.rst > +++ b/Documentation/x86/index.rst > @@ -20,3 +20,4 @@ Linux x86 Support > pat > protection-keys > intel_mpx > + amd-memory-encryption Thanks, Mauro