Received: by 2002:ab2:2994:0:b0:1ef:ca3e:3cd5 with SMTP id n20csp466320lqb; Thu, 14 Mar 2024 17:26:54 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUx850kfutmvNCoTnRId8o2L0FPx4QCuM6BOla4bjUnWXLcdYzMsCkkLGrh4q2zuYfni20gRWRCBIfUeEt+qgOzE9uWfAREIYqHx59bTw== X-Google-Smtp-Source: AGHT+IH2AM1A19RzSK+LB/U3Rp2pH72j6FH/jPxxwTxxO9yZJbBXwo5AT0GihynchmC9XzxuNSf9 X-Received: by 2002:a17:902:b78b:b0:1dd:819f:9503 with SMTP id e11-20020a170902b78b00b001dd819f9503mr3363773pls.12.1710462414558; Thu, 14 Mar 2024 17:26:54 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1710462414; cv=pass; d=google.com; s=arc-20160816; b=o++Yh7NG/M43su4ytTnyKasicYmdPQIquMoq94DaMCSUsJM7N0RXLHYHwUxVWFod2j 88SsBxPk6xCCkjj7JoO7zuwnsD3hQy3rf4NTCd7gz6TsquY7uPJjLSN8Qwf4ey5V6w2l I8rxfEvXbxjm1+bnVW3ey/MgR3xga2uyhv976oYtLGTXy2TMj3tAv5KfwguKp+eXC91n q2sFDVG0IEJCA3scT0sGmibFt09Mg6pap7NilDJvhWYFyDQoodFPjj5TuDED3WA5CF6c 0I1CqwfFP4zqEEJk1fsZfzxfrr3vgijVYZcx63UTGVxwPreCa0lFRZRZhttj5+kxhpxY DPjw== 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=bA0405tMvtDhZYJd4jp7DT2RTJNNkCYzf/CHupYJk5o=; fh=3iF5gU4A9+G5jCnPMZorIQokfGVANqSecaxOmlRKHZM=; b=wwBIrJrkwndhQ/hlSiZlWFq/vYEzCaoaKISDma+asz0cLjR/7OPmGmDSAtUVaPOegn E8/XX1t7t8IWvCyrxiKl/jW564QMZJEFWdDxIllfVp+GX6O9I+A4Mq6kXt4G/M0Hez3U VNlwUzk/irwuVVQi59rI6XQQ3WP+t2B8fQYbPBA6eDcg2Lw7y0hpIi/+hlO4yLTRWZBS dc6UStu11nzFpN8/0JTFB2bfyrZlfNIL7qt9H6PTEL2oF9q38EHzoPLLilWpR/Zcx/7Z R1IjhUIQr5X1WB5Xo/xxsnh/0cAhdvcRDTKEfQfRDOs/9+5bhOf3mJY+gODPm4mzy3VF rWUw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=luqzFIDN; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-103936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id p10-20020a170902c70a00b001dd63e221c9si2257099plp.543.2024.03.14.17.26.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 14 Mar 2024 17:26:54 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-103936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=luqzFIDN; arc=pass (i=1 spf=pass spfdomain=intel.com dkim=pass dkdomain=intel.com dmarc=pass fromdomain=intel.com); spf=pass (google.com: domain of linux-kernel+bounces-103936-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-103936-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com 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 sy.mirrors.kernel.org (Postfix) with ESMTPS id A3B2CB21A47 for ; Fri, 15 Mar 2024 00:25:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D75E66ABF; Fri, 15 Mar 2024 00:24:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b="luqzFIDN" Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (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 2449F4C80; Fri, 15 Mar 2024 00:24:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=198.175.65.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710462295; cv=none; b=MCp+IuNlRcwXBhNg2apfJoju6HpYQbdiWrDSWcnxptsOvgs3voTb300IWXzcXGeva5dwMaYZMpVSj2Ej/EMg9GGbGzsfWLZGzGf3E17JZGsuGdRvURms4T94eqwpJ7mtGSBpqd+yvlWS4v/EGkxJsq85k+i9D36Flgwh0JAcrlw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1710462295; c=relaxed/simple; bh=Jwy/unLAt9Zhejet2huLO9qy+XoBPa9uqAfZQ8cRmrA=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=rwV2c8YP8r/plHMyTuM2/EkeBplHOVOWhwH4bS+qFxpYNkrBt3pTPd8PVkR/Dpj5E3TpV+KK3UGRnW3YQJpRBqdzIOheVu6tmnQxx22adUBbBKCurvfb0siSxVmvQQFk7WSCw66+T/tP4Q7hkGhhQw+fVeqMFUKgWnMw2zFa8Ts= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=luqzFIDN; arc=none smtp.client-ip=198.175.65.10 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1710462293; x=1741998293; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Jwy/unLAt9Zhejet2huLO9qy+XoBPa9uqAfZQ8cRmrA=; b=luqzFIDNdztfjnu30pcZ0E1L781CesAZm9Cot2jisr3adItdCQS61Ki+ b+UXxhBGuf6cyDzBIPRdSa7RKolWZhP6H0JGCC7Mtsq5WrPd/twbvTE0y fOFgPLSlu0CnnzhjllTzn52IQuXDvvmzmr8oVZ/KWUr0MEWDPa0parjVe rIp2+d5BKYxDJq0SIeN92Ynkddn2UEDadhyj7YQlMDobulAu4J4PdHegR AujTDrAyNFOyP6aknO//AbyUJfJfQPsPLhwmeaDyAhFzQp+7txwYSXZmX DTny9H22JzMXiVT9AU86pVyMFbbLMIcYutigJzQMVujUwIjK0txkCxYHe Q==; X-IronPort-AV: E=McAfee;i="6600,9927,11013"; a="22774682" X-IronPort-AV: E=Sophos;i="6.07,126,1708416000"; d="scan'208";a="22774682" Received: from fmviesa004.fm.intel.com ([10.60.135.144]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 17:24:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.07,126,1708416000"; d="scan'208";a="17077589" Received: from ls.sc.intel.com (HELO localhost) ([172.25.112.31]) by fmviesa004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Mar 2024 17:24:52 -0700 Date: Thu, 14 Mar 2024 17:24:52 -0700 From: Isaku Yamahata To: "Edgecombe, Rick P" Cc: "Yamahata, Isaku" , "Zhang, Tina" , "isaku.yamahata@linux.intel.com" , "seanjc@google.com" , "Huang, Kai" , "binbin.wu@linux.intel.com" , "Chen, Bo2" , "sagis@google.com" , "linux-kernel@vger.kernel.org" , "Yuan, Hang" , "Aktas, Erdem" , "kvm@vger.kernel.org" , "pbonzini@redhat.com" , "isaku.yamahata@gmail.com" Subject: Re: [PATCH v19 058/130] KVM: x86/mmu: Add a private pointer to struct kvm_mmu_page Message-ID: <20240315002452.GD1258280@ls.amr.corp.intel.com> References: <9d86b5a2787d20ffb5a58f86e43601a660521f16.1708933498.git.isaku.yamahata@intel.com> <50dc7be78be29bbf412e1d6a330d97b29adadb76.camel@intel.com> <20240314181000.GC1258280@ls.amr.corp.intel.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: On Thu, Mar 14, 2024 at 09:52:58PM +0000, "Edgecombe, Rick P" wrote: > On Thu, 2024-03-14 at 11:10 -0700, Isaku Yamahata wrote: > > > I think the point of putting these in a union is that they only > > > apply > > > to shadow paging and so can't be used with TDX. I think you are > > > putting > > > more than the sizeof(void *) in there as there are multiple in the > > > same > > > category. > > > > I'm not sure if I'm following you. > > On x86_64, sizeof(unsigned int) = 4, sizeof(atomic_t) = 4, > > sizeof(void *) = 8. > > I moved write_flooding_count to have 8 bytes. > > Ah, I see. Yes you are write about it summing to 8. Ok, what do you > think about putting a comment that these will always be unused with > TDX? Ok, will add a comment. Also add some to the commit message. -- Isaku Yamahata