[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] Why is the dummy device hw/testdev excluded in higher v
From: |
Gleb Natapov |
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 |
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.