From: Sean Christopherson <seanjc@google.com>
To: Andrew Jones <andrew.jones@linux.dev>
Cc: Colton Lewis <coltonlewis@google.com>,
kvm@vger.kernel.org, pbonzini@redhat.com, maz@kernel.org,
dmatlack@google.com, oupton@google.com, ricarkol@google.com
Subject: Re: [PATCH v6 2/3] KVM: selftests: randomize which pages are written vs read
Date: Mon, 10 Oct 2022 14:46:24 +0000 [thread overview]
Message-ID: <Y0QwQCq3pyb0v/b3@google.com> (raw)
In-Reply-To: <20221008095032.kcbvpdz4o5tunptn@kamzik>
On Sat, Oct 08, 2022, Andrew Jones wrote:
> On Fri, Oct 07, 2022 at 08:55:20PM +0000, Sean Christopherson wrote:
> > On Mon, Sep 12, 2022, Colton Lewis wrote:
> > > @@ -393,7 +403,7 @@ int main(int argc, char *argv[])
> > >
> > > guest_modes_append_default();
> > >
> > > - while ((opt = getopt(argc, argv, "ghi:p:m:nb:f:v:or:s:x:")) != -1) {
> > > + while ((opt = getopt(argc, argv, "ghi:p:m:nb:v:or:s:x:w:")) != -1) {
> >
> > This string is getting quite annoying to maintain, e.g. all of these patches
> > conflict with recent upstream changes, and IIRC will conflict again with Vipin's
> > changes. AFAICT, the string passed to getopt() doesn't need to be constant, i.e.
> > can be built programmatically. Not in this series, but as future cleanup we should
> > at least consider a way to make this slightly less painful to maintain.
> >
>
> I wonder if a getopt string like above is really saying "we're doing too
> much in a single test binary". Are all these switches just for one-off
> experiments which developers need? Or, are testers expected to run this
> binary multiple times with different combinations of switches?
Even if it's just 2 or 3 switches, I agree we need a way to run those configs by
default.
> If it's the latter, then I think we need a test runner script and config file
> to capture those separate invocations (similar to kvm-unit-tests). Or, change
> from a collection of command line switches to building the file multiple
> times with different compile time switches and output filenames.
What about a mix of those two approaches and having individual scripts for each
config? I like the idea of one executable per config, but we shouldn't need to
compile multiple times. And that would still allow developers to easily run
non-standard configs.
I'd prefer to avoid adding a test runner, partly because I can never remember the
invocation strings, partly becuase I don't want to encourage mega tests like the
VMX and SVM KVM-unit-tests.
next prev parent reply other threads:[~2022-10-10 14:46 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-12 19:58 [PATCH v6 0/3] KVM: selftests: randomize memory access of dirty_log_perf_test Colton Lewis
2022-09-12 19:58 ` [PATCH v6 1/3] KVM: selftests: implement random number generation for guest code Colton Lewis
2022-10-07 20:41 ` Sean Christopherson
2022-10-11 18:11 ` Colton Lewis
2022-10-11 18:39 ` Sean Christopherson
2022-10-11 22:24 ` Colton Lewis
2022-10-11 23:47 ` Sean Christopherson
2022-10-12 21:11 ` Colton Lewis
2022-10-12 23:34 ` Sean Christopherson
2022-10-10 18:03 ` Sean Christopherson
2022-10-11 18:13 ` Colton Lewis
2022-10-11 18:26 ` Sean Christopherson
2022-10-11 22:33 ` Colton Lewis
2022-09-12 19:58 ` [PATCH v6 2/3] KVM: selftests: randomize which pages are written vs read Colton Lewis
2022-10-07 20:55 ` Sean Christopherson
2022-10-07 21:07 ` David Matlack
2022-10-08 9:50 ` Andrew Jones
2022-10-10 14:46 ` Sean Christopherson [this message]
2022-10-10 16:38 ` Andrew Jones
2022-09-12 19:58 ` [PATCH v6 3/3] KVM: selftests: randomize page access order Colton Lewis
2022-10-07 21:09 ` Sean Christopherson
2022-10-11 18:12 ` Colton Lewis
2022-10-11 18:22 ` Sean Christopherson
2022-10-11 22:25 ` Colton Lewis
2022-10-11 22:50 ` Sean Christopherson
2022-09-19 22:36 ` [PATCH v6 0/3] KVM: selftests: randomize memory access of dirty_log_perf_test David Matlack
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=Y0QwQCq3pyb0v/b3@google.com \
--to=seanjc@google.com \
--cc=andrew.jones@linux.dev \
--cc=coltonlewis@google.com \
--cc=dmatlack@google.com \
--cc=kvm@vger.kernel.org \
--cc=maz@kernel.org \
--cc=oupton@google.com \
--cc=pbonzini@redhat.com \
--cc=ricarkol@google.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.