From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.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 7D68B2356BE for ; Mon, 20 Oct 2025 15:51:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760975514; cv=none; b=HEsrf4Pa0whKBypjs2nZMkOem7lvFhpaxWisf2JwS3VO1N9ojoDaxqWfrUu302EJtdCXH7DuIfh7aehx1DCnDfQBfgka4of/ozRYvh4H1onu608etUXSB8OuFwZpXzted79ie26NgeLKz+b5zXc6ko7oSaY6rB+xx7UTH30tGiI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1760975514; c=relaxed/simple; bh=oz4rbRabZgNqmAFUctyfIcECGNy5RKvN0Ppphwk3EPc=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=fY3aIA/5YwYl2b0rhCK3Mpp8ACaEzVnLgUjlMbxPYI9+v99yoQrBreVu8RwLPDML5zu+5OCXL7EGcYhgnH+d5spCSlh+inuo/3DekZJ+36CA2cDLsgqJLy0+X+A5CAcZt7L5UPyFeSwpo3uOho65ZUlTkQEpcl86gFARng7M4Ow= 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=LKfmWVLF; arc=none smtp.client-ip=209.85.216.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--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="LKfmWVLF" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-33bb3b235ebso8809159a91.1 for ; Mon, 20 Oct 2025 08:51:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1760975513; x=1761580313; 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=ToAummVDahhfvKCzkp0wJNL/Qv1mvIGVT9i3zLaA4is=; b=LKfmWVLFZNtV/m6IaHkWxfFmY9o1LqlXd0NhpMcTuQPWXHFgI7WGwD156fWwIfY7tM GRN3ujSREYkOm86Zf4VBf8mcKt1ldusGxYIR+nZvFvtxCWibI8LXkfwRDcKXLMPjvsgx pqEKpzLhvLE0hN1puRbd6XximZJGbkZpxi269RsF0Euz+nQ0SdMDGT4IAOvcgW3OB/eL +RGQP1dTImtyvbFOEaCB0+TE9woy9eOgnVo+OTYVL0yMRMaQu33H0nUW8LIGLgWhTXzo ZizLweTK5T5fPRMxNb8yuwqjxA9U6324vtewmAMS+ilkkByxb7n44QV6I6AWMZzDusXu d1TA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1760975513; x=1761580313; 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=ToAummVDahhfvKCzkp0wJNL/Qv1mvIGVT9i3zLaA4is=; b=h/SUTJaHxzfsa9B9yy3K2lG9MbP2K5P9C/e1pleZU92B+GhTwdZo0KmQ8Dbzwi1bAj wNOBsgTTPUeLNdTOCJZI6IC+GPH8PS0Cj5PT+x5gz9aGjl3tliG8x6kdxQZouULhNRpg AxONJlUlNDyysjD9SRh1MsVtzuS2oU+yiaP4LHJsEyoCF78ftTj7HTdRCpSTqtJ94S2B x53D3ZPzE824etoWvB5Ct/A1AuWxjtm7CSYYbT4m38TNgcmKwW2V9BZ+QLtNpnmJCdmB TaCSAlq5ZEc0q0l7/jR+XyzrqIyEL2kIDSYZuaLev1reCMhIKlVWPvdJNmnuge8NZWeB WBVg== X-Gm-Message-State: AOJu0Yzbr381fSGjeb2EsYBFxTT0S1l49hI86/aM1neVQHMI3wUNlpdI PEl9gOAdoBsPs6nRoQNwre15Kb24r1Rs0dYV8X3RmUcoyRz/5kilfhIoqOXD89WVEqlUiRe33DN AReqTCQ== X-Google-Smtp-Source: AGHT+IGARn5icvNN9j18LGHQOhvizTfEF6rFXz09j/YBOwsyeY7uOBIzpTPtLr+vUY434eU5cL21Mst5QKc= X-Received: from pjyd11.prod.google.com ([2002:a17:90a:dfcb:b0:33d:79bb:9fd5]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:90b:3ec1:b0:32e:753d:76da with SMTP id 98e67ed59e1d1-33bcf8fa157mr17983340a91.20.1760975512846; Mon, 20 Oct 2025 08:51:52 -0700 (PDT) Date: Mon, 20 Oct 2025 08:51:51 -0700 In-Reply-To: <176055116678.1528393.4651749265873372559.b4-ty@google.com> Precedence: bulk X-Mailing-List: kvm@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20251004030210.49080-1-pedrodemargomes@gmail.com> <176055116678.1528393.4651749265873372559.b4-ty@google.com> Message-ID: Subject: Re: [PATCH] KVM: use folio_nr_pages() instead of shift operation From: Sean Christopherson To: Paolo Bonzini , Pedro Demarchi Gomes Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Wed, Oct 15, 2025, Sean Christopherson wrote: > On Sat, 04 Oct 2025 00:02:10 -0300, Pedro Demarchi Gomes wrote: > > folio_nr_pages() is a faster helper function to get the number of pages when > > NR_PAGES_IN_LARGE_FOLIO is enabled. > > Applied to kvm-x86 gmem, thanks! > > [1/1] KVM: use folio_nr_pages() instead of shift operation > https://github.com/kvm-x86/linux/commit/fa492ac7fb04 FYI, I rebased this onto 6.18-rc2 to avoid a silly merge. New hash: [1/1] KVM: guest_memfd: use folio_nr_pages() instead of shift operation https://github.com/kvm-x86/linux/commit/765fcd7c0753