From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] ignore reads to the EOI register. Date: Thu, 27 Mar 2008 14:55:39 +0200 Message-ID: <47EB994B.7080108@qumranet.com> References: <12065794361493-git-send-email-gcosta@redhat.com> <47EB586E.3090002@qumranet.com> <87hcesjpqa.fsf@basil.nowhere.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel@lists.sourceforge.net, qemu-devel@nongnu.org, "Maciej W. Rozycki" , Glauber Costa To: Andi Kleen Return-path: In-Reply-To: <87hcesjpqa.fsf@basil.nowhere.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Andi Kleen wrote: > "Maciej W. Rozycki" writes: > >> Linux performs reads to all registers written including this one >> deliberately using an RMW cycle to avoid triggering an erratum in some >> early Pentium integrated APICs. Obviously it does not matter for most of >> the world as the workaround is build-time conditional, but you'll get it >> if you build a generic "runs everywhere" kernel. >> > > It would be quite possible to make the cycle conditional on a > cpufeatures.h quirk flag that is only set on P5. Just would need to > out of line a few functions to avoid code bloat. > Or, alternatives? xchg vs mov? -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace