public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
From: Marcelo Tosatti <mtosatti@redhat.com>
To: kvm@vger.kernel.org
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Subject: [patch 2/3] kvm test: add kvm-unit.cfg
Date: Thu, 02 Sep 2010 20:36:54 -0300	[thread overview]
Message-ID: <20100902233712.714778543@redhat.com> (raw)
In-Reply-To: 20100902233652.853027771@redhat.com

[-- Attachment #1: config --]
[-- Type: text/plain, Size: 1187 bytes --]

To avoid a large parameter list.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>

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.
 
 



  parent reply	other threads:[~2010-09-02 23:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-02 23:36 [patch 0/3] add mce test Marcelo Tosatti
2010-09-02 23:36 ` [patch 1/3] kvm test: add monitor_printf Marcelo Tosatti
2010-09-03  7:56   ` Paolo Bonzini
2010-09-03 16:48     ` Marcelo Tosatti
2010-09-03 17:23   ` [patch 1/3] kvm test: add monitor_printf (v2) Marcelo Tosatti
2010-09-02 23:36 ` Marcelo Tosatti [this message]
2010-09-02 23:36 ` [patch 3/3] Add mce test Marcelo Tosatti
2010-09-05  8:15   ` Avi Kivity
2010-09-05 21:17     ` Marcelo Tosatti
2010-09-06 14:53       ` Avi Kivity

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20100902233712.714778543@redhat.com \
    --to=mtosatti@redhat.com \
    --cc=kvm@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox