Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753177AbbF3Po7 (ORCPT ); Tue, 30 Jun 2015 11:44:59 -0400 Received: from mga01.intel.com ([192.55.52.88]:1205 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753165AbbF3Pow (ORCPT ); Tue, 30 Jun 2015 11:44:52 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.15,378,1432623600"; d="scan'208";a="516647604" Date: Tue, 30 Jun 2015 08:44:51 -0700 From: Andi Kleen To: Peter Zijlstra Cc: Andi Kleen , eranian@google.com, linux-kernel@vger.kernel.org Subject: Re: [PATCH 2/3] x86, perf: Support custom test values for extra_regs Message-ID: <20150630154451.GA25760@tassilo.jf.intel.com> References: <1435612935-24425-1-git-send-email-andi@firstfloor.org> <1435612935-24425-2-git-send-email-andi@firstfloor.org> <20150630111907.GF3644@twins.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20150630111907.GF3644@twins.programming.kicks-ass.net> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 924 Lines: 26 On Tue, Jun 30, 2015 at 01:19:07PM +0200, Peter Zijlstra wrote: > On Mon, Jun 29, 2015 at 02:22:14PM -0700, Andi Kleen wrote: > > From: Andi Kleen > > > > Current kernels always test extra registers at boot with RMW > > cycle, to catch lying virtual machines. > > > > For a new register the standard 0x1ff test value does not work, > > as 0x1ff is not a valid value and causes an #GP. > > > > Add the ability to add custom test values to an extra_reg > > into the description tables. > > Just wondering; is there not a test value that works for all registers? 0x11 will likely work everywhere. -Andi -- ak@linux.intel.com -- Speaking for myself only -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/