lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1320761547.11519.3.camel@twins>
Date:	Tue, 08 Nov 2011 15:12:27 +0100
From:	Peter Zijlstra <a.p.zijlstra@...llo.nl>
To:	Gleb Natapov <gleb@...hat.com>
Cc:	kvm@...r.kernel.org, avi@...hat.com, mtosatti@...hat.com,
	linux-kernel@...r.kernel.org, mingo@...e.hu,
	acme@...stprotocols.net
Subject: Re: [PATCHv2 6/9] perf: expose perf capability to other modules.

On Tue, 2011-11-08 at 15:54 +0200, Gleb Natapov wrote:
> Isn't it better to introduce mapping between ebx bits and architectural
> events and do for_each_set_bit loop?

Probably, but I only thought of that halfway through ;-)

>  But I wouldn't want to introduce
> patch as below as part of this series. 

Well, since you're actually going to frob cpuid10.ebx bits we had better
deal with it properly.

> I do not want to introduce
> incidental regressions. For instance the patch below will introduce
> regression on my Nehalem cpu. It reports value 0x44 in cpuid10.ebx which
> means that unhalted_reference_cycles is not available (bit set means
> event is not available), but event still works! Actually it is listed as
> supported by the cpu in Table A-4 SDM 3B. Go figure. 

We'd better figure out why your machine says that. It could be we need
another quirk for the nehalem machines, it could be your BIOS is smoking
crack and there's nothing we can do about it.


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ