From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 13AEB2C027A for ; Mon, 17 Nov 2025 19:39:15 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763408357; cv=none; b=IRGTKYJNS2sqPflW8gPtQAZ4RNZqlsyUOo1xaMOuYrnlPiH6/3dfKZxvxWaYWtFsoTTG1rWT2qvRr25AqKUCGXmB+4MqkdXqxMsnzXUMML7NZw7LNyp+rnG7MeJSjlZuwQS2EWEcE5wnHb/isUKyQS+wMuA+ObrH6Lbu1ljyFqk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763408357; c=relaxed/simple; bh=29tvvpCD+qGhy6fyzBHvXQq3vnNQo5h2KbSk1H50wjQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Q4slfAFhve5m0lohDcgeKZmR01HWlqRF8YieFtYbkI+IF6ryCVnJSdVHC7K3Mq3oH500Ha1jOgVGmkMZMXE+WpU0nvqAHT1pCoVXXucjBzBji9R6qb78firJynhmsjsa7pC1D4Dgf0jnTDAYznkPDLcVe62CnMyH3OAtTSpymfU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=fHRYNkvo; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b=geEMxhT6; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="fHRYNkvo"; dkim=pass (2048-bit key) header.d=redhat.com header.i=@redhat.com header.b="geEMxhT6" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1763408354; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=K36xwmi8QzbZYxYPWk/InVL39QSCuciwcJPm/PdZki0=; b=fHRYNkvovEOwI19aLegWFDshRutfapMMWpr+zNIKsZMAEDmBKi0+Wzu5v/FBTAJ5PnB+g5 Uo4G2LzV0/F4Bk4gQpZFgT/npYU92dB+7mj/lqanh8Kcq2wpDsTD0pemGeJRUlWu/53Bl3 OrrI7OleWh88XM10CZhxwwueZnE4/8I= Received: from mail-qv1-f70.google.com (mail-qv1-f70.google.com [209.85.219.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-564-4eeEDHBJOgmyj4CVYD5JOw-1; Mon, 17 Nov 2025 14:39:11 -0500 X-MC-Unique: 4eeEDHBJOgmyj4CVYD5JOw-1 X-Mimecast-MFC-AGG-ID: 4eeEDHBJOgmyj4CVYD5JOw_1763408351 Received: by mail-qv1-f70.google.com with SMTP id 6a1803df08f44-880501dcc67so160309696d6.3 for ; Mon, 17 Nov 2025 11:39:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=google; t=1763408351; x=1764013151; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=K36xwmi8QzbZYxYPWk/InVL39QSCuciwcJPm/PdZki0=; b=geEMxhT6OC9PKaHjaYOkGjoxff60Ds5axjcfCP5UxrqV/LYE60W8sffaN3UKg0mRWZ mB7a4hNuIdAenpAvNxobzQ0/fo7qabyj8K73rHE2xwK4vDz+rq1ri67wV81EYSyca40v RmKMKKp+c/rhK4tUuA4qIPTGcAwv2oueXK/cGCujbsY3vjWrRUBR0tyvBPn+YBPFoWrH dfQ4DVsHcGp9X0/hQ0OZT4SJ0DRBmwURbdPQEFnUuef1ldAU+9wLRDyF71rr7k3zbTla Zbi4HApC5h8+whMNHHQSR8qbrTvJWPiRYAIuFjP2GTtLgpOVWmh3/kdcoA/fMOZ+s5Ph gZRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763408351; x=1764013151; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-gg:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=K36xwmi8QzbZYxYPWk/InVL39QSCuciwcJPm/PdZki0=; b=N/kTtNUstP/w42NjbZ+f0AcA3zQNqu3tN+MI4/ez0uXzCg0N8XPn1Rj54bPK2ROkg8 TJKkjSZV8erHtg2/bKt3dnxV1aX/F/0dqulTkeGOejMctc7R9jGhoUdEQtGO0XivV8wE KfYbJSl979Q14cxXoSnKIu7oL8OGDcw7GORJzTUewvm5aUo1Bk+Nm5eN+vunCzL57Sny NFOInU3H27TKcDnYPmXTUhR59O5mtDKLP86cHkQXOEFp228lNCBRgvAJD/bgfft6QVJR nU/xrexGB7wJMWD7Mk7xXACrJT90X3LzNJ8B/fjv6wj4dmuARxSqLzWIQ8mR+0YfbWpI o0+g== X-Forwarded-Encrypted: i=1; AJvYcCXUwz4DnxxBXGTZs+LyRxj4M2hJ1SwkfQoIAQVjysQXbjQqLmiaTVcunE3gHB6twcj1x8Wf0NEgW71LVwQ=@vger.kernel.org X-Gm-Message-State: AOJu0Yw2L8I3TgMMKkChGCeBDp4pO8/CXUldIJN82B3E7yT9Vyq9TnRg 2EvRWyEEUNUS8ieccwGqsXWK+h8svNKOUMLaUkA7/DC0EiUu27ONu2IkakUkSgU/9Ea8GI1kNrt IPlRrw1xc/1w96A2+c4iRxQbPvyILCVDImnqvLCNS4I22hhgIT/ARNPfc0KDc4qrkYQ== X-Gm-Gg: ASbGncsjBNgT1Jrbay9YHRDpnaxWJne+GYkd/CCIpa88AFB79yzY/4Vj9qAirceqv/f exsyBApNFjR6RtjwT77tXz681i9gpXVTDSHD3LFbsds1Hs5NeZ7G/Le6j7Uhy8qq5LK9p/jCJop 9cFRIRi+b0dRYM50C7NBVRgdipOgUWU0KIYmANJ2OIGaYE9wpBTJjQt6H0ehqhWPkSgNMKWGLNl Tl2RLhr3Bz0t9AmabQYqlhkEPkmSnj5u/9uRIWaKc1c4bRpxBfbO56xGK7S+aVZ4bKCZpoIcj1V MYh0RZoTOEKrMC7lgqxueCTterHWoF09wj33qiMSaRA/R0rxTS4IxvzgYxxUEmXjtMdcqIf0YSx HXQ== X-Received: by 2002:a05:6214:c28:b0:802:a79d:3132 with SMTP id 6a1803df08f44-8829267c1c6mr192021016d6.47.1763408351054; Mon, 17 Nov 2025 11:39:11 -0800 (PST) X-Google-Smtp-Source: AGHT+IGdehJMTGS035Eb/OzG7cG5rRd+07wCiKuKE4YM34HxqUOjomc6mUNHGC8OLoiF8h+l5gT9Zw== X-Received: by 2002:a05:6214:c28:b0:802:a79d:3132 with SMTP id 6a1803df08f44-8829267c1c6mr192020686d6.47.1763408350619; Mon, 17 Nov 2025 11:39:10 -0800 (PST) Received: from x1.local ([142.188.210.50]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8828658ae99sm97099586d6.48.2025.11.17.11.39.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 17 Nov 2025 11:39:10 -0800 (PST) Date: Mon, 17 Nov 2025 14:39:06 -0500 From: Peter Xu To: Nikita Kalyazin Cc: Mike Rapoport , linux-mm@kvack.org, Andrea Arcangeli , Andrew Morton , Baolin Wang , David Hildenbrand , Hugh Dickins , "Liam R. Howlett" , Lorenzo Stoakes , Michal Hocko , Paolo Bonzini , Sean Christopherson , Shuah Khan , Suren Baghdasaryan , Vlastimil Babka , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org Subject: Re: [RFC PATCH 0/4] mm, kvm: add guest_memfd support for uffd minor faults Message-ID: References: <20251117114631.2029447-1-rppt@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: On Mon, Nov 17, 2025 at 05:55:46PM +0000, Nikita Kalyazin wrote: > In our use case, Firecracker snapshot-restore using UFFD [1], we will use > UFFD minor/continue to respond to guest_memfd faults in user mappings > primarily due to VMM accesses that are required for PV (virtio) device > emulation and also KVM accesses when decoding MMIO operations on x86. I'm curious if firecracker plans to support live snapshot save. When with something like ioctls_supported flags, guest-memfd can declare support for wr-protect support easily too, and synchronous userfaultfd wr-protect traps will be an efficient way to do live save. I'm guessing it's not an immediate demand now or it would have been asked already supporting both MINOR and WP, but I just want to raise this question. Qemu already supports live snapshot save, so it'll always be good gmem can also support wp at some point, but it can be done later too. Thanks, -- Peter Xu