From mboxrd@z Thu Jan 1 00:00:00 1970 From: "H. Peter Anvin" Subject: Re: [PATCH] kvm: optimize ISR lookups Date: Wed, 23 May 2012 12:25:50 -0700 Message-ID: <4FBD39BE.8040101@zytor.com> References: <20120521163727.GA13337@redhat.com> <4FBB7185.6040105@redhat.com> <4FBCFDD1.5050405@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Avi Kivity , "Michael S. Tsirkin" , kvm@vger.kernel.org, Marcelo Tosatti , Ingo Molnar , x86@kernel.org, linux-kernel@vger.kernel.org To: Thomas Gleixner Return-path: In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 05/23/2012 11:37 AM, Thomas Gleixner wrote: >> >> That works, but replaces one problem with another: now we have two >> sources for the same data, and need to juggle between them depending= on >> register number (either synchronizing in both directions, or special >> casing); so you're simplifying one thing at the expense of the other= =2E >> If the microcode starts accessing more registers, then having two >> layouts becomes even uglier. >=20 > Fair enough :) Yes, the =C2=B5code accessing this data structure directly probably fal= ls under the category of a legitimate need to stick to the hardware format= =2E -hpa --=20 H. Peter Anvin, Intel Open Source Technology Center I work for Intel. I don't speak on their behalf.