From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f73.google.com (mail-wm1-f73.google.com [209.85.128.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 67A951C862E for ; Fri, 14 Nov 2025 12:40:27 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763124029; cv=none; b=ALza5oF4iBOsiOjK4lkdfk9edpWAgDK4zjlGXG2ZurTmjDa08q/n3A2KELbdmM1WFkaYXNDcAxI0Dc/ARmgSrLqtJePdNbJm84Alt19oSkJmHl7TkaWjyK+CBBSitaBf02VagSdFe4jkgFCHEv8gw/onfvrkgboc0GLQSt6g7+0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763124029; c=relaxed/simple; bh=1S7oMaiMrQhbrBE5JZaaD3PrCA7SNK04RmgkbjRg6zA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=NrtWPOYfVwn8wGQKyYlTJHhdhBsx3v9QXqQbQHqMu26SRipZGjEI64xERyz4Kyv1fmYaIREhN8kXsO60QWL5ncsLlUXleuBOoP9PXFfWvl0fjdllvxXPZ6sd/VDGZWdmMr6fIiMZBUegBfAY5pR7xy0X51sjY7n61L3oSfKBvLc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--jackmanb.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=VtN5a8Wk; arc=none smtp.client-ip=209.85.128.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--jackmanb.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="VtN5a8Wk" Received: by mail-wm1-f73.google.com with SMTP id 5b1f17b1804b1-4710d174c31so18987385e9.0 for ; Fri, 14 Nov 2025 04:40:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1763124026; x=1763728826; 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=+mnkKCVTFBypK6JgR4pPkzvAmtwTh/tLRTgr+WHrD5Q=; b=VtN5a8WkpibviBOENU2EobEtxaW5KYk8vBneVGJPtHg695Otpx21pniKPZDdmL+ZDg 3BNC2SvJmC8hkO4EHelmBT6nofPnVjpiev7UBA3z10GPgU3/Hh2vIcXLg60bhomU4ZQz QcFX4kZCcJ1O5o2MSRQiKkSoRrFgCWrpCd7QSff70mgpO/W9b7xjTMJp2MxG6ec3jrgS hBarAr0mqWZDRMkD+H4PxEImuwjygmW052RyLGpPfyphuQd/pvUUu+40LQEb43PUIah+ DOtn7yTehM47JarTi+7L34sWIelHeTB3elHRxcmc4BfQA22+mE2vyZALSxHyRWhe6iwE /Mcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763124026; x=1763728826; 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=+mnkKCVTFBypK6JgR4pPkzvAmtwTh/tLRTgr+WHrD5Q=; b=bl5cjlsR0JIuCpQx31QprGyqiQlFM/yQY81nEq9IulYLXD/URP45B5gFDynVtZ13R0 PGXS82XkTAmqPGS3jyc0WuayTxTzDTR8Oyyl54Pj+R/1Y6hlIgA7hOiNs868ZCEpoYzH x0Cibzb0mpOxvXdetp0t6U7Tznsfy9z0oGAymRtk6kzP3sPzuf0CRiRYZyFFM8P3XpxC yusUTc5FRgYAyEVkIjcgNHHYbVaVTUQzFVcdiHwrQo2+vEgOquDPZ++SWoP8Ma6OU9Wd 7SmUFR4SM7MGtGWFm0y6kWXj4Ahd0SanyZWM0MgD2tsDrzbQzowUF+dVr0uOqIIV9LCY MCLA== X-Forwarded-Encrypted: i=1; AJvYcCWRoGpKXOdwPpY7WNDJcYKfNynW/9TY0osk0UTnwQp1z+XWNDhabRnagg3FT4HOtZpLUKtpas9fHxvUX6g=@vger.kernel.org X-Gm-Message-State: AOJu0YyGMHCYx79VSXUUKK5nBz9mXUPylvhBRqasb0f/POyG9l5eZref e1m9/wcKZIDJfqm6zleryYqUqFeWSxSuq4gcV3MOwZ80Xd1sCK/U6521Qvh8E8WASSQiPwDG9Hw OJ/7RcqQD6u46XQ== X-Google-Smtp-Source: AGHT+IE3n1k80MuyIwex32RymBBJ3wkzNS9chxunz1u2NCAGwFePOCUhGXCOZClPfDc3vS+fOvbMrhUciWJf9Q== X-Received: from wmlu9.prod.google.com ([2002:a05:600c:2109:b0:477:3fdf:4c24]) (user=jackmanb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:4f93:b0:477:5c58:3d42 with SMTP id 5b1f17b1804b1-4778fe588a9mr27893345e9.10.1763124025773; Fri, 14 Nov 2025 04:40:25 -0800 (PST) Date: Fri, 14 Nov 2025 12:40:25 +0000 In-Reply-To: <20251113233746.1703361-3-seanjc@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251113233746.1703361-1-seanjc@google.com> <20251113233746.1703361-3-seanjc@google.com> X-Mailer: aerc 0.21.0 Message-ID: Subject: Re: [PATCH v5 2/9] x86/bugs: Use VM_CLEAR_CPU_BUFFERS in VMX as well From: Brendan Jackman To: Sean Christopherson , Paolo Bonzini , Thomas Gleixner , Borislav Petkov , Peter Zijlstra , Josh Poimboeuf Cc: , , Pawan Gupta , Brendan Jackman Content-Type: text/plain; charset="UTF-8" On Thu Nov 13, 2025 at 11:37 PM UTC, Sean Christopherson wrote: > From: Pawan Gupta > > TSA mitigation: > > d8010d4ba43e ("x86/bugs: Add a Transient Scheduler Attacks mitigation") > > introduced VM_CLEAR_CPU_BUFFERS for guests on AMD CPUs. Currently on Intel > CLEAR_CPU_BUFFERS is being used for guests which has a much broader scope > (kernel->user also). > > Make mitigations on Intel consistent with TSA. This would help handling the > guest-only mitigations better in future. > > Signed-off-by: Pawan Gupta > [sean: make CLEAR_CPU_BUF_VM mutually exclusive with the MMIO mitigation] > Acked-by: Borislav Petkov (AMD) > Signed-off-by: Sean Christopherson Reviewed-by: Brendan Jackman