kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [kvm-unit-tests PATCH] [RFC] run: add -nodefaults
@ 2016-11-15 17:47 Andrew Jones
  2016-11-16  1:51 ` Thomas Huth
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Andrew Jones @ 2016-11-15 17:47 UTC (permalink / raw)
  To: kvm; +Cc: rkrcmar, pbonzini, lvivier, thuth

Adding pci-test to arm allowed us to see that a virtio-net-pci
device was getting added to our machine by default. Unit tests
should configure the most minimal machines they can, only adding
devices necessary for the tests. Let's add -nodefaults to all
the run scripts.

I tested all arches (powerpc and arm on tcg). There were no
unexpected changes.

Signed-off-by: Andrew Jones <drjones@redhat.com>
---
 arm/run     | 2 +-
 powerpc/run | 2 +-
 x86/run     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arm/run b/arm/run
index 1ee6231599d6..f1b04af614dc 100755
--- a/arm/run
+++ b/arm/run
@@ -73,7 +73,7 @@ if $qemu $M -device '?' 2>&1 | grep pci-testdev > /dev/null; then
 fi
 
 M+=",accel=$ACCEL"
-command="$qemu $M -cpu $processor $chr_testdev $pci_testdev"
+command="$qemu -nodefaults $M -cpu $processor $chr_testdev $pci_testdev"
 command+=" -display none -serial stdio -kernel"
 command="$(timeout_cmd) $command"
 echo $command "$@"
diff --git a/powerpc/run b/powerpc/run
index 14988a75b1e2..afdd487bfc35 100755
--- a/powerpc/run
+++ b/powerpc/run
@@ -43,7 +43,7 @@ fi
 
 M='-machine pseries'
 M+=",accel=$ACCEL"
-command="$qemu $M -bios $FIRMWARE"
+command="$qemu -nodefaults $M -bios $FIRMWARE"
 command+=" -display none -serial stdio -kernel"
 command="$(timeout_cmd) $command"
 echo $command "$@"
diff --git a/x86/run b/x86/run
index 8c8fe7d3cc78..10a6e6d3421c 100755
--- a/x86/run
+++ b/x86/run
@@ -42,7 +42,7 @@ else
 	pc_testdev="-device testdev,chardev=testlog -chardev file,id=testlog,path=msr.out"
 fi
 
-command="${qemu} -enable-kvm $pc_testdev -vnc none -serial stdio $pci_testdev $hyperv_testdev -kernel"
+command="${qemu} -nodefaults -enable-kvm $pc_testdev -vnc none -serial stdio $pci_testdev $hyperv_testdev -kernel"
 command="$(timeout_cmd) $command"
 echo ${command} "$@"
 
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2016-11-22 13:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-15 17:47 [kvm-unit-tests PATCH] [RFC] run: add -nodefaults Andrew Jones
2016-11-16  1:51 ` Thomas Huth
2016-11-17  9:40 ` Paolo Bonzini
2016-11-22 13:59 ` Radim Krčmář

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).