From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jason Wang Subject: [PATCH 2/4] KVM test: Add TSC into guest test Date: Mon, 22 Mar 2010 15:45:01 +0800 Message-ID: <20100322074501.16119.41851.stgit@localhost.localdomain> References: <20100322074452.16119.22820.stgit@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: autotest@test.kernel.org, lmr@redhat.com, kvm@vger.kernel.org Return-path: In-Reply-To: <20100322074452.16119.22820.stgit@localhost.localdomain> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: autotest-bounces@test.kernel.org Errors-To: autotest-bounces@test.kernel.org List-Id: kvm.vger.kernel.org TSC is used to check the whether the TSC of processors are synchronized which is useful for testing virtual TSC. Signed-off-by: Jason Wang --- client/tests/kvm/autotest_control/tsc.control | 13 +++++++++++++ client/tests/kvm/tests_base.cfg.sample | 3 +++ 2 files changed, 16 insertions(+), 0 deletions(-) create mode 100644 client/tests/kvm/autotest_control/tsc.control diff --git a/client/tests/kvm/autotest_control/tsc.control b/client/tests/kvm/autotest_control/tsc.control new file mode 100644 index 0000000..0c1c65a --- /dev/null +++ b/client/tests/kvm/autotest_control/tsc.control @@ -0,0 +1,13 @@ +NAME = 'Check TSC' +AUTHOR = 'Michael Davidson ' +TIME = 'MEDIUM' +TEST_CLASS = 'Kernel' +TEST_CATEGORY = 'Functional' +TEST_TYPE = 'client' +DOC = """ +checktsc is a user space program that checks TSC synchronization +between pairs of CPUs on an SMP system using a technique borrowed +from the Linux 2.6.18 kernel. +""" + +job.run_test('tsc') diff --git a/client/tests/kvm/tests_base.cfg.sample b/client/tests/kvm/tests_base.cfg.sample index 2af6a05..861759e 100644 --- a/client/tests/kvm/tests_base.cfg.sample +++ b/client/tests/kvm/tests_base.cfg.sample @@ -136,6 +136,9 @@ variants: - monotonic_time: test_name = monotonic_time test_control_file = monotonic_time.control + - tsc: + test_name = tsc + test_control_file = tsc.control - linux_s3: install setup unattended_install type = linux_s3