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 X-Spam-Level: X-Spam-Status: No, score=-5.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B3353C433B4 for ; Fri, 2 Apr 2021 15:44:58 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 846A561151 for ; Fri, 2 Apr 2021 15:44:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236099AbhDBPo6 (ORCPT ); Fri, 2 Apr 2021 11:44:58 -0400 Received: from mail.skyhub.de ([5.9.137.197]:53360 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234968AbhDBPoz (ORCPT ); Fri, 2 Apr 2021 11:44:55 -0400 Received: from zn.tnic (p200300ec2f0a2000fb5cecc74a705e14.dip0.t-ipconnect.de [IPv6:2003:ec:2f0a:2000:fb5c:ecc7:4a70:5e14]) (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 478001EC036C; Fri, 2 Apr 2021 17:44:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1617378293; 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=WsVWEB1QpwjlANMFlFl82TjGWWsWDseoOUY4h9xc4os=; b=SjxJMJZpcarL8XoqZ79XuREBk9vIVX6fO2jub/+DHurpUzbsq0q+HFH2udI9hVKNq+YmAU WuTLesw4QG7Y8dnh73rKLMJq1Hm6HRUhL23OQsZhm0paWtDg76CF1BmY4nUffprjktC6we qigGunoc1YVG8nyfQ7k6n+8l4Dh0czQ= Date: Fri, 2 Apr 2021 17:44:58 +0200 From: Borislav Petkov To: Brijesh Singh Cc: linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, ak@linux.intel.com, Thomas Gleixner , Ingo Molnar , Joerg Roedel , "H. Peter Anvin" , Tony Luck , Dave Hansen , "Peter Zijlstra (Intel)" , Paolo Bonzini , Tom Lendacky , David Rientjes , Sean Christopherson Subject: Re: [RFC Part1 PATCH 04/13] x86/sev-snp: define page state change VMGEXIT structure Message-ID: <20210402154458.GI28499@zn.tnic> References: <20210324164424.28124-1-brijesh.singh@amd.com> <20210324164424.28124-5-brijesh.singh@amd.com> <20210401103208.GA28954@zn.tnic> <894e7732-8ed8-cc17-1cd1-769b7d2745d1@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <894e7732-8ed8-cc17-1cd1-769b7d2745d1@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Apr 01, 2021 at 09:11:34AM -0500, Brijesh Singh wrote: > I guess I was trying to keep it in consistent with sev-es.h macro > definitions in which the command is used before the fields. In next > version, I will use the msb to lsb ordering. Yes pls. And then you could fix the sev-es.h macro too, in a prepatch maybe or in the same one, to do the same so that when reading the GHCB doc, it maps directly to the macros. > IIRC, the spec structure has uint_t, so I used it as-is. No > strong reason for using it. I will switch to u64 type in the next version. Yeah, the uint* things are in the C spec but we don't need this definition outside the kernel, right? Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette