From: Keir Fraser Subject: Re: [patch 1/2] HV: allow HVM virtual PICs to have their interrupt vector reprogrammed Date: Fri, 01 Jun 2007 09:02:33 +0100 Message-ID: References: <1180643735.6497.25.camel@sisko.scot.redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1180643735.6497.25.camel@sisko.scot.redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "Stephen C. Tweedie" Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 31/5/07 21:35, "Stephen C. Tweedie" wrote: > This turned out to be trivial to do. I was just stalled for a while in > testing it since it uncovered another regression --- Xen FV seems to > have problem with the latest dynticks patches from FC7 kernels. > > The new patch is much simpler; at the same time it's uglier in that it's > an (even more) gross layering violation. > > vmxassist does the rewriting of the guests vPIC vectors, so the HV > *cannot* have any idea what vectors the guest actually intended to write > when we go back to 32-bit mode. However, vmxassist already hard-codes > the vectors in several places: the 16-bit irq_bases are hard-coded to > 0x08 and 0x70 in the trap bouncing code, and those bounce traps are > hard-coded to live at 0x20 and 0x28. If we are willing to extend that > hard-coding into the hypervisor (but JUST the existing vmxassist- > specific portion, not the general vPIC code), then the patch reduces to > just a few lines, as below. That's quite nasty, but I think that's okay in this case. I'll apply it. -- Keir