On Fri, Jul 03, 2015 at 02:48:45PM +0100, Alex Bennée wrote: > It would be nice to use --no-kvm but that flags a warning on pure-TCG > builds. We echo the fact we are using TCG for the benefit of interactive > use. > > Signed-off-by: Alex Bennée <alex.bennee@xxxxxxxxxx> > --- > arm/run | 9 ++++++++- > 1 file changed, 8 insertions(+), 1 deletion(-) > > diff --git a/arm/run b/arm/run > index 493ce0d..a3a33b3 100755 > --- a/arm/run > +++ b/arm/run > @@ -44,7 +44,14 @@ if $qemu $M -chardev testdev,id=id -initrd . 2>&1 \ > exit 2 > fi > > -M='-machine virt,accel=kvm:tcg' > +M='-machine virt' This M='-machine virt' is now redundant with one about 10 lines above. > +if [ $usingkvm = 1 ]; then > + M+=",accel=kvm" > +else > + echo "Running with TCG" > + M+=',accel=tcg' > +fi This looks good. > + > chr_testdev='-device virtio-serial-device' > chr_testdev+=' -device virtconsole,chardev=ctd -chardev testdev,id=ctd' > > -- > 2.4.5 > > -- > To unsubscribe from this list: send the line "unsubscribe kvm" in > the body of a message to majordomo@xxxxxxxxxxxxxxx > More majordomo info at http://vger.kernel.org/majordomo-info.html -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html