From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f202.google.com (mail-pf1-f202.google.com [209.85.210.202]) (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 54B4F238C20 for ; Wed, 9 Jul 2025 21:36:52 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752097013; cv=none; b=M19k2QiN4LFF/xbIuSbtRJ/3SyxQ/ElyjuOQN0i3Ayc5AxZGVeHHdLHqOjYijZcw33JPPQaK1P/Cp3ri41Lj+SwEvvN1NG9bCtUcfJ5Np7KWPdrQQvj6rmAF9GGg6WjQoEzn9OEM8mpbw3sw1L3cj/30kixUoc1kIsD0p+P0aJ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1752097013; c=relaxed/simple; bh=qS8xCwqQJQNA2xukALQdC1zCv6E13NjHv21ApuVNiRQ=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=e15QTqWX7Mjoj4iRMxMgQM7g8AYyAnDfpdP8eZyI9SKQmqYBWYaEkn8ANhqWD0IxD/SSJzpxONdlGb4FE8KgrZcIeZ/QXmT+S629NtzSmKq20HhxuhdNRDhdkCKrFMVVFDy7KID5n+cLbw+BuAkZnOstBzys+afWEWyW7zc32mY= 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=Wtfc/Bdt; arc=none smtp.client-ip=209.85.210.202 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="Wtfc/Bdt" Received: by mail-pf1-f202.google.com with SMTP id d2e1a72fcca58-748e4637739so223018b3a.1 for ; Wed, 09 Jul 2025 14:36:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1752097011; x=1752701811; 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=w3d6tzfJc09QAN3tOMltMcwq5vs2xgKEQEBLpFxZA4Y=; b=Wtfc/Bdt7gAiOMNUjKMvspuvunFJ23xGAXh7bfZf1orGgwme8Y8CSpsRpZjehWx4HY M+T58xwN9nQXGFoEiN+ISAokLF2UPMETsvmWGlawt8DfIYO0gWC5v9lw/d/V70QA9bIK ysRNAyvPkRtOk66ojRZ4G46QGCWuI7kAh0HIUa09bkC4QByUvaVVk2TUHs+82chqbbnl edzmrvYiIbuesdeSDCVvjg8RrhiezRVnqvuJtriBGIw+tmykL/Wnjomqe3S4SdpvO4tp qStjXdghUwvlQSgbMBHcENAGw/GIePjtTB3rDnBcTj9H7u6AayQ2YSdagVc/b/bLAZMy /Lyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1752097011; x=1752701811; 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=w3d6tzfJc09QAN3tOMltMcwq5vs2xgKEQEBLpFxZA4Y=; b=SnKdBpDZm3xcNuY1YkKic95f20rDhh0hh5V0SvtUFY1HUgaunkTWAbqXt0v17xofle rplIvoD23giZxSoYv1HX2k6yLszyDFb1M9xEgrMb+Yzt6i1G5ehDm9jaGkXJdH4WpR+6 kznSVZ3B1y853YqJK+dWkKBvW2vuNc5LVcsBK7pcmxPEUOyc8H0bdo9abX+d2s07GAM2 NmtVM4WeTamir9fC/l0eUNKDiADEgJdaQ+8IRKc6K9Ab+z1/IVq8PesnHyoI2ulOtsBq Ir53gCJaX1cZheKAfyA7mILXBv2wwuYZx9NswYv9jdg9+NwlTluQc8Qn8++yXr/ua42Z bn+Q== X-Forwarded-Encrypted: i=1; AJvYcCXDrs+BNppXDfW4/V5iJ6wf/tCp+F7To2LMy0nOSZIsJKt2xIS8qV7WXek+TL8JxRjEhgA=@vger.kernel.org X-Gm-Message-State: AOJu0YwMzS6AnHjw4an+xWVgo511nfmtgcC3Qgkoy1Rw040YiJL3Ul5x nnYcoC45nJIyWaVibbkpT1LjhxoFbQrcYBL781jdZqhn/v/Y/s7rNow27/77KzlI7/kdvNKXDGF 9+3YabA== X-Google-Smtp-Source: AGHT+IFLEqNTh1QWENQoKcaGQJ6FjDiy9bAAhlEBb5QtB5Bh8MLqQr+R1uQHMdCvh3BdwLZPRf9uwMB9da4= X-Received: from pfbct18.prod.google.com ([2002:a05:6a00:f92:b0:749:2cc7:bd89]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:3d21:b0:220:2fe9:f07a with SMTP id adf61e73a8af0-22fc2b18849mr1713280637.6.1752097011498; Wed, 09 Jul 2025 14:36:51 -0700 (PDT) Date: Wed, 9 Jul 2025 14:36:50 -0700 In-Reply-To: <20250709185757.GDaG67tbGFYHUQxte2@fat_crate.local> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20250522233733.3176144-1-seanjc@google.com> <20250709185757.GDaG67tbGFYHUQxte2@fat_crate.local> Message-ID: Subject: Re: [PATCH v3 0/8] x86, KVM: Optimize SEV cache flushing From: Sean Christopherson To: Borislav Petkov Cc: Thomas Gleixner , Ingo Molnar , Dave Hansen , x86@kernel.org, Paolo Bonzini , Maarten Lankhorst , Maxime Ripard , Thomas Zimmermann , David Airlie , Simona Vetter , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, dri-devel@lists.freedesktop.org, Kevin Loughlin , Tom Lendacky , Kai Huang , Ingo Molnar , Zheyun Shen , Mingwei Zhang , Francesco Lavra Content-Type: text/plain; charset="us-ascii" On Wed, Jul 09, 2025, Borislav Petkov wrote: > On Wed, Jul 09, 2025 at 09:25:35AM -0700, Sean Christopherson wrote: > > On Thu, May 22, 2025, Sean Christopherson wrote: > > > This is the combination of Kevin's WBNOINVD series[1] with Zheyun's targeted > > > flushing series[2]. The combined goal is to use WBNOINVD instead of WBINVD > > > when doing cached maintenance to prevent data corruption due to C-bit aliasing, > > > and to reduce the number of cache invalidations by only performing flushes on > > > CPUs that have entered the relevant VM since the last cache flush. > > > > > > All of the non-KVM patches are frontloaded and based on v6.15-rc7, so that > > > they can go through the tip tree (in a stable branch, please :-) ). > > > > Tip tree folks, any feedback/thoughts on this series (patches 1-4 in particular)? > > It'd be nice to get this into 6.17, and I'd really like land it by 6.18 at the > > latest. > > I'll take a look tomorrow. > > If I queue 1-4, would you like an immutable branch to merge for the other 4? Yes please, thanks!