Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752920AbbF3LTU (ORCPT ); Tue, 30 Jun 2015 07:19:20 -0400 Received: from casper.infradead.org ([85.118.1.10]:52722 "EHLO casper.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752503AbbF3LTN (ORCPT ); Tue, 30 Jun 2015 07:19:13 -0400 Date: Tue, 30 Jun 2015 13:19:07 +0200 From: Peter Zijlstra To: Andi Kleen Cc: eranian@google.com, linux-kernel@vger.kernel.org, Andi Kleen Subject: Re: [PATCH 2/3] x86, perf: Support custom test values for extra_regs Message-ID: <20150630111907.GF3644@twins.programming.kicks-ass.net> References: <1435612935-24425-1-git-send-email-andi@firstfloor.org> <1435612935-24425-2-git-send-email-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1435612935-24425-2-git-send-email-andi@firstfloor.org> User-Agent: Mutt/1.5.21 (2012-12-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 740 Lines: 18 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? -- 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/