Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp5092549iog; Wed, 22 Jun 2022 11:47:38 -0700 (PDT) X-Google-Smtp-Source: AGRyM1s2Z0cCda7MH6+Fkvvs7tO2ZIEN1/vsub53rVcAz0SPgwHiJlqdQOWp9ZjHMkJ4Q9QX79DC X-Received: by 2002:a63:b91b:0:b0:40c:e842:b737 with SMTP id z27-20020a63b91b000000b0040ce842b737mr3948762pge.221.1655923658350; Wed, 22 Jun 2022 11:47:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655923658; cv=none; d=google.com; s=arc-20160816; b=cyNP72URL0tkPPCQXInRtMyXafY2Ztql8POXB/jMwwN6BduTZruDvrNJKuWW6H+AnX P1B2eT2EJxnRQCQ/eBAWtQLgRXkqO7h3ZxOac5ixHRFd6bm7yJKbXCGgR0kYn1P9J9wq k1+6ch7YmpPROCx2cM6p0dnZB5GhLXOEHPc4vUUPRQnKqlUnESvMz0XO78tvvreBJuP6 Ray5tCA1U66psXwW4DYVsjm/OXuhcD26W7rAmOvkdHTdWK/4TeRl5xG3Te0cvmKH5fq6 s6+o/ahA0qqyGpbMgE/REnEXIgbcR4XK6yMbHpMIHwLrfhlskt0CgBdGce0cyeyOn2/N BuEA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:dkim-signature; bh=BRzTC2ut2r56R1WtccznIDmkHwKaDpfAh5dNdlDBT60=; b=jNIIPLj+lX+CBRA8si11dWgpnbDqb9e4t7azc6ls9zBL5lYiSmeJoRM1AFisLIl0Hi tgNfA7NG+8ocxkQrXopfFt/9wNFJjRe/IRpGRVlBEO65LOLfshsAi2OzRcH1/9gxvwO8 cKovzXwCFTwMfJWFKJ5lfK0Uow5gYsYTFEjLKwqrk5z1lyZuuSzSwuUYNDb2SOXd8qF9 P7DxgSyJPPDtvf0nSj8ptEPWLzTeXZZpPG+l+zEKNmI9GlzkFZocysWX50o0dR04lSld kizglG+1wfAV65AsfyJnbl3KfWD7ETzA4+iJMyhN/tlySxiDKdEa9kr+lcjavYdvZQay 33Vg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jfuI3Z2U; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id p10-20020a170902e74a00b0015e05374e86si26774941plf.443.2022.06.22.11.47.24; Wed, 22 Jun 2022 11:47:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=jfuI3Z2U; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230273AbiFVSaR (ORCPT + 99 others); Wed, 22 Jun 2022 14:30:17 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53104 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229485AbiFVSaQ (ORCPT ); Wed, 22 Jun 2022 14:30:16 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 578A930576; Wed, 22 Jun 2022 11:30:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1655922614; x=1687458614; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=BRzTC2ut2r56R1WtccznIDmkHwKaDpfAh5dNdlDBT60=; b=jfuI3Z2USxqvHsqokQgXnZqquri8S5wGOXpEscLhErPSdNcSWYxi+heV qwn7EVG7oXV+TjyPL+NdEglPA8+78Yy1lGDXUpMiorIkLD2joebXydIQ/ GI9eTTgw8rDAmHRA4TB4IEO5OHJR5kiz7RxSwQsPl1QCH6YNzoKLmmpAU iTq4Lvo5G6UYBpIk/yUVz+IG0GfqPXzDMi/WXcAfEvNvJuOj0AMkR+qo9 E5D+wZOAuH11vVI3QHpIQRZHAitSO6H72RxsS6fTAlfpomA3GNKAZ6Mz9 x4dYT8TQtp/hyBspt3RF+71FuKP8JAcIo7MJKSTrqR4q2qvq0H8oxVphK g==; X-IronPort-AV: E=McAfee;i="6400,9594,10386"; a="278055245" X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="278055245" Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 11:18:10 -0700 X-IronPort-AV: E=Sophos;i="5.92,212,1650956400"; d="scan'208";a="677681186" Received: from bshakya-mobl.amr.corp.intel.com (HELO [10.212.188.76]) ([10.212.188.76]) by fmsmga003-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 22 Jun 2022 11:18:08 -0700 Message-ID: <681e4e45-eff1-600c-9b81-1fa9bdf24232@intel.com> Date: Wed, 22 Jun 2022 11:17:49 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.9.1 Subject: Re: [PATCH Part2 v6 05/49] x86/sev: Add RMP entry lookup helpers Content-Language: en-US To: "Kalra, Ashish" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "linux-coco@lists.linux.dev" , "linux-mm@kvack.org" , "linux-crypto@vger.kernel.org" Cc: "tglx@linutronix.de" , "mingo@redhat.com" , "jroedel@suse.de" , "Lendacky, Thomas" , "hpa@zytor.com" , "ardb@kernel.org" , "pbonzini@redhat.com" , "seanjc@google.com" , "vkuznets@redhat.com" , "jmattson@google.com" , "luto@kernel.org" , "dave.hansen@linux.intel.com" , "slp@redhat.com" , "pgonda@google.com" , "peterz@infradead.org" , "srinivas.pandruvada@linux.intel.com" , "rientjes@google.com" , "dovmurik@linux.ibm.com" , "tobin@ibm.com" , "bp@alien8.de" , "Roth, Michael" , "vbabka@suse.cz" , "kirill@shutemov.name" , "ak@linux.intel.com" , "tony.luck@intel.com" , "marcorr@google.com" , "sathyanarayanan.kuppuswamy@linux.intel.com" , "alpergun@google.com" , "dgilbert@redhat.com" , "jarkko@kernel.org" References: <8f63961f00fd170ba0e561f499292175f3155d26.1655761627.git.ashish.kalra@amd.com> <25be3068-be13-a451-86d4-ff4cc12ddb23@intel.com> From: Dave Hansen In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A, RCVD_IN_DNSWL_HI,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org On 6/22/22 11:15, Kalra, Ashish wrote: > So actually this RPM entry definition is platform dependent and will > need to be changed for different AMD processors and that change has > to be handled correspondingly in the dump_rmpentry() code. So, if the RMP entry format changes in future processors, how do we make sure that the kernel does not try to use *this* code on those processors?