Received: by 2002:ac0:e350:0:0:0:0:0 with SMTP id g16csp2553284imn; Tue, 2 Aug 2022 07:20:54 -0700 (PDT) X-Google-Smtp-Source: AA6agR7WJ67hKAFWqK4SDXoUAQRsQ/IZtqLP3THT4zBtTtnbYpag5+/EWFlgUqhvYy4qRNfOIgd8 X-Received: by 2002:a50:d0da:0:b0:43d:5f5f:32c3 with SMTP id g26-20020a50d0da000000b0043d5f5f32c3mr15040424edf.192.1659450054094; Tue, 02 Aug 2022 07:20:54 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659450054; cv=none; d=google.com; s=arc-20160816; b=UBGGfnZtK743JnEPeg91HBwcWG5g+4CmES2SM+4TjPjqh1EG397jurWTZ3b7R98evP 6wRcEdP6I4Za+zwPIdlReK/WvYbO8MhzAcbdMT7YI8/WystUjTCVvIzf0Mbv0CkSgyGG FPiYvMrc3FB1MpAa/gRo7LEaFivnaP9isMAdvstZD/cATrQ64qph6vZ1I3V/S1PSovuo fQkju9AfJzTCRAiw/lA8vvkCZrSm1ny8KZvelkrya6srxHmwdHyQ5rqFk/Zf4i4OdFg4 8eLVQgSZXxE1rzi6rhcWnaCmDXSe3eDv/UydcrZ1HhP/D69CTKtwlC52nykdFlx0JTcY ergw== 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=Z8jwOPcUdOFzx8T/2N02LE8NjUGzajYNLDv9kHr1wy4=; b=qgvr8TdpwtkrOuSFJq84hnDOq4yrhjkeDkUYV+GN7IUQz/KUWeun6lw5DB66O97hnK bacUt7s/fCc4OY/7eM0cTxauHbzLuOdinFpSGv4PJGqvsNq4bLYrFos5FriS8bIEspUB fm7fn6PYM3MKR4LfghZj/yKXOm3g/9Vo8UN7DPWhDo6MIjcCRIpONctZWn5MaT3qh639 c49wVfkhl1G+Iv1WkwDZrg7Xk2iNSEAMK90RIRslGyjSaYAmvxh5NdIxnQHqRzM5whcJ QZtcXPTPNa3DKKa1sfWPgCQepx2dqN1H+w/8v2kRN2zSY7a/8TxwZQUmzI8RcpZGk9GV mtbw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=IG0mK8Kr; 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 nc37-20020a1709071c2500b00708f4d9dbdbsi13449280ejc.79.2022.08.02.07.20.23; Tue, 02 Aug 2022 07:20:54 -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=IG0mK8Kr; 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 S237058AbiHBOPA (ORCPT + 99 others); Tue, 2 Aug 2022 10:15:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42668 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236168AbiHBOO7 (ORCPT ); Tue, 2 Aug 2022 10:14:59 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A48321B7A1; Tue, 2 Aug 2022 07:14:56 -0700 (PDT) Received: from zn.tnic (p57969665.dip0.t-ipconnect.de [87.150.150.101]) (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 C3AC51EC0426; Tue, 2 Aug 2022 16:14:50 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1659449690; 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=Z8jwOPcUdOFzx8T/2N02LE8NjUGzajYNLDv9kHr1wy4=; b=IG0mK8KrzQhKoW9wNbACe1dk+XLWRIv0NS5AZcL0Y0Bzp8OxAhzA5yHTwyPGqkaTcQVWUb 2lAr6YhEGZvc2T2HLUq0Z553eO6RzeCJoDWoFdQ6TqRdBSDWouWaRJTjeZHO6wePdHw7c8 pnWfqeATNMAHkT9Xava/TNZYo2rOwOE= Date: Tue, 2 Aug 2022 16:14:45 +0200 From: Borislav Petkov To: "Kalra, Ashish" Cc: "Dr. David Alan Gilbert" , "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" , "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" , "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" , "jarkko@kernel.org" Subject: Re: [PATCH Part2 v6 06/49] x86/sev: Add helper functions for RMPUPDATE and PSMASH instruction Message-ID: References: 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 On Mon, Aug 01, 2022 at 11:32:21PM +0000, Kalra, Ashish wrote: > But we can't use this struct on a core/platform which has a different > layout, so aren't the model checks required ? That would be a problem only if the already specified fields move or get resized. If their offset and size don't change, you're good. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette