From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-wm1-f74.google.com (mail-wm1-f74.google.com [209.85.128.74]) (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 844F630E0F5 for ; Tue, 21 Oct 2025 13:38:34 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761053916; cv=none; b=PGEQrTiMXn4AEayOOPh429FAIhfz3Uxo4ymZBmZfskeDxlJ+SOCKDq61MpKRPmehPuQWXQs59gmvHJSWr15CRAWVNlaxzQP15E9f90ErIh+l0w+vbKYbucRyLIzT6Fw9Jjq4B+KZ8+6Tsp39Wvl78ard9XcMpfq7EtpErZRN8FI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1761053916; c=relaxed/simple; bh=z+qE3mqR5qH0hG46rSsVRK63icU+VehQg+WrkGQUKEo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=TscUeNPKOdCmwCSw2tEOEhH1loArzs6VtFfDkIR4fdxl0ArTLQGcxAnlyIWXAPMu+RALjImK4D4TsTd/xOY/ni0GYJLQaiRyF/30TaFe/aWqiHHUsyOWVO6+ITgVRn4bqBCvp+7X0LiRCT72rgImPdLsYapTm/ADiqTVlDNwQwQ= 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=laU99bV7; arc=none smtp.client-ip=209.85.128.74 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="laU99bV7" Received: by mail-wm1-f74.google.com with SMTP id 5b1f17b1804b1-47113dcc1e0so46788275e9.3 for ; Tue, 21 Oct 2025 06:38:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1761053913; x=1761658713; 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=IGRey53sSgQZ/gBzTiyYAHyyXx3ws+H0lBwdiUb5eBc=; b=laU99bV77Yb4s6zrFPpitLVC/M+P4emGJRZzo885CZoIrtFsE8ryS31+4WXYGmgcKd ig+IHtzdjCvHQvkLUfNzF1HwZOESD+nYCp2TJDhwAoz0g1bfX8fAEPJZCHRC3j66ZqH1 DurtRj/nCYjquVh092LYhs+ASBk83PeKsB2WNWBoNaHX3FCpf7XlXylveVXBGkNdRZCt lOlHwf/v8AlCPyKF4E82gWAn9wOYohIB1YvbpmGGgb60+eLKTna1Tlc5x4U/VTj1XBpj VrtHf65lcERtx9SezuHapD6hhYKP7S8rYn3BNmUW84ht1rnt/f2yZ2oZbfrwuWR7Ltue FWrA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1761053913; x=1761658713; 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=IGRey53sSgQZ/gBzTiyYAHyyXx3ws+H0lBwdiUb5eBc=; b=dJgJUoHMAf8dgiEphMydFzyVRgMRu28bZAC8aUxt42RjGBBL6qYc5KeFa2URLFUjba +RuLQIwHYxfWHr4QjBuFWT/MB1pWx1U5084GdA70fxLA9cOFKWzujquEf3jBSwd2Xnhh bWEiPJuiNOY7GCsvoU1pIc2IG52HmIH0onbAK1O4lUT0WmvWoxTZPxS+AHdEMmWYLxWs m+fAcCywAG0w1ylXp8jIc8CJ4soAp9DGZzMh1qyRP0xaS3jTSWT6MVe7lRWPjR7VnWJ2 ZzCMrtHEtmyMbA1YCmhnlyuK17NwQqY6JaEo95AiPaKQoqWoz3f6D8gC3M4vjMxNlTtO PJMQ== X-Gm-Message-State: AOJu0Yw175dgnK7c/nA3wLBkH4mriP+vNzCsMZq7V/vjLQdDyFxOWZsZ OY5csKXJdfuqIP/CzM1iaC2sdPe3YkhmlVNXDi6Ncg8RFEvVQJgLuj4UHmZ0xeuvP2gHIwNsliq 8748RJ8BvEHVJfw== X-Google-Smtp-Source: AGHT+IGvYN+oeWDuKrzhX9dTAvv1Ui1CTP/nYtpayau6mHX1JvveEYbt5nmnaGDDpYB6fO6OhbjffwACgPNrGw== X-Received: from wmwq8.prod.google.com ([2002:a05:600d:8348:b0:46d:6939:1b46]) (user=jackmanb job=prod-delivery.src-stubby-dispatcher) by 2002:a05:600c:3492:b0:46e:3193:fecb with SMTP id 5b1f17b1804b1-471179193c3mr111611295e9.27.1761053912715; Tue, 21 Oct 2025 06:38:32 -0700 (PDT) Date: Tue, 21 Oct 2025 13:38:32 +0000 In-Reply-To: <20251016200417.97003-3-seanjc@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251016200417.97003-1-seanjc@google.com> <20251016200417.97003-3-seanjc@google.com> X-Mailer: aerc 0.21.0 Message-ID: Subject: Re: [PATCH v3 2/4] KVM: VMX: Bundle all L1 data cache flush mitigation code together From: Brendan Jackman To: Sean Christopherson , Paolo Bonzini Cc: , , Pawan Gupta , Brendan Jackman Content-Type: text/plain; charset="UTF-8" On Thu Oct 16, 2025 at 8:04 PM UTC, Sean Christopherson wrote: > Move vmx_l1d_flush(), vmx_cleanup_l1d_flush(), and the vmentry_l1d_flush > param code up in vmx.c so that all of the L1 data cache flushing code is > bundled together. This will allow conditioning the mitigation code on > CONFIG_CPU_MITIGATIONS=y with minimal #ifdefs. > > No functional change intended. > > Signed-off-by: Sean Christopherson Reviewed-by: Brendan Jackman (Git says no changed lines)