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-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 4636820DD51 for ; Thu, 11 Jun 2026 19:08:59 +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=1781204940; cv=none; b=ieMyLmT926LZ019nlzIWsM2H0IgcvwuYVbPjhZDimO8P8LYfo8+xojMFhXV5BQogvDPmjtyE4vMr56herkybF4FtQp4T6H2msD7WwwxmKl/Vrzq8xQMdYDPDrKq0nfIdLSqvBz2IS8ULPke1EhyxmQWaX/eEfMx0YIi6aVfU1pg= 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=uMt6S3b5; 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="uMt6S3b5" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2bfdd99f6b7so2884195ad.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=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=6cgKILDAticaRzulsJIYH9W464IRS0YMv9PGXESfrWA=; b=uMt6S3b5UF2DW577U9JOSbzITD5oZLystXr/OY6EnBZy0j2ue6SFedG+CEdmDXi9pz QKxBT4sPDCr2bcqIY5p4LnShVnNvNUNW+BGAvoMMmEdqYWfsaRsuNXd5MbFAIhqJ4vOn 3XfZtpeNkojurtsQYEKo9X/08HZ/iO34udBx7uTr711L28cTvGN4HBz3kH5muoKzkhwe bCXxnvRd36iiplr7Xl8N40JBtMm6/x8zJgKW6/a09dnLh45HU0807KqbRcxTWU5u+6pn bMVSPBm6vbX0rX4mANkRdinzH3OO1ChHBbOg2a047GPTlKCHBNg70S3oR8t6Swt0DE+C zHCw== 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=ITPAbvZYBgMMkZjZ5LNrHVcmF8GyYr4bHaRw7uBnV2RRdH4O5cvY4tVPJ+xiedsgYv lVWZ92SkSetIG2/rQLQbEy7HIM9R6kS07Mfgf92qxxinAG2CUPeT9KZq/9qaS1FSZmv6 IeJaxb/MbvKDaoO5tkDLDe+Q3dJufDvBq/xoh1wxbktASGQZ/ypymt7XrRsqlGTHltZm yi1EVp7GZszd6LpNHD+KYStsQ8X5utUKskEm3mgQdCenXgD0rWYD38ii/FHk0ZL12v16 ePMuAFeb0QxyU7g83hq22L1oDyUTBJr7eXif6oht3nMFcsdceS4Tn+sPoVPkz6+BMcaC oYJg== X-Forwarded-Encrypted: i=1; AFNElJ9A7AoP43jFmlV6Qy+ZgFF0uOq3tGjoqWGTy/7NPdOvP6ejDYhVe9HLORQ+SqAVhQxAl1s=@vger.kernel.org X-Gm-Message-State: AOJu0YxmvOBE5g7tMWcMAR6i5VrUq3Jnm07M62uIq+h1IySVDLXxVRSq 984MML534W/fqK2kMmbmW6bZGennd4Hlqa7l83QGqZdlWC0yDYq4KTbq7h0exY1KW2XEdmuEmIY Uwu0YIA== 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: kvm@vger.kernel.org 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.