From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 0/2] unit-tests: Add tests to measure svm instruction latencys Date: Mon, 20 Sep 2010 15:05:00 -0300 Message-ID: <20100920180500.GA27404@amt.cnet> References: <1284904611-2458-1-git-send-email-joerg.roedel@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Avi Kivity , kvm@vger.kernel.org, Alexander Graf To: Joerg Roedel Return-path: Received: from mx1.redhat.com ([209.132.183.28]:43818 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754935Ab0ITTLY (ORCPT ); Mon, 20 Sep 2010 15:11:24 -0400 Content-Disposition: inline In-Reply-To: <1284904611-2458-1-git-send-email-joerg.roedel@amd.com> Sender: kvm-owner@vger.kernel.org List-ID: On Sun, Sep 19, 2010 at 03:56:49PM +0200, Joerg Roedel wrote: > Hi, > > here are two patches for the svm unit-test framework that measure the > latency of the emulated vmrun, vmload, and vmsave instructions as well > as the latency of emulated vmexits. > > On my Phenom II X6 1090T running in P0 it produces output like this: > > Latency VMRUN : max: 140956 min: 6770 avg: 6819 > Latency VMEXIT: max: 141042 min: 7475 avg: 7575 > latency_run_exit: PASS > Latency VMLOAD: max: 23248 min: 1915 avg: 1925 > Latency VMSAVE: max: 130888 min: 1917 avg: 1955 > latency_load_save: PASS > > These two tests report the tsc-cycles between events. Each latency is > measured one million times (which explains the large -max values). > > Joerg Applied, thanks.