Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1222875pxb; Fri, 1 Oct 2021 06:16:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzu2MM8H7SMrQkRoAC3RQQ9sqcgc+1jZRKzUlEEKaZ1ZbB7XkJ/deCu45rlbSeEB7f6Takr X-Received: by 2002:a63:595f:: with SMTP id j31mr9724737pgm.109.1633094175641; Fri, 01 Oct 2021 06:16:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633094175; cv=none; d=google.com; s=arc-20160816; b=kR2Azc6B9Pu9006RO5OjsgoXGjEFruubU9liFsCFJvd2T4j3IIjmbbNpYocXR98DpC CvqgKdFpnMY0lE+iBXe4miWSsbggJaODcCTNVnOHWcn2bypdciBJp97K6C+cM5V5P08x Ts+8+OTKlHRhnhCKBUWmfTGx6DYgyBIHkiTar7Hj4Ho1Z10Q3dnrgs+AN2OA0899fjfI leYaMPTCngkCDPxC4J0sDlzPT0nW0CYUj0HFweBB1P7OqtqqwSFDhjUGVldFwZTLa3jq 0lFdq87INNk2Is80lRAHmX6RMyCu8aiODAXAeZVmQAbAsn8DG640oHz7CeNUeb+kVNMI jkbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Pww6+dMpzZfasK3x5P00rVcRmv+YdyobAl7XmL8o1hQ=; b=gjLVrfm7U3ydivhXH0Mss+o+DMgkEBPKIRCJJtQZIXJZWiP9r+mlmZmRjEUO93Jp9E OmXN1YxJKKsAuyLhBK5yJJGlRfCf4dIpJgkQioSp5ZB7vOpdYdyj9tiDCg/ZFcPM2Ir+ p0F12aMKz9LtIh1zFFNEi/LONd5Dk4RLqZIoL2N/ZyerPEKb96P8V3jKxfey9ty0n+m9 yeeqBY6gwSRk1kkPjBe/p2oZXSoFohlTybuWeiPea+2jPzJuqd0ZkgpMjRqtzwMrTem6 yuwfAdG3PtShGyKGVMiVt3baGHnNmMf1Iyx/GEQFjF0XMmKHjaN+/hR9G9MeEsOrIJ5z HoxA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=UPoCccma; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id z21si8153512pgv.590.2021.10.01.06.15.53; Fri, 01 Oct 2021 06:16:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=UPoCccma; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1353831AbhJANEq (ORCPT + 99 others); Fri, 1 Oct 2021 09:04:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1353738AbhJANEp (ORCPT ); Fri, 1 Oct 2021 09:04:45 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D7691C061775; Fri, 1 Oct 2021 06:03:01 -0700 (PDT) Received: from zn.tnic (p200300ec2f0e8e00c9205f48360a92d6.dip0.t-ipconnect.de [IPv6:2003:ec:2f0e:8e00:c920:5f48:360a:92d6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 4DFB81EC05BF; Fri, 1 Oct 2021 15:03:00 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1633093380; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=Pww6+dMpzZfasK3x5P00rVcRmv+YdyobAl7XmL8o1hQ=; b=UPoCccmafl2kj4ZfjkRANSs2qzDvdnHfjG51lKFvLOwkF4ENeK9ENX3ewAMPoJY36xSu1g s+vucdZRWDPD9eq8FW57/jUSDnwGFsRUHn9t6CMr+f71s76rhviCESLb4QpZWHhAnhg015 UUFkcN2vhdLDHQriiIKjCj6JDq5eIQI= Date: Fri, 1 Oct 2021 15:03:01 +0200 From: Borislav Petkov To: Marc Orr Cc: Brijesh Singh , x86 , LKML , kvm list , linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Joerg Roedel , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Sean Christopherson , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Gonda , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , tony.luck@intel.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH Part2 v5 32/45] KVM: x86: Define RMP page fault error bits for #NPF Message-ID: References: <20210820155918.7518-1-brijesh.singh@amd.com> <20210820155918.7518-33-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On Thu, Sep 30, 2021 at 04:41:54PM -0700, Marc Orr wrote: > On Fri, Aug 20, 2021 at 9:00 AM Brijesh Singh wrote: > > > > When SEV-SNP is enabled globally, the hardware places restrictions on all > > memory accesses based on the RMP entry, whether the hypervisor or a VM, > > performs the accesses. When hardware encounters an RMP access violation > > during a guest access, it will cause a #VMEXIT(NPF). > > > > See APM2 section 16.36.10 for more details. > > nit: Section # should be 15.36.10 (rather than 16.36.10). Also, is it > better to put section headings, rather than numbers in the commit logs > and comments? Someone mentioned to me that the section numbering in > APM and SDM can move around over time, but the section titles tend to > be more stable. I'm not sure how true this is, so feel free to > disregard this comment. No, that comment is correct, please make it unambiguous so that if someone's looking later, someone can find the section even in future docs. (I'm hoping they don't change headings, that is...). -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette