Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp1020574lqs; Fri, 14 Jun 2024 12:11:48 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXv2OC1xCZC54sF4il25FJ+Jx2e3TWrHnamOSR56Z6vKr8Y63s37mej/aUgoZqUf3vAtAnxH6jEF+qaeD/28nfNAOrNLJjs6VPuD86orA== X-Google-Smtp-Source: AGHT+IFsWy3M2FRp+ypo6BCxbmBTw9HS/mOrIQuL/TOJZK+ZwkHtWNFWJpx5/mkNsE6iPEoEUmpY X-Received: by 2002:a0c:ebc9:0:b0:6b0:6f91:ae6c with SMTP id 6a1803df08f44-6b2afc92966mr32548956d6.15.1718392307909; Fri, 14 Jun 2024 12:11:47 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718392307; cv=pass; d=google.com; s=arc-20160816; b=EfMtyZXuH+30g7D/jtg7nJLDZnCSETfpgglnRQmTSL/UTYi/3g+KvZo0UOsmQVyw2Q SJFImorkZFkJQhWeVQxWShp6ewokTy8bXgmTcq+0QW68wzBCmE2B9mF9Nw1BdCGWFJbY qxI7lXzrFYlVJ0LcJrCwrR6vpdyXOxV4A0XkfbuBRl2tYpnRk6M25ESy6VkwmYCcc+io 7DvW+xUCvBv20myxd/ahFw6rDongMZGex5rHIXz1sG+xGRwArOOlXm5cQMRZ1RE3seEO XwNDca0taHcTcvNaJSFPqPUVtvreFolfReg1zI8ae4L/0a0z6VKjubk4G7RG/jPsNRx1 +s5g== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=YHoeX2aqNxFOwawwQ+u5gyShZuN1d3XKK09wgoJEq6M=; fh=G095KyAxlveY1jI0dHtgBHRSqFHM8KcqBIoU5nTcXUw=; b=Mo27N2fq9coyJrB1mVRNSrlrzQcm28ETQhLet5WPbxtWE78lHBG/Bo8gF0SKIp5Pft s+uIthoOVV7MIzuGdRWK9uIDpzNL1gK/mDfI9AtGecH1YjPCwyD45kjcIAEO8JEVCUxs kqfonYlDTz7RhCxtI9/uXDiNkqQYhO7+wB6AElenXbTtJ5JJBV4gpFBPj8wEF1UGWSlg /5LdMRJOlIkXJ5IA8gXpUC4WkHkXmxie3laXNEGdxAutAD7yef9PJW9MVeZo1pmHks0I pWpPcv5/DITn/R5cjLvI5uTfQI40gOdHT2AHfmZfHwIOHq0yqXmOf1IT/f4YKC9bcUii twqQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=GMMByZxo; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-215448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id 6a1803df08f44-6b2a5b3770dsi46264786d6.407.2024.06.14.12.11.47 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jun 2024 12:11:47 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-215448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=alien8 header.b=GMMByZxo; arc=pass (i=1 spf=pass spfdomain=alien8.de dkim=pass dkdomain=alien8.de dmarc=pass fromdomain=alien8.de); spf=pass (google.com: domain of linux-kernel+bounces-215448-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-215448-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id ADF391C23069 for ; Fri, 14 Jun 2024 19:10:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 6DE1E1A38EF; Fri, 14 Jun 2024 19:10:38 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b="GMMByZxo" Received: from mail.alien8.de (mail.alien8.de [65.109.113.108]) (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 AF8841A01C5; Fri, 14 Jun 2024 19:10:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=65.109.113.108 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718392237; cv=none; b=T1gFQ/4GPcz363WmXM23aWE9Pnvd1OkeELjr3j2LY+s29qnrMvzJ8mRkqe8dgA1SncOF2zR0g7401Yi1D9zFGvVtnYESy1iK6IqsfkYnM6stFiOWH8LZj60gcT2DudfFofhegWOA2RbFHc8EGZIubBRvTCJFCRzGeR1TklPQhTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718392237; c=relaxed/simple; bh=/McNpSiwC81uTiinpfWk+KdIlSVxE/p1HFilAYM2544=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=VwxSKIV3S1B9gyTMBSdmUQITl7VcTmKtJ39Vj8+9dAxtClJzeL4AtsrGVwVuAlW2csTYfu+6WzEcnx/CbTi1ugpNqzYTHjBMxyvbavtd621Rf/HfWjoQsWRUawpR41icwG0cd+MYqPxzLSsQHy4l/MKdswFi5lruxm6+zeD5bow= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de; spf=pass smtp.mailfrom=alien8.de; dkim=pass (4096-bit key) header.d=alien8.de header.i=@alien8.de header.b=GMMByZxo; arc=none smtp.client-ip=65.109.113.108 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=alien8.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=alien8.de Received: from localhost (localhost.localdomain [127.0.0.1]) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTP id 48A8B40E019F; Fri, 14 Jun 2024 19:10:33 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at mail.alien8.de Authentication-Results: mail.alien8.de (amavisd-new); dkim=pass (4096-bit key) header.d=alien8.de Received: from mail.alien8.de ([127.0.0.1]) by localhost (mail.alien8.de [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id B5wNnYZxtOcc; Fri, 14 Jun 2024 19:10:29 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=alien8; t=1718392229; bh=YHoeX2aqNxFOwawwQ+u5gyShZuN1d3XKK09wgoJEq6M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=GMMByZxogyqO6iERv7yE9B7Z+yBq6IlzYQqdEj+amC/+SOkkItb2DuZlWjCQQ1A6s 4j1l3t+xWiBaOYtb1Al3DKaXwLYbfyEbq6vBOtibH3OjF/V7yrzolInVRgYc6AMYy1 BPfOWGzHMmCGjmKpE0fwq2kvxt7ITrQ/CDLbpRlMGaITjvpc+cooDPh4hjbqbMARrc T4DqEw1jIwN+zP3q3iz6jK8lSCUkBVd4JFPnoznFFEx6V6rgfTNHC1Ya6hHOUYGerP Q57jaD74y8ePgm4lOTLR9TCHMjDaPmM9uRYgNmLuU2eqAARF8vX616Ujz3wAGfTyLK E5TZmCp7aCUmazqXGtQAwE+0xxALHZCoDv6pF+a2uN51Q4JxwqAoDfQkYnKnmIFS9l JbITCJLj6U7tSyrhVqRPatVQdvVLoBchGuxljqYuJp/zNW1N/n4Tyl8JZ69yyB8x6X y7ExtB5sc/1Hloa/p/JGAzXdGa1U1IPFlhzn+MEU+X3B9NhLEA+LwX3NZkWNOD9Tgx 8jPMEICeHzymu5qZSHKHGkpJgHRXvfor9d6MR4pvbBpgpuLFWoDj0Aug+D84BzZaRp WveoTopHFukaDU9dgrasYcIpVsvYEHREkHgYfbe7KMFFdmpwiyvBPlihqjieXCpD+g kAdmvYhHy+8dVwGMXIAmsTHo= Received: from zn.tnic (p5de8ee85.dip0.t-ipconnect.de [93.232.238.133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-256) server-digest SHA256) (No client certificate requested) by mail.alien8.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id 6B90C40E00C9; Fri, 14 Jun 2024 19:10:02 +0000 (UTC) Date: Fri, 14 Jun 2024 21:09:56 +0200 From: Borislav Petkov To: Alexey Makhalov Cc: Dave Hansen , linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, hpa@zytor.com, dave.hansen@linux.intel.com, mingo@redhat.com, tglx@linutronix.de, x86@kernel.org, netdev@vger.kernel.org, richardcochran@gmail.com, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com, zackr@vmware.com, linux-graphics-maintainer@vmware.com, pv-drivers@vmware.com, timothym@vmware.com, akaher@vmware.com, dri-devel@lists.freedesktop.org, daniel@ffwll.ch, airlied@gmail.com, tzimmermann@suse.de, mripard@kernel.org, maarten.lankhorst@linux.intel.com, horms@kernel.org, kirill.shutemov@linux.intel.com, Tim Merrifield Subject: Re: [PATCH v11 8/8] x86/vmware: Add TDX hypercall support Message-ID: <20240614190956.GFZmyVhLGeyLjwvA6X@fat_crate.local> References: <20240613191650.9913-1-alexey.makhalov@broadcom.com> <20240613191650.9913-9-alexey.makhalov@broadcom.com> <844ef200-aabe-4497-85c9-44fc46c9133a@intel.com> <20240614161404.GCZmxsTNLSoYTqoRoj@fat_crate.local> <74f8300b-3520-4824-81e3-71464e3da3b6@intel.com> <1750e44f-f9a9-4c2a-afb3-f1ae8237ccb0@broadcom.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1750e44f-f9a9-4c2a-afb3-f1ae8237ccb0@broadcom.com> On Fri, Jun 14, 2024 at 11:32:16AM -0700, Alexey Makhalov wrote: > > > On 6/14/24 9:19 AM, Dave Hansen wrote: > > On 6/14/24 09:14, Borislav Petkov wrote: > > > On Fri, Jun 14, 2024 at 09:03:22AM -0700, Dave Hansen wrote: > > ... > > > > You need to zero out all of 'args' somehow. > > > > > > You mean like this: > > > > > > struct tdx_module_args args = {}; > > > > > > ? > > > > Yes, or do all the assignments with the initializer. We seem to do it > > both ways, so whatever works. > > Thanks Dave for pointing that out. I missed that at v7. Ok, I'll fold this struct initialization oneliner into the last patch. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette