On Wed, Apr 02, 2014 at 05:07:09PM +0200, Andreas Färber wrote: > Am 02.04.2014 17:06, schrieb Michael S. Tsirkin: > > On Wed, Apr 02, 2014 at 04:57:48PM +0200, Andreas Färber wrote: > >> Note that it launches two instances to as sharing memory is the purpose > >> of Nahanni/ivshmem. > >> > >> Cc: Cam Macdonell <c...@cs.ualberta.ca> > >> Signed-off-by: Andreas Färber <afaer...@suse.de> > >> --- > >> This test demonstrates a use case of running two QEMU instances in qtest. > >> > >> However, similar to mst's proposed KVM acpi-test, it fails on systems > >> without KVM support, > > > > Hmm, acpi-test no longer depends on kvm. > > You only committed the TCG version due to someone raising the issue. But > maybe I'm mistaken... > > Andreas
Yes and I think this someone was you actually. Can something similar be done for this test? > >> and we cannot use $(CONFIG_KVM) to make it conditional > >> since that is a per-target define rather than host-wide. > >> > >> I wonder if libqtest should expose an API to start a QEMU instance and > >> inquire via QMP whether the executable supports KVM, returning true or > >> false? > > -- > SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany > GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg