Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1174450

Re: [PATCH 2/3] x86, perf: Support custom test values for extra_regs

From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH 2/3] x86, perf: Support custom test values for extra_regs
Date 2015-06-30 13:20 +0200
Message-ID <pH1K1-ax-3@gated-at.bofh.it> (permalink)
References <pGOMT-6LO-79@gated-at.bofh.it> <pGOMU-6LO-95@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On Mon, Jun 29, 2015 at 02:22:14PM -0700, Andi Kleen wrote:
> From: Andi Kleen <ak@linux.intel.com>
> 
> 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/

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH 2/3] x86, perf: Support custom test values for extra_regs Andi Kleen <andi@firstfloor.org> - 2015-06-29 23:30 +0200
  Re: [PATCH 2/3] x86, perf: Support custom test values for extra_regs Peter Zijlstra <peterz@infradead.org> - 2015-06-30 13:20 +0200

csiph-web