WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] x86, hvm: Allow delivery of timer interrupts to

To: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] x86, hvm: Allow delivery of timer interrupts to VCPUs != 0.
From: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Date: Mon, 6 Jul 2009 16:05:09 +0900
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 06 Jul 2009 00:05:42 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <C6738EEF.EC25%keir.fraser@xxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <7kzlbmmc69.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx> <C6738EEF.EC25%keir.fraser@xxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Keir,

You are correct. I misunderstood the issue. 
With your suggestion (always use i8259_target), i8259_target in kdump
transits as: NULL=>vcpu1=>vcpu0=>vcpu1.
In this case, timer interrupts were missed in my previous patch, but
that was my fault. (I felt weird that i8259_target points vcpu0 in
spite of the halt)

I'll post two patches per your suggestion. one is cleanup of hpet.c
and the other is for delivery of timer interrupts.

Thanks,
Kouya

Keir Fraser writes:
> On 03/07/2009 08:57, "Kouya Shimura" <kouya@xxxxxxxxxxxxxx> wrote:
> 
> > - I'm afraid that d->arch.hvm_domain.i8259_target == NULL
> 
> If VCPUj is != NULL then VCPUi is also != NULL for all i < j. So this is not
> a concern: there's always a VCPU0 if there are any VCPUs at all.
> 
> > - if vcpu[0] is halted and all vlapic.LVT0 are masked,
> >   timer doesn't work even when vlapic will be unmasked
> >   not as ExtINT mode.
> 
> Not sure what you mean? If legacy IRQs are routed through the IOAPIC then it
> does not matter whether LAPIC.LVT0 is masked. And __vlapic_accept_pic_intr()
> correctly handles that. If virtual wire mode is not through the IOAPIC then
> of course LVT0 mask does matter, but I think we have that case correct too.
> 
> > So, I think that the last __vlapic_accept_pic_intr'ed vcpu
> > should be reserved in d->arch.hvm_domain.i8259_target.
> 
> I don't think the logic needs to change.
> 
>  -- Keir
> 

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel