[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20070228140501.GA19452@amd.com>
Date: Wed, 28 Feb 2007 15:05:01 +0100
From: "Joerg Roedel" <joerg.roedel@....com>
To: discuss@...-64.org
cc: "Andi Kleen" <ak@...e.de>, linux-kernel@...r.kernel.org
Subject: [PATCH 0/4] improve alternative instruction code and optimize
get_cycles_sync
This series of patches extend the alternative instructions framework on
i386 and x86_64 architectures to support two alternative instruction
replacements. This code is used together with the introduction of the
X86_FEATURE_SYNC_RDTSC flag on i386 to simplify and optimize the
get_cycles_sync() function. The optimization changes this function to
use RDTSCP instead of CPUID;RDTSC if this instruction is available.
Don't use CPUID there is really important if the kernel runs as a KVM
guest, because this instruction is intercepted and causes an expensive
VMEXIT.
--
Joerg Roedel
Operating System Research Center
AMD Saxony LLC & Co. KG
-
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