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 68099158538 for ; Tue, 11 Feb 2025 01:21:31 +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=1739236892; cv=none; b=krnEOUYg4yvAyENzemK5V8T10kqkNfAXBK1T5MVY5usYT3TTUJh3QI33xFAaDFw0T1qbq46PG8Vx2rVfZz+MHRbZ3pcvUhCEfsoQm/xTS+W0LwuJ0rZEx5yULw0Un6sgYBOF9lhOWc5TIptHXRJ+NMSUj/LWXtRpPTUS/oNmX+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1739236892; c=relaxed/simple; bh=1+CP/0j5H4Ofk/3bPCDzaiFoFTi05OuEcXFurhjh+gQ=; h=Date:In-Reply-To:Mime-Version:Message-ID:Subject:From:To:Cc: Content-Type; b=Q1dqLzA3lJ+EdK1fLzFSQE8uw63S40ruPrI5nWBoI/5Y5ub+wGLyH7GJ1YJINTHCleHKdQ/AZ9rO4B+HfALbw/lf1ymPh5+fc0e9qUtep3g2+ZbqAVu43vdfQQpq6DDlyIiBUyhDJby/SgSM223xZLXTRdbAYy2PrRFXwV8Dmvc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--ackerleytng.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=TWY6QQlA; 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--ackerleytng.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="TWY6QQlA" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2fa32e4044bso6944830a91.0 for ; Mon, 10 Feb 2025 17:21:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1739236891; x=1739841691; darn=vger.kernel.org; h=cc:to:from:subject:message-id:mime-version:in-reply-to:date:from:to :cc:subject:date:message-id:reply-to; bh=KXiJPqLFhZmJ+5uRMCh6GlR02B9jDhDTB8hvWYZ7HM8=; b=TWY6QQlASdjlyix+mh1Kxk/+v7CU9oPD6Jy2DyTHAcGRI605lSEJT0VklbwwrkJx01 jZMEdlah4Lw2tbSmS5istQqyyaDLSzlcAjHAuPWFDbFAT1TbzU1sao/R7sYgy5yehK5w Qqdq0xr2YUbwF7libACRPvAZeTBW39YH3HEC/6g7IeXXJ0vzCBsxXwyqBoTJS8YQJHkA DmHwDpyT/ZyTUHqT51eSj5Ouy3tXubFlmxL4FMq/X7D99cwFaLD6gtgiBzJA1KI5kFj0 n5B1cb2/2eGmykncAz6o+dXcwrq/tZ2gSMs6mKNEMAcmqt3qhdzUNE/Ddjvrp4EngRaR nSWg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739236891; x=1739841691; h=cc:to:from:subject:message-id:mime-version:in-reply-to:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=KXiJPqLFhZmJ+5uRMCh6GlR02B9jDhDTB8hvWYZ7HM8=; b=nofcDWj6mlJ92rsME2M0zNcSjTx22ZKEgMldNBivcqDXVby8wpl8BJiCdNMlDV+Y8C MnyI8sa100UrdM7EBKyjsRHNbAT1F+jq9W2uYqT6fC5uKJP8hn9H3ikPpvrk6i3d3cGR d7nxr3XOOt7ya8+BG5oxNOOAQhcR4Ke89eh8haZamVPaorhrYh8OXi1zaXlZRDNe13oE CzWnWqG76HoRLvYMvFuTKGVtIoRz5uxkIGp5XjxyySxzClJl1CXLQDUJhuBo/biUjybR 0rivvHZ6RXqAWxYLIy+eLymO8PcuDFsYI5vbrKRB+WwO5dwrRbyhe9bXSYtNOQ/bkB1i QwUg== X-Forwarded-Encrypted: i=1; AJvYcCUkASovOyd+cMsH2gb3ul3LWwwyY/7F/nozu4DzqVVDee+dapXKsar5sXPBV77qd1/WarFs7mDAfY9NKYM=@vger.kernel.org X-Gm-Message-State: AOJu0YwXZ7AS8SNrKfOKfHc7eY1jLwje/dd2XF0JeeKxSwk4PoqmyLqL Hpm9VbBU8dMzB9qSXFdfYS48JpMGLwydhW7xfyDcYw0O55XjjuagxO2YYP5T4argeHAtB1U9Nxv m0Ladwyc/fJj9K9TOR6tx0g== X-Google-Smtp-Source: AGHT+IGBXvp6T+YSqhTHXx6VwACzHeW293PgoXt8xsu6MLd7mgjChTS8grNkD+XDcOpNh+EjILD390ILsRlYtcl5Lw== X-Received: from pgbdo12.prod.google.com ([2002:a05:6a02:e8c:b0:ad7:adb7:8c14]) (user=ackerleytng job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:9211:b0:1e8:a374:ced7 with SMTP id adf61e73a8af0-1ee03a5b269mr28538029637.23.1739236890584; Mon, 10 Feb 2025 17:21:30 -0800 (PST) Date: Tue, 11 Feb 2025 01:21:29 +0000 In-Reply-To: (message from Jun Miao on Wed, 30 Oct 2024 17:01:06 +0800) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 Message-ID: Subject: Re: [RFC PATCH 15/39] KVM: guest_memfd: hugetlb: allocate and truncate from hugetlb From: Ackerley Tng To: Jun Miao Cc: tabba@google.com, quic_eberman@quicinc.com, roypat@amazon.co.uk, jgg@nvidia.com, peterx@redhat.com, david@redhat.com, rientjes@google.com, fvdl@google.com, jthoughton@google.com, seanjc@google.com, pbonzini@redhat.com, zhiquan1.li@intel.com, fan.du@intel.com, isaku.yamahata@intel.com, muchun.song@linux.dev, mike.kravetz@oracle.com, erdemaktas@google.com, vannapurve@google.com, qperret@google.com, jhubbard@nvidia.com, willy@infradead.org, shuah@kernel.org, brauner@kernel.org, bfoster@redhat.com, kent.overstreet@linux.dev, pvorel@suse.cz, rppt@kernel.org, richard.weiyang@gmail.com, anup@brainfault.org, haibo1.xu@intel.com, ajones@ventanamicro.com, vkuznets@redhat.com, maciej.wieczor-retman@intel.com, pgonda@google.com, oliver.upton@linux.dev, linux-kernel@vger.kernel.org, linux-mm@kvack.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-fsdevel@kvack.org, jun.miao@intel.com Content-Type: text/plain; charset="UTF-8" Jun Miao writes: > Hi Ackerley, > Due to actual customer requirements(such as ByteDance), I have added > support for NUMA policy based on your foundation. > Standing on the shoulders of giants, please correct me if there is > anyting wrong. > > --- Thanks Jun.miao > > Hi Jun, Thank you for your email and sorry about the delayed reply, haven't had a chance to look at NUMA support. Shivank Garg just posted a series for NUMA mempolicy support [1], which is dependent on mmap() and then mbind(). Does that work for your use case, or must you have mempolicy set up at guest_memfd creation time? Ackerley [1] https://lore.kernel.org/all/20250210063227.41125-1-shivankg@amd.com/T/