From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zhu Yijun Subject: Re: questions about kvm test Date: Sat, 27 Feb 2016 09:01:15 +0800 Message-ID: <56D0F55B.6010507@huawei.com> References: <20160226142603.GA17211@potion.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: , , Hangaohuai To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Return-path: Received: from szxga03-in.huawei.com ([119.145.14.66]:18516 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755906AbcB0BBg (ORCPT ); Fri, 26 Feb 2016 20:01:36 -0500 In-Reply-To: <20160226142603.GA17211@potion.redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Thanks for giving me so much information! Currently I have installed redhat 7.0 on my machine, and run kun-unit-t= ests. However, several tests case failed, such as apic, ioapic, smap, p= ku, idt_test. So should I use the latest kvm-kmod and qemu? Or is there something req= uirement on hardware? Here is my cpu info showed by /proc/cpuinfo: model name : Intel(R) Xeon(R) CPU E5-2643 0 @ 3.30GHz flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge = mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe sysc= all nx pdpe1gb rdtscp lm constant_tsc arch_perfmon pebs bts rep_good nopl xtop= ology nonstop_tsc aperfmperf eagerfpu pni pclmulqdq dtes64 monitor ds_c= pl vmx smx est tm2 ssse3 cx16 xtpr pdcm pcid dca sse4_1 sse4_2 x2apic popcnt t= sc_deadline_timer aes xsave avx lahf_lm ida arat epb xsaveopt pln pts d= therm t pr_shadow vnmi flexpriority ept vpid I had look the error info in test.log, and will check the source code t= hese days. Thanks again! Zhu Yijun On 2016/2/26 22:26, Radim Kr=C4=8Dm=C3=A1=C5=99 wrote: > 2016-02-24 17:45+0800, Zhu Yijun: >> Hi all, >> >> I am getting start with kvm, and interest in kvm auto test. Curren= tly I have found two related projects, one is kvm-unit-tests, and the o= ther is avocado-vt. >> >> So my question is: >> >> 1) If there is relationship between above two test suite? >=20 > They have different goals, but it makes sense to run kvm-unit-tests > inside avocado. >=20 > kvm-unit-tests is a collection of single-purpose guests that test som= e > parts of KVM (the kernel). kvm-unit-tests also contain a simple > framework to let you run those guests without hassle. >=20 > avocado-vt is a module for avocado testing framework that allows you = to > conveniently automate tests about and inside guests. avocado-vt also > collects tests for guest that run on KVM. >=20 >> 1) We shoul= d use them alone or together? >=20 > If you would be using avocado anyway, then it's a good idea to run > kvm-unit-tests from it, instead of running them separately. >=20 > (I presume that you'll run something, like jenkins, on top of avocado= , > so having just one set of results will be simpler.) >=20 >> 2) Is there any other kvm test suite available? >=20 > That depends on what you count and what you actually want to test. > Working with KVM guests is testing KVM. :) >=20 > Virtualization mostly emulates real hardware, so pretty much any > hardware test suite is worthwhile and other components in your virt > stack (QEMU, libvirt, ...) have a specialized test suites that also > exercise KVM. >=20 > AFAIK avocado(-vt) is the latest try at THE testing framework, so usi= ng > it should be more convenient than writing your own framework to test = a > huge cartesian product of variables that KVM+QEMU+libvirt+... provide= s. >=20 >> 2) And which one is m= ainly used at present? >=20 > I guess that developers mostly use the test suite for their project o= r > custom tests/benchmarks that cover their current work. >=20 > Autotest maybe still is the most popular framework, but avocado > obsoletes it. >=20 > Btw. the avocado team will be able to provide much better information= =2E >=20 > . >=20