From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.201]) (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 E415335B62F for ; Mon, 13 Apr 2026 21:08:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776114525; cv=none; b=bmZOojanmSOwsFlChAaq6GjlCuOMI5+sJwnf63SA1zODbqMbM5THD02Y/3yYPcIttXl3b97QVaDTpD/GtaZg3qtotPKXdEqATe54P0EXNa7PysDUxJoGqZjgD7nDQlOrIHgD+GWcb8asWbFgk2PAyQHtuduFu3XeKrZS0A8p91s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1776114525; c=relaxed/simple; bh=uzaVRNE1m2XUCN2Kv9goPe8pl1LVJCme+29/B83c9pY=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=kb3tpTyeLGNp3TDp6S40OCFIyFwml82uUJUR75tlnUZbi4yFgu9UCqXLDzh9CLlZrDAjOYrQxtXUXhAqHGYM8Pajk+JDeNIHUuDtlszEXwaf8bne/ez/Zy/weOvZFC1rXWI2s933Zzc1K+/MQtA9P4rm2percCvSefjZKS9kNZA= 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=OObYOkUh; arc=none smtp.client-ip=209.85.214.201 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="OObYOkUh" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2b2ec17dc21so19819895ad.2 for ; Mon, 13 Apr 2026 14:08:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1776114523; x=1776719323; 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=kdsNO9c2Q5NZsN7hZZ5BDljOzEMaKqWGBnMOCrBmEmM=; b=OObYOkUhBdlAjqmIlDRIKBc4m/mXOHDYOwJsS9Ip566cebqPA8Yr1S8QlsbgCjpWjz npfZ+tw7NZ2RPdhwWehBG/5a5TiidwnmTDSz6fxFXP422ZzEioLHXJsuZffiFf6ywZD2 gZLIfzLgX3iyJpbTyX8v8q/9KDlzVXoNlg4q9jn/W8dgW7eOOsy4+Rusi5rL+avtpqKa j+E6oKfpD894oXoWAqiIqP/02Lg45MGqD4w1e+U0qJuzcMdZA6lKYt+IwvxxwjLXzg1r rCK/2WUM+Qij8tFwuG+jWb8H/M83YnxldKEpPtf0ffrVPnK9RfWk4UNuNzXv9/oDW+SU B3NQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1776114523; x=1776719323; 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=kdsNO9c2Q5NZsN7hZZ5BDljOzEMaKqWGBnMOCrBmEmM=; b=cW2tOWcpUBdIgYpogQ+RLxZnThWh4R+gjyM64KokXfeL3f0HdujC2Wj9R0nteHAexP H2UamVMALXLVJjtQImskF4kHC7LuZyAqalA2sRAY2Ml5mi1u2fdMQb/kBahSvv2JLl2q kOxlKO7055Hujg1pXJ28A1w5A6zpO7F8zuiIfC1M244FgxPDZUu1atebGPO8VXPTrAtm D3EkxWFfswCcMHwKBbcGBUalGb3y0eMcvfdCxg8HVFCL+eNfQX6sieAioeOH/TM5Z6UV j3QS3YQZX2Ke5kBHDOgp/utIelzzBchYrjHHkfNx+EK1+yzbHLWeAQyCAfFFXWgUb2bl atSQ== X-Forwarded-Encrypted: i=1; AFNElJ/dmIOgCOaGl26f3v6NH4Cpcl4uJZZrzuvP85QsWYz5gqnEGwddoHWG5BQ7voAqKwC5VQdBn6YzDNSCD28903A=@vger.kernel.org X-Gm-Message-State: AOJu0YzgawS6Yb1QaZGNyRYjPoUpy7HslG/L7REV/0shkoZYxK7OWx+/ iWeTQ9L3OVdUJlHz9tPECJ/ex86AdFdKQT6y/goc5mWZU7b/i4kUgAfHI2J3qZNtXoFJZAejGOv rxeIzHw== X-Received: from pfwz16.prod.google.com ([2002:a05:6a00:1d90:b0:824:a65c:adf]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a21:3384:b0:398:aea8:a9bc with SMTP id adf61e73a8af0-39fe3d0e025mr17171043637.18.1776114522737; Mon, 13 Apr 2026 14:08:42 -0700 (PDT) Date: Mon, 13 Apr 2026 14:08:41 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260408-memory-failure-mf-delayed-fix-rfc-v3-v3-0-718f45eb7c75@google.com> <20260408-memory-failure-mf-delayed-fix-rfc-v3-v3-6-718f45eb7c75@google.com> Message-ID: Subject: Re: [PATCH RFC v3 6/7] KVM: selftests: Add memory failure tests in guest_memfd_test From: Sean Christopherson To: Ackerley Tng Cc: Lisa Wang , Miaohe Lin , Naoya Horiguchi , Andrew Morton , Paolo Bonzini , Shuah Khan , Hugh Dickins , Baolin Wang , David Hildenbrand , Lorenzo Stoakes , "Liam R. Howlett" , Vlastimil Babka , Mike Rapoport , Suren Baghdasaryan , Michal Hocko , linux-mm@kvack.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, rientjes@google.com, vannapurve@google.com, michael.roth@amd.com, jiaqiyan@google.com, tabba@google.com, dave.hansen@linux.intel.com Content-Type: text/plain; charset="us-ascii" On Mon, Apr 13, 2026, Ackerley Tng wrote: > Lisa Wang writes: > > > > > [...snip...] > > > > tools/testing/selftests/kvm/guest_memfd_test.c | 168 +++++++++++++++++++++++++ > > 1 file changed, 168 insertions(+) > > > > Hey Sean, what do you think of adding even more tests to > guest_memfd_test.c? Would you prefer adding memory failure tests > somewhere else? I recall you mentioning something about there being too > many tests in guest_memfd_test.c already. Hmm, we're definitely accumulating a lot of individual testcases, but up until this one, they're all quite small and so there hasn't been much motiviation to split up guest_memfd_test. But this one's quite the chonker, so I'd say yeah, put the memory failure stuff in it's own test, especially since testing the debugfs path will require elevated permissions for many environments.