From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 83C28CD98C7 for ; Thu, 11 Jun 2026 19:09:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:Cc:To:From:Subject:Message-ID: References:Mime-Version:In-Reply-To:Date:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=iJ9vzBYW9OXFtp4VJMABFS1zv+lVoJsNTMhjDAQWIrw=; b=3sMnXoM1mntEt4v/40Kj1C8FYn HG9B3VM+oSZpT8PxMNoe6I+73WwxFuXPeVS9cNXHQqGSEux075kq1l028VEpiEkhjlzeI4C0AUv0b FDDpO4JVjCMYnJoq6ZhDRsp05ILnZ2f8xohrnmtzVqt+Usn+RuR+wShk03Ag44+JIQUv+d6ltPhcu DXxKzgYuyPMX1HdkB3GcKs6CxL97x1NzDBJ2zK7pwwdoyIkYjI+03Gc4mmIuEJbzhKKD7XfHLZs2S YoWrpU4jYDaqK5dqksLUIMKE0LxKsNVNv1rXnQahPxWF9/jww41dq9Ig6I4n4ga6ya0K2vtVnzWmb CIxRenNA==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.99.1 #2 (Red Hat Linux)) id 1wXklz-00000009wLj-0DdF; Thu, 11 Jun 2026 19:09:03 +0000 Received: from mail-pl1-x64a.google.com ([2607:f8b0:4864:20::64a]) by bombadil.infradead.org with esmtps (Exim 4.99.1 #2 (Red Hat Linux)) id 1wXklw-00000009wLQ-1d5t for kvm-riscv@lists.infradead.org; Thu, 11 Jun 2026 19:09:01 +0000 Received: by mail-pl1-x64a.google.com with SMTP id d9443c01a7336-2bfdd99f6b7so2884165ad.0 for ; Thu, 11 Jun 2026 12:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781204939; x=1781809739; darn=lists.infradead.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=6cgKILDAticaRzulsJIYH9W464IRS0YMv9PGXESfrWA=; b=BPhYJPi3LZG4cMwZzzrphSO6I7+mOi4FPFaT/WSYfHQ4clcc96+M0Be/CVmtfTqfNI IHdr1BTnPEvggb1B6RwIKw6S6wvXsA3sE7P2U+7F+UQ13nPhw4CrFSh+Gn5APyHxoSPl ii8dZKkHsymr+TU02BJAnd7nigghKcG5nEkyQ6VwWM+EOZ64bVRYiPPDkNpKdKmTJAn0 XNEzBUs1jqVlRccQUMx2vs6In1o/i0TCABz/U3ZSKQDSCTy1fOic2uQgeW6wY3pJOcuN mcmTzf5bW20z0RZdU5F6uMFdogk3IepBoTHbKa8VYBCY1xwAYSrepdYj8KZgRb5/jPsp qMCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781204939; x=1781809739; 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=6cgKILDAticaRzulsJIYH9W464IRS0YMv9PGXESfrWA=; b=mObEKSCu46piby1i8VrbSTdPmMpdSi+X3wqYJ1rS/TC38/3tUJLWJ3YvogsUc3puiQ zk/Y01h/mmBI+bIUZeUmsKg4Oqg4Nb3GPLoFPV3jVsPQYB3Ke9P6WkCne25k2eppPW7O GK8V7Y2dUIyfJ7UCc1CE990sYS1L6Eb6fWSy69HiwL5Km5mrznawOnzHg4cmVCv9yOFh P9h/70ZTBLTc4iiygh2e7T1kIcXbOCWHryDE9VQ/h+pJMQuS6br+EXICI+fNbKsavCS3 xR3FTi4tc2jHLJtKUT7K7boTBX/YqpnnWjrH0W5e5XATuQb5Aw+6tyn4m99gdxk7ChCi qV1Q== X-Forwarded-Encrypted: i=1; AFNElJ8tzhmp+z6l2X9c/Ey97QFaJ6gs5B1+85aKn4Cn7glYc5C2nIWyTeePuexDt+jhSrIZe4/+xZK5Ev4=@lists.infradead.org X-Gm-Message-State: AOJu0YwphX3Pa+kcfBLX9mHibwXe++Ws0wuSJ8OHzkoaFtt+N39zRUUb MlpszYVsW4wjZnbLg8yMx2lbXxCUYXItJfksta8kScz7O2CmA9bcBPh8lbQKUZAh+OKL1Yh9GdS C4goS3Q== X-Received: from plkn7.prod.google.com ([2002:a17:902:6a87:b0:2bf:10b7:41d7]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:cccd:b0:2c0:c262:b917 with SMTP id d9443c01a7336-2c2f0059f43mr46929825ad.5.1781204938424; Thu, 11 Jun 2026 12:08:58 -0700 (PDT) Date: Thu, 11 Jun 2026 12:08:57 -0700 In-Reply-To: Mime-Version: 1.0 References: <20260331194202.1722082-1-vipinsh@google.com> <20260331194202.1722082-2-vipinsh@google.com> Message-ID: Subject: Re: [PATCH v4 1/9] KVM: selftest: Create KVM selftest runner From: Sean Christopherson To: Ackerley Tng Cc: Vipin Sharma , kvm@vger.kernel.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, pbonzini@redhat.com, borntraeger@linux.ibm.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com, anup@brainfault.org, atish.patra@linux.dev, zhaotianrui@loongson.cn, maobibo@loongson.cn, chenhuacai@kernel.org, maz@kernel.org, oliver.upton@linux.dev, ajones@ventanamicro.com X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.9.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20260611_120900_427845_EA9B1376 X-CRM114-Status: UNSURE ( 8.93 ) X-CRM114-Notice: Please train this message. X-BeenThere: kvm-riscv@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kvm-riscv" Errors-To: kvm-riscv-bounces+kvm-riscv=archiver.kernel.org@lists.infradead.org On Wed, Jun 10, 2026, Ackerley Tng wrote: > Vipin Sharma writes: > My (future) use case is that with hugepages, I want to run something > like > > ./guest_memfd_test --order=0 > ./guest_memfd_test --order=9 > ./guest_memfd_test --order=18 > > And 0, 9 and 18 are the supported HugeTLB orders on the machine being > tested. I'd like to iterate over supported HugeTLB orders at runner > runtime instead of at build time. No. The right way to handle this is to define testcases for the "interesting" sizes, and then rely on the test itself to SKIP if the size is unsupported. This is no different than a test that requires EPT, or nested VMX, or nested SVM, etc. -- kvm-riscv mailing list kvm-riscv@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kvm-riscv From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f202.google.com (mail-pl1-f202.google.com [209.85.214.202]) (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 48E4442B733 for ; Thu, 11 Jun 2026 19:08:59 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781204940; cv=none; b=cBAhtFflOFCiYeILMk8BaNwRv5Qqkzz8YrUDshsvYRiIyWSTN5OnI0T9y/HSA/aTb4XPIvocZMHH8DPoBxmyViJiGPvMXQMY/QCKNd3uG8WjnLwinCA8EPb3jHaXXbtlB6ZzoCOAoGbBCutZFyeP64BP4rJ2fHvriFUabDlzKUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1781204940; c=relaxed/simple; bh=fhPyyRBuJXO+c1O4aIoSvv3vaX+DNXmCRBVMOMQ54mg=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Y6MmWbq/H1IcFZFTICdyRrhj62V7228puVNjkHHaIoKxxNBpR9iHfgcNHWG5UwGhR3KgvgX9rdYpnlF/vszRFONOhWZIVc4N9Dy1AtjhbQx9wCFrLVyiq87vvLPsZRQk/Cf0P9jVNt8mcsPBxXjVmgVHfqpaGRdI7JZ3sgyCqws= 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=qou05zrY; arc=none smtp.client-ip=209.85.214.202 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="qou05zrY" Received: by mail-pl1-f202.google.com with SMTP id d9443c01a7336-2bfdd99f6b7so2884205ad.0 for ; Thu, 11 Jun 2026 12:08:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1781204939; x=1781809739; darn=lists.linux.dev; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=6cgKILDAticaRzulsJIYH9W464IRS0YMv9PGXESfrWA=; b=qou05zrYYjm4XjqruLRYTfBDjJrzngff8fKNhQwhw1labJO6DOUIAGOSUBbbfHjyfN N9q8f0v7ul/zzjJRORcgpZKsjNr95VoXimkwcZmFGIXsc2NneauaRLXgg6pX6z7YL+d0 9aH7hfk7Lh6l2k1fDw1IBxOcnyrhIFK2ghTfbGLdBAQRX93hc6vFRUgc7ggF7Ux98Gb7 br5rn+9TI65sQjc2/p/dPvxpuid+N+aT5U2+fDv2HDOs/yebESf06qTdhrwbbUSZFeAJ 5/erna+dCxVlz4iYe/ermfWG56e4f9ZbRnt3d+rFqp9TLHj67yM6ihOTPalPSlo3Jyno SLjw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1781204939; x=1781809739; 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=6cgKILDAticaRzulsJIYH9W464IRS0YMv9PGXESfrWA=; b=eCuGZcXjQ2aUKsKU2XqFnHHmhTOCUDvHauBY7oAIam9/2KavUDQMDEjpRk0UzMIGR1 PI42L/u+A27XVQoDI8YcQ+ksgSCPfMx/STgis29w24kd86BtKeshVG7ejwtf3SEg8ijn B8B8bvJvbeUZDBbYFMOhwQpks7kgbmRw+oIdd8GbtYWx+I7lKsMopfuI9KKv1SPTb17J FbTYVuuZOOMv/8bjJ6T41ustaQkrplx49+cNLf7LNwgjOkQRoeQiCCPVm0fMR9cDckuS uG4N1JbVtwRpnZvXprs5Nu4GFcl9eSB3Uiv3a92zKvPZBT+37jgmJJ77KzirUrOA2VjC ggrw== X-Forwarded-Encrypted: i=1; AFNElJ8pNv1SgdMBbOBWDKOkasiWjU9MB3gixpyMJfKv9eroHXCXEmzUIkQJIxiweynaAv3+driBgKw=@lists.linux.dev X-Gm-Message-State: AOJu0YwwUGjOxJqbAKFIvwKiMUMT3tVW29+I2GK62MTtYKZQXeDJhdD7 gK1GUxtxBLE6wxxmN9+3LdPEKAjLz/BOywm22PWS9eha+6SrwvkQkWduQ+YvxmpsE3Iv892X6Bl szSDNVw== X-Received: from plkn7.prod.google.com ([2002:a17:902:6a87:b0:2bf:10b7:41d7]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:cccd:b0:2c0:c262:b917 with SMTP id d9443c01a7336-2c2f0059f43mr46929825ad.5.1781204938424; Thu, 11 Jun 2026 12:08:58 -0700 (PDT) Date: Thu, 11 Jun 2026 12:08:57 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: kvmarm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260331194202.1722082-1-vipinsh@google.com> <20260331194202.1722082-2-vipinsh@google.com> Message-ID: Subject: Re: [PATCH v4 1/9] KVM: selftest: Create KVM selftest runner From: Sean Christopherson To: Ackerley Tng Cc: Vipin Sharma , kvm@vger.kernel.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, pbonzini@redhat.com, borntraeger@linux.ibm.com, frankja@linux.ibm.com, imbrenda@linux.ibm.com, anup@brainfault.org, atish.patra@linux.dev, zhaotianrui@loongson.cn, maobibo@loongson.cn, chenhuacai@kernel.org, maz@kernel.org, oliver.upton@linux.dev, ajones@ventanamicro.com Content-Type: text/plain; charset="us-ascii" On Wed, Jun 10, 2026, Ackerley Tng wrote: > Vipin Sharma writes: > My (future) use case is that with hugepages, I want to run something > like > > ./guest_memfd_test --order=0 > ./guest_memfd_test --order=9 > ./guest_memfd_test --order=18 > > And 0, 9 and 18 are the supported HugeTLB orders on the machine being > tested. I'd like to iterate over supported HugeTLB orders at runner > runtime instead of at build time. No. The right way to handle this is to define testcases for the "interesting" sizes, and then rely on the test itself to SKIP if the size is unsupported. This is no different than a test that requires EPT, or nested VMX, or nested SVM, etc.