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: <20070228142554.GE19452@amd.com>
Date:	Wed, 28 Feb 2007 15:25:54 +0100
From:	"Joerg Roedel" <joerg.roedel@....com>
To:	discuss@...-64.org
cc:	"Andi Kleen" <ak@...e.de>, linux-kernel@...r.kernel.org
Subject: [PATCH 4/4] optimize and simplify get_cycles_sync()

From: Joerg Roedel <joerg.roedel@....com>

This patch simplifies the get_cycles_sync() function by removing the
#ifdefs from it. Further it introduces an optimization for AMD
processors. There the RDTSCP instruction is used instead of CPUID;RDTSC
which is helpfull if the kernel runs as a KVM guest. Running as a guest
makes CPUID very expensive because it causes an intercept of the guest.

Signed-off-by: Joerg Roedel <joerg.roedel@....com>

-- 
Joerg Roedel
Operating System Research Center
AMD Saxony LLC & Co. KG

View attachment "optimized-get_cycles_sync.patch" of type "text/plain" (1606 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ