From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.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 D4DC32673AA for ; Mon, 20 Oct 2025 15:51:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760975501; cv=none; b=E+GteEz44UDoZ6TB3V11/eYey45Vyino+QxfR/pG/daSevZasoNWxAiNP67Y6TgBPPwVk8g+O+PTUloxmuEmwdVLRnV0HX2CExNVaP1UoHsRnUlfUTyz0cyfcWEP0R0RGas1BbMwb6BuaJs72pW7HNaJAlQuD0K/VVzIdohueqI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760975501; c=relaxed/simple; bh=CKoBgkqf/XEfME922InMtGklfFRfPcNzmQcSSx+gDg8=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=cJeLcNd9cyMQGKea0FvPizvYqOmpyG1b+W7XoGEcTamMDe2HL9jiXXh+zeLJTP17tVSJlhtBhgcAZUS8Lf3I96+q/6pSM5UuRJG4rpsJsmO8UGVv+0VksdVD/n8Acs79kX4rusr71qcygmy1DVqKnzKM4IbNkhCnk2jvNeduNu8= 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=YO1xn/hR; arc=none smtp.client-ip=209.85.216.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--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="YO1xn/hR" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-32edda89a37so4072234a91.1 for ; Mon, 20 Oct 2025 08:51:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760975499; x=1761580299; darn=lists.linux.dev; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=cYUu49s1qQu/J7CEp2f/HidgNr2LRMkTfT3HoRdnoms=; b=YO1xn/hRVBkEkrRj9Y/toQg777W1wjM44uXJsKR0Zx4mMRVlNOxrjEHIli5gXx9MZ6 lkse5ozbpE8wMmTVidKEaKauF8kb9RBLar3NJyyONYimpX9U3ksGQ1IJ1prT52EIj9J9 NirCLjHN3u/NzPVrFakyK3iq1ULdmTjhd64whD8szvNz/PTnRGGRiZtJ20Ecrx7Turer nit2zL1P+oHGXfHZi/tqcSth6itBL2UisWwOOaOSKeYVG+f8k0q65zkQ7EolfoSVhWjY t6yTLQHjngotqeQcLG+zW34O5t4aaqfnqHc8GyYJlLbpa/JvYsJmTZ9uDvEuNfdpZ3Nr tuJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760975499; x=1761580299; 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=cYUu49s1qQu/J7CEp2f/HidgNr2LRMkTfT3HoRdnoms=; b=DfR8T4h4wisPTaT1KMoPVBY8wFk7LtTtvKApGs+UIzlUj5A2Z6Sc1lpxj03icVPr+Y RbcVR3yC+Mts4FCZTi9AvjVLKg85BMjX2K/y+TKplkn1/kD1YGo7b4PDgVb4h6ooCbWg AWYlARLQzXExzGeDabl0IGtXN1A+ZAmoYsZztx75FmhmmyrP3UTygET4JqLay/fXjIAT woHzfn5G3hvCN/D/YREhyLZhRNnBGLE47tjVkwvUHYjsltPeAq3v1ujh+B5wzJbGJv0n W0gMN9TD2IOW/B889YTSpS4tfJ15AzoJVzylE7FvZZDuIqAiz67I14ZwjwKE0ZZQr5Qy bUOw== X-Forwarded-Encrypted: i=1; AJvYcCVBW67XyzFzolREZc9uzo4+A0gaX7dRqxsetzp3znGF1/Yqs7+AkSjSbW2cySfROlpYb78ssqbr2o9s@lists.linux.dev X-Gm-Message-State: AOJu0Yzj0TCmPgIjGw+Yir/R7Obrk4bgQ5lqmMdjLXSmhuvWB68f0Yn3 R92r0m4ypDTyEQ9kO1sH8ssJzzyhCLokPQcz5NxizFWmkAEOo8VNu/9k9rKW4QN38ODhnS2lf/P Kwtk6PQ== X-Google-Smtp-Source: AGHT+IEmHzJuE6dE4nrX5KbKswTjRN4AmO6OE3CoX4/WcyLoexCBYoVpnD8cbgW3LeQsrjZci0AAX2Zf2ag= X-Received: from pjbqd13.prod.google.com ([2002:a17:90b:3ccd:b0:339:e59f:e26]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:1d44:b0:32b:ca6f:1245 with SMTP id 98e67ed59e1d1-33bcf85b2ebmr16254869a91.5.1760975499241; Mon, 20 Oct 2025 08:51:39 -0700 (PDT) Date: Mon, 20 Oct 2025 08:51:37 -0700 In-Reply-To: <176055115910.1528299.15660583671377559341.b4-ty@google.com> Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251012071607.17646-1-shivankg@amd.com> <176055115910.1528299.15660583671377559341.b4-ty@google.com> Message-ID: Subject: Re: [PATCH V3 kvm-x86/gmem 1/2] KVM: guest_memfd: move kvm_gmem_get_index() and use in kvm_gmem_prepare_folio() From: Sean Christopherson To: pbonzini@redhat.com, Shivank Garg Cc: david@redhat.com, kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Wed, Oct 15, 2025, Sean Christopherson wrote: > On Sun, 12 Oct 2025 07:16:06 +0000, Shivank Garg wrote: > > Move kvm_gmem_get_index() to the top of the file so that it can be used > > in kvm_gmem_prepare_folio() to replace the open-coded calculation. > > > > No functional change intended. > > Applied to kvm-x86 gmem, thanks! > > [1/2] KVM: guest_memfd: move kvm_gmem_get_index() and use in kvm_gmem_prepare_folio() > https://github.com/kvm-x86/linux/commit/6cae60a1f507 > [2/2] KVM: guest_memfd: remove redundant gmem variable initialization > https://github.com/kvm-x86/linux/commit/54eb8ea478b1 FYI, I rebased these onto 6.18-rc2 to avoid a silly merge. New hashes: [1/2] KVM: guest_memfd: move kvm_gmem_get_index() and use in kvm_gmem_prepare_folio() https://github.com/kvm-x86/linux/commit/049e560d4f47 [2/2] KVM: guest_memfd: remove redundant gmem variable initialization https://github.com/kvm-x86/linux/commit/3f1078a445d9