qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: "Qiu, Shuang" <shuang.qiu@intel.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] Why is the dummy device hw/testdev excluded in higher version of qemu?
Date: Tue, 5 Mar 2013 17:42:08 +0200	[thread overview]
Message-ID: <20130305154208.GI11223@redhat.com> (raw)
In-Reply-To: <B01B9589F1E07041890E2B0DD80BAAA68415B5@SHSMSX101.ccr.corp.intel.com>

On Tue, Mar 05, 2013 at 09:27:23AM +0000, Qiu, Shuang wrote:
> Hello everyone,
> 
> I'm now doing regression tests on qemu 1.4.5. My test cases is written regarding 1.2.5, so I use testdev as a dummy device with a chardev specified to output system log.
> 
> The old command is like this:
> 
> qemu-system-x86_64 -device testdev,chardev=testlog -chardev file,id=testlog,path=log.out -serial stdio
> -kernel test_kernel -cpu host --enable-kvm
> 
> When I now develop on qemu 1.4.5, I suddenly find the testdev is excluded from the source.
> 
> Now, when I perform the regression test, an error is issued:
> 
> qemu-system-x86_64 -device testdev,chardev=testlog -chardev file,id=testlog,path=log.out -serial stdio
> 
> -kernel test_kernel -cpu host --enable-kvm
> 
> qemu-system-x86_64: -device testdev,chardev=testlog: Parameter 'driver' expects
> 
> device type
> 
> Instead, I find pc-testdev is added. Any reason behind this? Why and when did testdev removed from the code?
> 
Testdev was never in qemu, it was only in qemu-kvm. pc-testdev is
cleaned up testdev from qemu-kvm. They should be functionally
equivalent, but command line to use them is different. pc-testdev.c file
has a example how to use the device:

qemu-system-x86_64 -device pc-testdev -serial stdio \
 -device isa-debug-exit,iobase=0xf4,iosize=0x4 \
 -kernel /home/lmr/Code/virt-test.git/kvm/unittests/msr.flat

and kvm-unit-test repository will shortly be updates with x86-run script
that will hide difference between old and new way.

--
			Gleb.

      reply	other threads:[~2013-03-05 15:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-05  9:27 [Qemu-devel] Why is the dummy device hw/testdev excluded in higher version of qemu? Qiu, Shuang
2013-03-05 15:42 ` Gleb Natapov [this message]

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=20130305154208.GI11223@redhat.com \
    --to=gleb@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=shuang.qiu@intel.com \
    /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;
as well as URLs for NNTP newsgroup(s).