From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 6E260CCA47F for ; Mon, 6 Jun 2022 11:42:15 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235556AbiFFLmN (ORCPT ); Mon, 6 Jun 2022 07:42:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45654 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235546AbiFFLmM (ORCPT ); Mon, 6 Jun 2022 07:42:12 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C9BDF38A3 for ; Mon, 6 Jun 2022 04:42:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1654515727; 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: in-reply-to:in-reply-to:references:references; bh=LbU0lHc+WuTsfhjoR9o0hk34WGqlmY1f4clG2HCMCgk=; b=GdNj97MlOG2A67jgibe+4hsKpOAHqDLNtwlv8f89XTvUMy7FELty6m42+Ym7NlPNYk1ftF wZuBPyISMIV7xl14tsoTbmeyiLX7MyZreko95BOwtqUJ9veUCFzfUNtNo4VWYfgsaCy1HK VwVPU0PiZkKgCAeginH8Y0s/lYp8hcg= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-488-n2w0ceJVOZWIKlQAZtKGOQ-1; Mon, 06 Jun 2022 07:42:06 -0400 X-MC-Unique: n2w0ceJVOZWIKlQAZtKGOQ-1 Received: by mail-wm1-f72.google.com with SMTP id u12-20020a05600c19cc00b0038ec265155fso11119219wmq.6 for ; Mon, 06 Jun 2022 04:42:06 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=LbU0lHc+WuTsfhjoR9o0hk34WGqlmY1f4clG2HCMCgk=; b=f7vCi4HDV2DhzNh6VLj7Rd1E94/SLz7JRZJftlktged6m7QPcOreYfHzNIhEcr3KU/ wX6idREy6WOUZx4nvjTBPkjcq/XCEUHCZzNdiSb/pObB7CTI0cEOodOkSRrg15Nujm38 6qiCRXVYqFnn640Ck5pqnO+QuhWptuo2UV6p0vgxwbiG+bmsaKg/6opsvksMDNkk20Jy 9LG1a/Ro8EsoyuhQigQLX3y2XkcpMz0tQlYjOG3ObrAucplOk0Gt8QXBh4QFK0fG685e YViETWXX2IPJgIGNqE+pQiGEuuOqq7SciblQSheHxWD8pI0/A4bohSC86NPMNaTaQAkH nAWA== X-Gm-Message-State: AOAM533OWTAeKAfT27pr6Qi+4OjQcXAexP2iORqI96WSILm0zD3Qp7Qb dgfyuTYE/z9hbeEUA8TiOLSBxqPlKqlPKtTS31a2IqJ6SgMlz2rqMkrYkcUfoSH75+pRTOJZbxu JX+//BBo/YjuRxDeeX5NGp9F8 X-Received: by 2002:adf:f385:0:b0:213:bb0e:383a with SMTP id m5-20020adff385000000b00213bb0e383amr16114872wro.481.1654515725413; Mon, 06 Jun 2022 04:42:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEvzYVC9++mJVt13KuXQ5MBP3pxhBSkYiVChyG6utGpOcobdad2X2l/uq7b7FRSa2su3OnkA== X-Received: by 2002:adf:f385:0:b0:213:bb0e:383a with SMTP id m5-20020adff385000000b00213bb0e383amr16114820wro.481.1654515725160; Mon, 06 Jun 2022 04:42:05 -0700 (PDT) Received: from work-vm (cpc109025-salf6-2-0-cust480.10-2.cable.virginm.net. [82.30.61.225]) by smtp.gmail.com with ESMTPSA id h5-20020a5d5045000000b0020d07d90b71sm14848968wrt.66.2022.06.06.04.42.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 06 Jun 2022 04:42:04 -0700 (PDT) Date: Mon, 6 Jun 2022 12:42:01 +0100 From: "Dr. David Alan Gilbert" To: Jarkko Sakkinen Cc: x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-efi@vger.kernel.org, platform-driver-x86@vger.kernel.org, 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 , Borislav Petkov , Michael Roth , Vlastimil Babka , tony.luck@intel.com, npmccallum@redhat.com, brijesh.ksingh@gmail.com Subject: Re: [PATCH Part2 RFC v4 04/40] x86/sev: Add the host SEV-SNP initialization support Message-ID: References: <20210707183616.5620-1-brijesh.singh@amd.com> <20210707183616.5620-5-brijesh.singh@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/2.2.1 (2022-02-19) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org * Jarkko Sakkinen (jarkko.sakkinen@iki.fi) wrote: > On Wed, Jul 07, 2021 at 01:35:40PM -0500, Brijesh Singh wrote: > > The memory integrity guarantees of SEV-SNP are enforced through a new > > structure called the Reverse Map Table (RMP). The RMP is a single data > > structure shared across the system that contains one entry for every 4K > > page of DRAM that may be used by SEV-SNP VMs. The goal of RMP is to > > track the owner of each page of memory. Pages of memory can be owned by > > the hypervisor, owned by a specific VM or owned by the AMD-SP. See APM2 > > section 15.36.3 for more detail on RMP. > > > > The RMP table is used to enforce access control to memory. The table itself > > is not directly writable by the software. New CPU instructions (RMPUPDATE, > > PVALIDATE, RMPADJUST) are used to manipulate the RMP entries. > > What's the point of throwing out a set of opcodes, if there's > no explanation what they do? TBF They are described in the public document section linked in the previous paragraph. Dave > BR, Jarkko > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK