From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 217D133F39E for ; Wed, 11 Feb 2026 16:28:35 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770827317; cv=none; b=uim57px+tj7hXJDm+M2B5azMGcDGoHEjC01gCJnS0Vuep/p5ltfzS60P6ItLu0rXhBL3oUj6pTPgvkjAa7nHrtAH+cyDR6fA0dB9+0oFVdvrbQ+Shugw2GcGZ37t0rpg4tzdzcDsDbDzIncPKISWdx7DVPQ9EiWKmqoGMOPKvGI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1770827317; c=relaxed/simple; bh=U+cPEElKThFnDHVfgnxSQE1ymjjnaLfhLZ4SW2NbBv8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=bMx9K/VxbTDflO9ADJteh3ujJPoOY/DreeKEJTP+UMWJLzWa++NvQxATIMYSh05/PnPRbgL0jzGpR45r9lwR6KdODPZ7yAkzVn2qeKaYm0HNiYQomiGrslnrHl9JGrPTjiuQtcf5hT2OhlN+ccJvdV1zOF0qeEZYckLMqM4992A= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=ss09orXp; arc=none smtp.client-ip=209.85.216.73 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="ss09orXp" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-354c0eb08ceso5773030a91.1 for ; Wed, 11 Feb 2026 08:28:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1770827315; x=1771432115; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=H5lF3URYjElzfLukro0tcBvHJBsX+iaWEIkLwMGC0+s=; b=ss09orXpKvV8MlCBQyhHE4x8fZBdpwEORTpKuqg01kujc5xlwdyaKUt2s39yZ7eKLR 0Ips4mwVn1LTGu0NghXvLB4gom/Z9JTb/eypDO9JYHNSCBWm0fB8it3FENgOlvQKVZZm uQj2uQTKi062xRLQjVlfx7jiuUTFmu0TF72u8akcyImowxapvOVIeurHBjksM7bOHLqN I/7NrWInZGcThzpFnP9Cr0wZen+fBrW2d6Xv4zOvCqulmUqPNMopy7aj0VHDFxT5P3Pv b2CpVHz7RXtunQROLVTngAdHca9RXmlHEmT4ivTQUcx0BrVi3tNKiSmxvkzE1+V5A/ie e0lA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1770827315; x=1771432115; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=H5lF3URYjElzfLukro0tcBvHJBsX+iaWEIkLwMGC0+s=; b=lATEgwqPeA7bKhMM+NHvzCT4GVoMgIx9IDgnatz0jOeCCQ2952+CbzBsRQqO/G8Fhf uO1fHtng8TKc4jpJXFIV6Ei2WeHAwL4opWkX5bjbuHsvOaIlghY0c06zH18rmTIZmQs6 i5Sbz4xlHyMkhPsLIWcgXQKRArk2/S8a65fqmY1wEEVRQBeytZiUDLEedyy64lHbA+3e AzunU/OLBd+7n2b/HS/7I1hNziIAuoFuu3Iq9sBZeuHrCPtP0czAG8FeE2mUyMd6gUcI exbec8KQiLaTj30tCG84rjS9es7M1EZ5Q2KtA2HPUGcfUqIknMhS5cSQKHhvHXtD0P+Z rtZQ== X-Forwarded-Encrypted: i=1; AJvYcCWYDdeBE7icRUyHIzt297gBBNjM0KVLA6lFW+xC6WAEp20+N/qa6XrjReP4XuQYfTMIFlWN62Bch3/5ZAs=@vger.kernel.org X-Gm-Message-State: AOJu0YyViMdbfJvR59HMZFfyr6xwp3xFDgRgPZsk31tgsa4nSwy+uvqV QFQIu6p4B9X2l5IJitfdY4oWcUUV44dT78ThygBqWRrVMyqXHI9xfGrGvl/QrawyHe513SV35E8 odCMyrw== X-Received: from plsr7.prod.google.com ([2002:a17:902:be07:b0:2a0:84dc:a82f]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:6a0c:b0:38e:9e55:6df6 with SMTP id adf61e73a8af0-393acf9cbe5mr18514534637.3.1770827315468; Wed, 11 Feb 2026 08:28:35 -0800 (PST) Date: Wed, 11 Feb 2026 08:28:34 -0800 In-Reply-To: <20260211161723.GDaYyrk9gZfONLoARz@fat_crate.local> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260209153243.GBaYn-G02QE86Fje7g@fat_crate.local> <20260209174559.GDaYodVxWsiesiedLJ@fat_crate.local> <20260210200711.GCaYuP74dOknGNV1DT@fat_crate.local> <20260211133226.GCaYyE6u_IMik5DY4m@fat_crate.local> <20260211161723.GDaYyrk9gZfONLoARz@fat_crate.local> Message-ID: Subject: Re: [PATCH] KVM: x86: synthesize TSA CPUID bits via SCATTERED_F() From: Sean Christopherson To: Borislav Petkov Cc: "Carlos =?utf-8?B?TMOzcGV6?=" , Jim Mattson , kvm@vger.kernel.org, Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , Babu Moger Content-Type: text/plain; charset="us-ascii" On Wed, Feb 11, 2026, Borislav Petkov wrote: > On Wed, Feb 11, 2026 at 07:54:30AM -0800, Sean Christopherson wrote: > > If the kernel tracks both raw CPUID *and* kernel caps, then KVM can use the > > table without having to (re)do CPUID when configuring KVM's feature set. But > > KVM would still need to have processing for SYNTHESIZED_F, PASSTHROUGH_F, and F, > > to derive the correct state from the raw+kernel tables. > > That's what I meant - the macros and the confusion which one to use would go > away. Again, the macros would go away, but they would simply be replaced by labels in a table. I.e. the "confusion" won't go away, because it can't simply disappear. That knowledge must live somewhere.