From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f197.google.com (mail-pf1-f197.google.com [209.85.210.197]) (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 6DC8F1DDC35 for ; Fri, 21 Aug 2026 12:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.197 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787315411; cv=none; b=RdJNm0at5f9cLoFaspjKiLZ+2m6A4eOTlb1GDsjDRS6YIedjEGslVQgUK4zdxOCafX+x2VzAbaKn2P/cwNO9RHLe1IApID697s0jGcD1VefOVBFSACjjUobRb6b39rP7+P6ns0G/Aee6qVusoHkmdt6bFncY/dtgsMSp8FALuNE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787315411; c=relaxed/simple; bh=f6YWX4JaKHfoxBtRZia+JZbw071klqQdJimBMOZqknM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=OKO6Fk2HC+bE0tFJTbepgKp/tnvH4Bi7RXN+r2bsZ1g3hOqeQNNVARCc69XoIt2pk0kf1oKtXlUPRszvcVqCdNgNB0viKl2t9mhmGDiAmERbtbBrVp3IzMW9v7lhzTRrocAlnwRJf+rrCZFZIFgGPFvBEM7WKJB3DuEmUS/jw/M= 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=X0X6s09M; arc=none smtp.client-ip=209.85.210.197 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="X0X6s09M" Received: by mail-pf1-f197.google.com with SMTP id d2e1a72fcca58-848860def2cso1015149b3a.2 for ; Fri, 21 Aug 2026 05:30:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1787315410; x=1787920210; darn=lists.linux.dev; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=C0TDZ3//ZKM374BdreK4yr9CabYhqfPGunU2baHmMPE=; b=X0X6s09MXA7u49rKcPElg6xgUY78yjr9QyBVT9WJCKudi9McsbBKoTxr+W1NzxObSU WraP83axBHcYQozDEfb6BpwJpUPzYrJglLeLmG5tMi0N03oX1IqP4KWq1hgC//R5gSD/ 1uTQE8kUXTf6gpQrKVZZmMaHZbROeRf4Si5e2bWlDxZmYueAku+nSgKiy5oBVoTX0UN9 NtmU9Ynh4N7el9/bJa7rD0WXUwxJ6e6fyEXwYmVIWNZYiO8TxjgiwXOfOPd/KIcE4KQv 5yaRDnBQ990qWkEIrWdEeaCHFhXluEr+RYxbNQb3RfsTypd1FLKxZ6rQmVzIpYCypoUw vJ6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1787315410; x=1787920210; h=content-type: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:content-type; bh=C0TDZ3//ZKM374BdreK4yr9CabYhqfPGunU2baHmMPE=; b=i1MSY0Uj0BVnyOBXBybklQ1thAbDmXBtqvRuR6AZyFb7LCA4qheytikzIwCnrBljrT ZKBEbl/tITyW2Jqt/0WppZaXV6RwOZ3/DPNn5Ka4c6+/mbsaYCakAqI/lcb7if+Qy3Hp t4RSbaV1iIFx3xtVAE7OUjTGaU2n7DynlA0tyQqhQzg+iBQFRkEIMAIcO9dlxTmJDHOx kvLgdku34VCfN7sk/K/CYYKAygG36siDBxSy3dUO13s0oTPtJSQrzqos4o94fH74AuG1 rOhRKDA76OPk9bTFpkg7WfgmFtV8T26vyomTms3q89RJiJkhDFnk/WgGpo1iyyKVWj7v tEhA== X-Forwarded-Encrypted: i=1; AHgh+Roea53xWYv4xaFFsFLmCs0r2TgVAU/g/jlnOOKSdmnB8+HrTqMl05LjTMKOnVSKm/x53s56+dCONCFE@lists.linux.dev X-Gm-Message-State: AFuF++mZM51CYIiRD5qeV1acg7jlMzWz9k5BUisVXF+ujFSP7pPpfBV6 v19RKvH9YSD3gTB4+Z7wD4hbqo7q3+myeCuZZA6L7SmyN5kT3Aq/xyUpstqrIN2SRyUGCCG3IV6 92s+mmg== X-Received: from pgly12.prod.google.com ([2002:a63:180c:0:b0:cb5:f989:9b3e]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a00:ab03:b0:847:8acd:747c with SMTP id d2e1a72fcca58-851fa01e93fmr11460030b3a.13.1787315408882; Fri, 21 Aug 2026 05:30:08 -0700 (PDT) Date: Fri, 21 Aug 2026 05:30:07 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-coco@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260807-gmem-inplace-conversion-v10-0-2fc18ee6d3ba@google.com> <20260807-gmem-inplace-conversion-v10-40-2fc18ee6d3ba@google.com> Message-ID: Subject: Re: [PATCH v10 40/41] KVM: selftests: Update private_mem_conversions_test to mmap() guest_memfd From: Sean Christopherson To: Xiaoyao Li Cc: ackerleytng@google.com, aik@amd.com, andrew.jones@linux.dev, binbin.wu@linux.intel.com, brauner@kernel.org, chao.p.peng@linux.intel.com, david@kernel.org, jmattson@google.com, jthoughton@google.com, michael.roth@amd.com, oupton@kernel.org, pankaj.gupta@amd.com, qperret@google.com, rick.p.edgecombe@intel.com, rientjes@google.com, shivankg@amd.com, steven.price@arm.com, tabba@google.com, willy@infradead.org, wyihan@google.com, yan.y.zhao@intel.com, forkloop@google.com, pratyush@kernel.org, suzuki.poulose@arm.com, aneesh.kumar@kernel.org, liam@infradead.org, Paolo Bonzini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , x86@kernel.org, "H. Peter Anvin" , Steven Rostedt , Masami Hiramatsu , Mathieu Desnoyers , Jonathan Corbet , Shuah Khan , Shuah Khan , Vishal Annapurve , Andrew Morton , Chris Li , Kairui Song , Kemeng Shi , Nhat Pham , Barry Song , Axel Rasmussen , Yuanchu Xie , Wei Xu , Youngjun Park , Qi Zheng , Shakeel Butt , Kiryl Shutsemau , Baoquan He , Jason Gunthorpe , John Hubbard , Peter Xu , tarunsahu@google.com, Vlastimil Babka , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev Content-Type: text/plain; charset="us-ascii" On Fri, Aug 21, 2026, Xiaoyao Li wrote: > On 8/8/2026 5:53 AM, Ackerley Tng via B4 Relay wrote: > > From: Ackerley Tng > > > > Update the private memory conversions selftest to also test conversions > > that are done "in-place" via per-guest_memfd memory attributes. In-place > > conversions require the host to be able to mmap() the guest_memfd so that > > the host and guest can share the same backing physical memory. > > > > This includes several updates, that are conditioned on the system > > supporting per-guest_memfd attributes (kvm_has_gmem_attributes): > > > > 1. Set up guest_memfd requesting MMAP and INIT_SHARED. > > If I understand correctly, even with in-place gmem, the model that shared > memory comes from the userspace_addr and private memory comes from gmem can > still work without passing GUEST_MEMFD_FLAG_MMAP flag. > > Since this model is not prohibited by KVM. I think we should keep the > testcase for this model to ensure test coverage? +1. Deprecated doesn't mean unsupported.