From: Keir Fraser Subject: Re: [PATCH][VT] Clear the pending interrupt on shared page when PIC initialized Date: Mon, 12 Sep 2005 18:47:48 +0100 Message-ID: <0191eb26b5fa54ce175604933ac122b1@cl.cam.ac.uk> References: Mime-Version: 1.0 (Apple Message framework v622) Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: "Jiang, Yunhong" , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 12 Sep 2005, at 18:36, Keir Fraser wrote: >> This patch works for following scenerio: >> 1) The BIOS set the irq base to 0x20, and then interrupt is injected >> through shared page. >> 2) The OS disable interurpt , and reset the PIC with ICW1~ICW4. In >> this >> process, it changes the irq base for PIC from 0x20 to 0x30 through >> ICW2. > > Okay, thanks for the clarification and I see why the PIT bart is > needed now. But, in the PIC code, wouldn't hanging the reset off of > cpu_reset_interrupt() make more sense? I should add that I think in the end the PIC emulation belongs in Xen, or the PIT should be moved out to the qemu device model (but only after all that code is moved out of domain0 user space). The current architectural split across Xen/dom0 is pretty gross. -- Keir