From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f200.google.com (mail-pf1-f200.google.com [209.85.210.200]) (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 F0EC838C438 for ; Fri, 21 Aug 2026 12:30:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.200 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787315412; cv=none; b=HWSCRFiJM1pXyLGlJyoCqT3i0ucu+HYVeTD0mK/lYg1lT2L/FLh4U/wBuerdV9+tDCL/Fi/I83Ijguqvt4evSxN4kP7mCIPpQssM1D7K2PoGdpnwGNdMrNF/Xdpqw1CK7HmL8ePTNvBLTeLG71dYMuNx95xlXhj3lobESXU2FLw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1787315412; c=relaxed/simple; bh=f6YWX4JaKHfoxBtRZia+JZbw071klqQdJimBMOZqknM=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=crmrigAbsI9FjEWQmKsnqQxL7ph2YGMrNvU/owv3e3XUcLSx5jFbRGPKNEBOPW8j33u0foVB1xIFeWemqLh6tA++O4FkXKPfI6pJKZcFQwWxlTWntqZyFndIuY1dNkNhAfdfDDUONgPOHOH6z4+L95bu8l5iaiDy0cmBYnZQ42U= 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=LPTJWPAK; arc=none smtp.client-ip=209.85.210.200 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="LPTJWPAK" Received: by mail-pf1-f200.google.com with SMTP id d2e1a72fcca58-84f0d3ab2f4so704880b3a.1 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=vger.kernel.org; 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=LPTJWPAKkvLWrMreDySEm3inMdKsS3pcHQH8aHNFS9JsrDYzcTdGw+23vixaCau+l0 YDqng1awjS+UwuhQkZ6Q6P2vHzZ3pW6OmNXcbqKnnIIYL0SgF3PmF423YiA7R4oaMvIE BFI7cGLKqcQBapjmQgj2HXU1WK2xMwGK3uxn6VER8Ef7tEsrraP/Nb9YsGkGUGBW5cjF 6zPX8THNYgfjQMsH8401adc11mJUZHnxbr8YEa+AchdbtgGyXpRYLvIFRYOm5AwEsziX 4QCGvaZHuIZXNwd8syCIYlc7+J+kwUkX4OQlh4txDJyBwRvIY1mLUOqZiOEOVgtv6J2L 0wVA== 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=L/9UHlh6QJoVMm7E1R74/yBXZZPMwrfPUo6X+pPwnGTBuLESfFIW0o0MQHKg8+GIcu rHQNscUPyeopCCi+KNHuzF6eRkhcoS8s5QgBjs6GkYu2Qvntrrl/LMjf4og0KiZhYrTX RGuwi8RnpfIe/l8u+VSNHv6g3gNBy0+jBWD17I2v7NNAttU/rBY3rgshY1gvLGfvVwRe Z8N7rtF4zaEEFZUOSGDwDpeaL58aNInmTcL+XDCHoOoX0sVl3UfeiQTXfS5XF15ias5t PyftZAQcoceRiD1BuWtFX2AsS1ww2Ks4lyafXXKt0yRE9Nz2g7ojIUIraAt2wpRgWaBY QhbQ== X-Forwarded-Encrypted: i=1; AHgh+RrQdNkgV0+7krmgk6sNv/N+Xfl396cvka6tG9DldPdaPpttZpOBNmCeAYlNSP3I6cMqDRu022D5T3MtovA=@vger.kernel.org X-Gm-Message-State: AFuF++mPzuqopGbkjfgh1yvtG42yXsCx2WG25wmDQWEyvrizuuVqpodZ NKqblhpLX+4LrYGeE5rLWnDW3CWnXWzGzbP0jv1gTgCse6feuqo6pAWrNHf6JTQRl9IAR5sh0iP cEwik9w== 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-kernel@vger.kernel.org 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.