Paolo Bonzini <pbonz...@redhat.com> writes: > Il 18/10/2013 07:30, Markus Armbruster ha scritto: >> > +static void test_acpi_tcg(void) >> > +{ >> > + test_acpi_one("-machine accel=tcg"); >> > +} >> >> Since qtest_init() adds your parameters at the end, this should result >> in a command line ending with "-machine accel=qtest -machine accel=tcg", >> which should result in qtest. How does this work? > > The last option wins.
You're right. Exploiting it in a qtest is quite a hack :)