From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f201.google.com (mail-pf1-f201.google.com [209.85.210.201]) (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 4DAF73446BE for ; Mon, 6 Jul 2026 23:16:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783379803; cv=none; b=KmNOHjqvGt57O/x/sUMLc5jDFevefDXJ2JgLWYkUIg0BVvrajYjyynrFfNlX+hqLI4bHPJoYKPtJ5Pnlu6NU6f9PWwnBJ9Ab9mX65oku7XvhfAOJ7msiuECe2HG5lcz6g82t7suIvNGBmt5G4np+AH9zNmpf+OpEVDtk7TOd9bs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783379803; c=relaxed/simple; bh=LBsERILn1RsTbzBee8hFdg40stF7dMkbmTLRcDQN3ro=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=aQR3n3qlekjXKgmd4HMoXLTnL7WWH/4ssdvvi8u93LQCpZN9tQpO6WMLDr4AHwXwdDwVGjXZ9ilU+tDE/u3PAEmwdYC1hH3mfclhfFevLN665SZRNfJUJYOIEHfwG61I055mD9t6St9RWhGxiof1b6/fCzsFKUkRI4oZpJGyKb4= 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=M3Oeu/Ux; arc=none smtp.client-ip=209.85.210.201 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="M3Oeu/Ux" Received: by mail-pf1-f201.google.com with SMTP id d2e1a72fcca58-84240683a82so78053b3a.1 for ; Mon, 06 Jul 2026 16:16:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1783379802; x=1783984602; 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=aPu1yjO3YE9jowlTRoZpRIUWlo/hc/PNoecgFLgtNRA=; b=M3Oeu/UxQB1xfXd5FXgtrXVv8hTigGzRXtBc///k+cJ9Jk0o7VMtjoYkmOkpYLsSc8 kX4QFveRsrvGh6AEw/TuGMp3KNh3SAAESCQVUibTGF/2ossMKEQ7pZaQ2PjM/4sLqj35 iePyWkzWyA2cqcjzstz+TY8cwOSpvfrYz2JHEcwwj+jTY/OpDenkdOnjrIjHsPeSrU8t JDNU23A++zDFC8h0QonFIwkZfPH5q/nOt4tPEhThyzDTbxxbg9IFR5dnW/NXJTOBrxA2 nDl6d+b2qGw/wJioUQN0J62raSe/TGrv9ssG9k9KGaWQG/p03mY8B/Fa5lzhSJjM9cfr kSSA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783379802; x=1783984602; 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=aPu1yjO3YE9jowlTRoZpRIUWlo/hc/PNoecgFLgtNRA=; b=Sm1AIlGp8FWT7xYWDrtY13vU92DkaSaYOiRxRvWcKlPTsdABiZEGMAE/g1MzRkqj2l VW6Dy57PO/ABny+t4V8mnhjnEHtdn4ew1joUMj7pJXia+B3TFKNDL4MR9irdfmtOthyW CY+DmLrJAy+Ewp3q7e/L51k7uaySKxbYWD9sRuQH1Y4yjke+KNJiurYXJRHuZsyZ0455 WN5o/HNScmltmk8o5MYcJY+rS0+E7tgvOkM1/e4sD8rcKaU+SOgZyOMoXNFBGB4AUw4i Sk1gZKeED18wrTbqsHbWZN8exIzgaSx3hF9CV+vA2tZYzVxkm+dUd0ViRnEY5IQvkQFd ZwcA== X-Forwarded-Encrypted: i=1; AHgh+RqYqamnPkBfEFQpJD40VdT4h7Ogdnn5L1W+DsGtH19QEw80pI3hZgnYRURMXlc2zI7bV7q/SL4gNCNbyLg=@vger.kernel.org X-Gm-Message-State: AOJu0YwKA3hzOkMTAJU4UoO4cpBt+o6j/BVlPu4dioi8EaIOVGMH2hrj W7R8oxNEXvF0PYyyay/h8COuCtfNZEREliiAywLZ6TWuZMR/CQ9b8qqapCs9ubl8M+hWwzXhGtL pJzOEZw== X-Received: from pgg3.prod.google.com ([2002:a05:6a02:4d83:b0:c96:47b4:65c8]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:3020:b0:845:cad1:d691 with SMTP id d2e1a72fcca58-8482f17c7c8mr298869b3a.5.1783379801393; Mon, 06 Jul 2026 16:16:41 -0700 (PDT) Date: Mon, 6 Jul 2026 16:16:40 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260630222607.497895-1-seanjc@google.com> <20260630222607.497895-12-seanjc@google.com> Message-ID: Subject: Re: [PATCH v3 11/12] KVM: x86: Guard .gmem_prepare() declarations with HAVE_KVM_GMEM_PREPARE=y From: Sean Christopherson To: Michael Roth Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Ackerley Tng , Hyunwoo Kim , Tom Lendacky , "=?utf-8?B?SsO2cmcgUsO2ZGVs?=" , Fuad Tabba Content-Type: text/plain; charset="us-ascii" On Wed, Jul 01, 2026, Michael Roth wrote: > On Tue, Jun 30, 2026 at 03:26:06PM -0700, Sean Christopherson wrote: > > Wrap the .gmem_prepare() declarations with HAVE_KVM_GMEM_PREPARE so that > > non-SEV code doesn't try to wire up a callback without doing the necessary > > enabling. > > > > No functional change intended. > > > > Fixes: 3bb2531e20bf ("KVM: guest_memfd: Add hook for initializing memory") > > Signed-off-by: Sean Christopherson > > Reviewed-by: Michael Roth > > Not sure about the need for the Fixes tag, but it certainly guards against > some future problems. Copy+pasting my response[*] from a similar comment about a liberal Fixes tag: : > This LGTM, though I'm not sure this deserves a fixes tag. : : Yeah, it's borderline. Because KVM (x86) doesn't do AUTOSEL, i.e. requires an : explicit "Cc: stable@vger.kernel.org" for the vast majority of cases, we can be : very liberal with Fixes. And so I like to use Fixes to create a paper trail for : anything where a commit did something that would have necessitate a new version : of the patch, had it been caught in code review. [*] https://lore.kernel.org/all/akMLDayXmzhmvJBG@google.com