From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 1F0CE7F for ; Tue, 2 Aug 2022 14:15:02 +0000 (UTC) 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: Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: 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