[patch 2/3] kvm test: add kvm-unit.cfg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



To avoid a large parameter list.

Signed-off-by: Marcelo Tosatti <mtosatti@xxxxxxxxxx>

Index: kvm-unit-tests/kvm-unit.cfg
===================================================================
--- /dev/null
+++ kvm-unit-tests/kvm-unit.cfg
@@ -0,0 +1,23 @@
+# qemu config file
+
+[chardev "mon1"]
+  backend = "socket"
+  host = "localhost"
+  port = "7321"
+  server = "on"
+  wait = "off"
+
+[chardev "mon2"]
+  backend = "socket"
+  host = "localhost"
+  port = "7321"
+
+[device]
+  driver = "testdev"
+  chardev = "testlog"
+  mon = "mon2"
+
+[mon]
+  chardev = "mon1"
+  mode = "readline"
+
Index: kvm-unit-tests/README
===================================================================
--- kvm-unit-tests.orig/README
+++ kvm-unit-tests/README
@@ -10,7 +10,7 @@ To create the tests' images just type 'm
 Tests' images created in ./<ARCH>/*.flat
 
 An example of a test invocation:
-qemu-system-x86_64 -device testdev,chardev=testlog -chardev file,id=testlog,path=msr.out -kernel ./x86/msr.flat
+qemu-system-x86_64 -readconfig kvm-unit.cfg -chardev file,id=testlog,path=msr.out -kernel ./x86/msr.flat
 This invocation runs the msr test case. The test output is in file msr.out.
 
 


--
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


[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux