From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH kvm-unittest] x86/svm: run cr3 read intercept emulate only on SMP Date: Wed, 17 Apr 2013 20:10:08 -0300 Message-ID: <20130417231008.GA32501@amt.cnet> References: <1366088896-1868-1-git-send-email-prasadjoshi.linux@gmail.com> <516D7919.5040607@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: prasadjoshi.linux@gmail.com, kvm@vger.kernel.org To: Paolo Bonzini Return-path: Received: from mx1.redhat.com ([209.132.183.28]:38620 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753239Ab3DQXhu (ORCPT ); Wed, 17 Apr 2013 19:37:50 -0400 Content-Disposition: inline In-Reply-To: <516D7919.5040607@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, Apr 16, 2013 at 06:15:21PM +0200, Paolo Bonzini wrote: > Il 16/04/2013 07:08, prasadjoshi.linux@gmail.com ha scritto: > > From: Prasad Joshi > > > > The SVM test 'cr3 read intercept emulate' when ran on uniprocessor > > system does not finish and blocks all the tests scheduled to be ran > > afterwords. Add check so that the test is only ran on the SMP VM. > > test->scratch = 1; > while (test->scratch != 2) > barrier(); > > Indeed. > > Reviewed-by: Paolo Bonzini Applied, thanks.