qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] Why is the dummy device hw/testdev excluded in higher version of qemu?
@ 2013-03-05  9:27 Qiu, Shuang
  2013-03-05 15:42 ` Gleb Natapov
  0 siblings, 1 reply; 2+ messages in thread
From: Qiu, Shuang @ 2013-03-05  9:27 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

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

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?

Thanks and Best Regards!
Shuang

[-- Attachment #2: Type: text/html, Size: 5484 bytes --]

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

* Re: [Qemu-devel] Why is the dummy device hw/testdev excluded in higher version of qemu?
  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
  0 siblings, 0 replies; 2+ messages in thread
From: Gleb Natapov @ 2013-03-05 15:42 UTC (permalink / raw)
  To: Qiu, Shuang; +Cc: qemu-devel@nongnu.org

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.

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

end of thread, other threads:[~2013-03-05 15:42 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 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).