Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp922743imi; Fri, 22 Jul 2022 12:39:00 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uyw4NzANm/8BY13ICtZLMLDbovS1FnA6duoryxoRYJIM5H9Y1bAcXMk9e32TGYGAB0H1w6 X-Received: by 2002:a9d:6051:0:b0:61c:cfcc:b302 with SMTP id v17-20020a9d6051000000b0061ccfccb302mr578861otj.254.1658518740096; Fri, 22 Jul 2022 12:39:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658518740; cv=none; d=google.com; s=arc-20160816; b=YiCCP9Adrd7TvwYdHez0CsN0apjo1y4ATkD2Ra5osfaUHWQLcVw03jFiMzgKpbtDj9 XYTEAFhlLveYYgD9lkZ8cd7fZwAZ6m9eRKKl9eQ8XCw8zvUYYQaPkdFgYzVmDtDGyqxd GyWvY710JwCvnm3YaYfHJYFhqT4B2UudNXZQP5HDF92JFlQm9P37xOggPivHSWj6eJUd s17QuXEJjTNO8uzOo/4Y4sHQ8/L94mFVWEzuATn6Qb6G4V/m6qqnqII4J5FR2Ozqf5Im arzo0A0e44bU30/iy8Xx3J6WjVx99NDQievqDia+1uQeZQF3O+kKywo7HNFN5whBMToI kBkg== 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=oqMlhQ+9AS8F60PcU1q78Rrrk17ahXV0byauFO5z1UU=; b=ZJqs7py4kgO5JV4+9qwDKJh7622RReWkGWBob3Jk6jAxH1LI0kAOK304Sxh7tl78AY 7SIZZgTUYtA3t+7oZkBUuX1XVv4cqMp8hsnyY5qXBNmV8qi0YHfCEb8Jt3UuiidRbmJE iMujlBNkxE+zYokGI+TWMDux+erjNtZjVcEzpi2vYwFTT3w4v+hkez8tYgworjFNux+6 fWTwC00UmOyQxy5Zj5MVrTcU7qKmmbwaecpvqcsAJacDgrCI6dENUbBC2+ygB/C/Gvn2 KUaQKQ4kamny6TkJwrdmMEdB2K30RLS4sGF/SjW1gKO7FRgaNPCXcx+cgk9IITjNdeRv RGzg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=pfCUktwv; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id e9-20020a056808148900b0033a6e672d4dsi5740442oiw.17.2022.07.22.12.38.39; Fri, 22 Jul 2022 12:39:00 -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=@alien8.de header.s=dkim header.b=pfCUktwv; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236467AbiGVTiP (ORCPT + 99 others); Fri, 22 Jul 2022 15:38:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39482 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229986AbiGVTiO (ORCPT ); Fri, 22 Jul 2022 15:38:14 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 26E9B52889; Fri, 22 Jul 2022 12:38:14 -0700 (PDT) Received: from zn.tnic (p200300ea97297665329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9729:7665:329c:23ff:fea6:a903]) (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 A74851EC0666; Fri, 22 Jul 2022 21:38:08 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1658518688; 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=oqMlhQ+9AS8F60PcU1q78Rrrk17ahXV0byauFO5z1UU=; b=pfCUktwvWkG8U+aXBptEc75Naz9avVy8tj8mgVyoRbOzAP4tbeOUfcsyB1cEHRJQiRYHNN OszJAzeSOi6AAD3WDUvaBlLpfBrkiXm9Br3wdsTCPfwl/qdjJMF6lwdg4DjjaBwlGllUqz 9n5XyBv4JtYXEaGzrdzUq78AGYDJkNM= Date: Fri, 22 Jul 2022 21:38:04 +0200 From: Borislav Petkov To: Sean Christopherson Cc: "Kalra, Ashish" , Dave Hansen , "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" , "tglx@linutronix.de" , "mingo@redhat.com" , "jroedel@suse.de" , "Lendacky, Thomas" , "hpa@zytor.com" , "ardb@kernel.org" , "pbonzini@redhat.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" , "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" Subject: Re: [PATCH Part2 v6 05/49] x86/sev: Add RMP entry lookup helpers Message-ID: References: <99d72d58-a9bb-d75c-93af-79d497dfe176@intel.com> <5db37cc2-4fb1-7a73-c39a-3531260414d0@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS 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 Btw, what could work is to spec only a *version* field somewhere in the HW or FW which says which version the RMP header has. Then, OS would check that field and if it doesn't support that certain version, it'll bail. I'd need to talk to folks first, though, what the whole story is behind not spec-ing the RMP format... -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette