|
|
|
|
|
|
|
|
|
|
xen-devel
RE: [Xen-devel] [PATCH][VT] Clear the pending interrupt on shared page w
Keir Fraser wrote:
> On 12 Sep 2005, at 12:11, Jiang, Yunhong 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?
Yes, you are right that adding a new hook is not a good idea.
And how about place it on the pic_reset?
1) I think the cpu_reset_interrupt() is a common API on qemu for
hardware interrupt/exception etc,while clear the shared page is just for
hardware interrupt. Of course, this function is currently used just for
hardware interrupt since qemu works as a device model :) But change here
may cause following code on cpu_reset_interrupt().
if ( mask == CPU_INTERRUPT_HARD)
......clear the shared page...
2) I think the pic_intr filed on shared page is something like IRR on
pic device model, and can be logically treated as part of PIC device
model. So it make sense to clear it on pic_reset() just like clear IRR
there.
How do you think about this?
Thanks
Yunhong Jiang
>
> -- Keir
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
|
|
|
|