From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Harmon Subject: Re: [kvm-unit-tests PATCH] powerpc: Add SPRs migration test Date: Tue, 12 Apr 2016 21:32:01 +0000 (UTC) Message-ID: References: <1460115329-21611-1-git-send-email-thuth@redhat.com> <20160411115507.524f8f9f@voom.fritz.box> <570B6D22.50104@redhat.com> <20160412112108.5ed39dfc@voom.fritz.box> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: kvm@vger.kernel.org Return-path: Received: from plane.gmane.org ([80.91.229.3]:40856 "EHLO plane.gmane.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964992AbcDLVfE (ORCPT ); Tue, 12 Apr 2016 17:35:04 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aq5xe-0008PY-Ld for kvm@vger.kernel.org; Tue, 12 Apr 2016 23:35:02 +0200 Received: from google-proxy-66-249-84-142.google.com ([66.249.84.142]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2016 23:35:02 +0200 Received: from gharm by google-proxy-66-249-84-142.google.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 12 Apr 2016 23:35:02 +0200 Sender: kvm-owner@vger.kernel.org List-ID: David Gibson redhat.com> writes: > > On Mon, 11 Apr 2016 11:23:46 +0200 > Thomas Huth redhat.com> wrote: > > > On 11.04.2016 03:55, David Gibson wrote: > > > On Fri, 8 Apr 2016 13:35:29 +0200 > > > Thomas Huth redhat.com> wrote: > > > > > >> This test can be used to check whether the SPR (special purpose > > >> registers) of the PowerPC CPU are migrated right. It first fills > > >> the various SPRs with some non-zero value, then reads the values > > >> back into a first array, then waits for a key (with the '-w' option) > > >> so that it is possible to migrate the VM, and finally reads the > > >> values from the SPRs back into another array and then compares it > > >> with the initial values. Hi, In order to make this test automated, what if we extend the test device to return a save/restore generation number? It can report that in a register,and then the test can spin, waiting for that value to increase. Thanks, Greg