From: Fabiano Rosas <farosas@suse.de>
To: "Peter Xu" <peterx@redhat.com>,
"Daniel P. Berrangé" <berrange@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [PATCH 0/5] migration-test: Support running a real kernel
Date: Fri, 27 Nov 2026 16:15:40 -0300 [thread overview]
Message-ID: <87cxrqqe5f.fsf@suse.de> (raw)
In-Reply-To: <awmbT3VAyPdCYkdO@zhexu-thinkpadt14gen5.rmtcaon.csb>
Peter Xu <peterx@redhat.com> writes:
> On Fri, Nov 27, 2026 at 02:01:13PM +0000, Daniel P. Berrangé wrote:
>> On Fri, Nov 27, 2026 at 08:45:04AM -0500, Peter Xu wrote:
>> > On Thu, Nov 26, 2026 at 06:46:59PM -0300, Fabiano Rosas wrote:
>> > > There's a class of migration performance bugs that are very specific
>> > > to the internals of QEMU and most likely require work on our side, but
>> > > are currently invisible to our testing because migration-test runs a
>> > > simple guest workload (not even that, really). The more important ones
>> > > are BQL contention issues that result in vcpu starvation.
>> > >
>> > > My plan is to incrementally add some pieces to migration-test to
>> > > reduce that testing gap.
>> > >
>> > > The first piece is adding support for running a kernel + initrd inside
>> > > the guest which gives us an easy way to start exercising migration of
>> > > a more loaded guest that can already cause VM exits.
>> > >
>> > > This series adds support for -kernel and -initrd arguments to
>> > > migration-test and runs the same set of tests we currently have, but
>> > > with the kernel instead of the custom loop. By default it uses the
>> > > initrd from tests/migration-stress/ which runs a read-write loop over
>> > > all memory and has customizable vcpu and memory size.
>> >
>> > The whole thing sounds useful, I'll read into details after I flush more of
>> > the older patches.. which will take some time (it also depends on if next
>> > week I got some more urgent task "injected"..).
>> >
>> > One high level question: this will grow qtest closer to what the functional
>> > test is doing. Have you thought of the relationship between the two, after
>> > we move qtest more over there? I assumed not, based on what you mentioned
>> > in the rest part of cover letter that you planned to have it only for dev
>> > debug purpose. But still, we'll start to ask the question to ourselves at
>> > some point, IIUC. So I ask first. :)
>>
>> In terms of the boundary between functional tests and qtests, I
>> think the guidance is in the names.
>>
>> If it is a "qtest" test then it should be primarily making use
>> of QTest to interrogate the QEMU internalprocess state.
>>
>> If it is a "functional" test, then it is interested in running
>> real kernels & real accelerators and validating the behaviour of
>> QEMU via its external mgmt interfaces.
>>
>> By this definition, IMHO, the migration-test would be a functional
>> test, if it were created from scratch to.
>
> True.
>
>>
>> It only uses libqtest.h APIs for the purpose of sending QMP
>> commands, not examining internal device state. Essentially it is a
>> historical accident that it is written as a qtest instead of a
>> functional test, as that was the best choice at the time.
>
> Yes, I didn't try to measure functional tests, but I think qtest is good
> choice even for now being very fast.
>
Come on, it's a good choice because it exists. Look at the amount of
stuff we test in migration-test.c.
> Then the question is similar, where we will have two functional tests for
> migration, and we'll at some point think about what we do when they start
> to overlap (perhaps, already).
We could have avoided putting ourselves in this situation if we had
agreed upfront on what the plan would be. We had 3 or 4 useless tests in
avocado that could have just been dropped back then and now we'd have
only one test-suite for migration functional testing. People insisted
anyway and now: ooops, duplicated effort! =)
Unfortunately, I get the short end of the stick because instead of
implementing some custom solution downstream I decided to use the
upstream code for my testing.
Do we want to centralize on the python code? Let's decide one way or
another. I promise I won't complain after the fact.
- We could freeze migration-test.c now and declare new tests go to
either qos, functional or unit only.
- Or keep migration-test.c as a suite for testing subsystem core
features only (the various capabilities, dirty tracking, etc.) and
unless a new feature comes up, tests go in functional/.
- Or something else...
I'm about to start some work on vmstate-static-checker.py now that
Pierrick provided us with the infra to build every QEMU version in a
container, so it's an opportune time.
Don't forget that once the AI gates fully open we'll probably get a
flood of new tests, it would be good to have a single message.
next prev parent reply other threads:[~2026-11-27 19:17 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-26 21:46 [PATCH 0/5] migration-test: Support running a real kernel Fabiano Rosas
2026-11-26 21:47 ` [PATCH 1/5] tests/migration-stress: Fix stress.c loop Fabiano Rosas
2026-11-26 21:47 ` [PATCH 2/5] tests/migration-stress: Cleanups to stress.c Fabiano Rosas
2026-11-26 21:47 ` [PATCH 3/5] tests/qtest/migration: Move guest workload code into bootfile.c Fabiano Rosas
2026-11-26 21:47 ` [PATCH 4/5] tests/qtest/migration: Adapt wait_for_serial routine for stress.c Fabiano Rosas
2026-11-26 21:47 ` [PATCH 5/5] tests/qtest/migration: Make it possible to run stress.c Fabiano Rosas
2026-11-27 13:45 ` [PATCH 0/5] migration-test: Support running a real kernel Peter Xu
2026-11-27 14:01 ` Daniel P. Berrangé
2026-11-27 15:01 ` Peter Xu
2026-11-27 19:15 ` Fabiano Rosas [this message]
2026-11-27 15:18 ` Fabiano Rosas
2026-11-27 15:33 ` Daniel P. Berrangé
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=87cxrqqe5f.fsf@suse.de \
--to=farosas@suse.de \
--cc=berrange@redhat.com \
--cc=peterx@redhat.com \
--cc=qemu-devel@nongnu.org \
/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.