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 1/2] x86, hvm: allow another vcpu to receive PIT

To: Kouya Shimura <kouya@xxxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH 1/2] x86, hvm: allow another vcpu to receive PIT IRQ (support kexec/kdump on hvm)
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 30 Jun 2009 10:02:30 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 30 Jun 2009 02:03:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <7kmy7qnogg.fsf@xxxxxxxxxxxxxxxxxxxxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: Acn5WHR4j7bv1jJ7QVe2tQRbvPabwgACQrY/
Thread-topic: [PATCH 1/2] x86,hvm: allow another vcpu to receive PIT IRQ (support kexec/kdump on hvm)
User-agent: Microsoft-Entourage/12.19.0.090515
On 30/06/2009 08:57, "Kouya Shimura" <kouya@xxxxxxxxxxxxxx> wrote:

>> Really? Why would it do that?
> 
> Not always. kdump leaves one cpu which has received a crash signal
> and halts all other cpus. I don't know why.

That seems very brave of it, if it also expects interrupts to still work!
Does it really require *all* interrupts still to be functional?

>> These patches are pretty nasty. We can perhaps come up with a neater smaller
>> version of them if there's a real need.
> 
> Hmm, though I tried to make them small...
> Could you refine them?

Well, looking at patch 1/2 to start with, some of the issues you address are
not particular to the PIT, but to any interrupt delivered via vpt.c. I
suspect what you really need is a hook into vpt.c when a vcpu goes down, to
move all its vpt's (except its own LAPIC one) onto another vcpu's list. And
on create_periodic_time() ignore the suggested vcpu given by the caller if
that vcpu is down. And disable the IRQ0_SPECIAL_ROUTING in vioapic.c if
vcpu0 is down.

Patch 2/2 I suppose something like that might be acceptable. Still it'd be
nice to not have every VCPU piling into hvm_dirq_assist(). Perhaps that and
vpt.c could agree on who their current 'fallback vcpu' is, and have that
inherit orphaned vpts and do all dirq assistance.

It's still a bit fragile and a bit of a pain in the butt though. Is kdump in
HVM guests super important?

 -- Keir



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