From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:57803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCu0K-0001Ja-BY for qemu-devel@nongnu.org; Tue, 05 Mar 2013 10:42:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UCu0J-0002kV-0k for qemu-devel@nongnu.org; Tue, 05 Mar 2013 10:42:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:6925) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UCu0I-0002kO-Ov for qemu-devel@nongnu.org; Tue, 05 Mar 2013 10:42:10 -0500 Date: Tue, 5 Mar 2013 17:42:08 +0200 From: Gleb Natapov Message-ID: <20130305154208.GI11223@redhat.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] Why is the dummy device hw/testdev excluded in higher version of qemu? List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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.