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

xen-devel

[Top] [All Lists]

[Xen-devel] A Question about Interrupt Handling

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] A Question about Interrupt Handling
From: Jiaqing Du <jiaqing@xxxxxxxxx>
Date: 2010年1月12日 18:51:49 +0100
Delivery-date: 2010年1月13日 08:59:50 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=3UjC4q2dsypYE2NMJy8FidLTBZ3HJep2k7w3kPKktt0=; b=CIBrkKaQPUDAaQYpT+0mJe3rSL/Q8mnQX+Kl+y4p9of1RI3C7hJaoHeEOPlb4wUCRx Jr/6AJMbwp2ALsdvHyUWiUCHB5lijroyr2wN4QrJM0J4cbPlqsTtccUrWuvucbwbLYSK 2yWhwYegdC+M27QG3wUoYNHO5PL/wdySeSbtU=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=UErCdVFwgBgZxqYSX8krl2zy4JriWCej1OX1obNEvRnHuqrmoash8T3uMD6ynUw/ZQ 6eSGmmMa8suTt4Ou0o7QM3TbfEi2H4LiT7jFXLI3rQ7FRkcpGAqYNZEsHUzx/rfGlu1/ 9Ho69dj5V8zpH0Tnp6i8/VpmIAyobxYU42Jfk=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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
Hi list,
I am trying to figure out when & how a interrupt handler of the guest
is called after Xen sets evtchn_upcall_pending to non-zero. Below is
my understanding. Please let me know if something is wrong.
When Xen wants to inject an interrupt to the guest, the following
functions are called sequentially.
send_guest_vcpu_virq()-->evtchn_set_pending()-->vcpu_mark_events_pending()-->vcpu_kick()-->cpu_raise_softirq()-->smp_send_event_check_cpu()-->send_IPI_mask(mask,
EVENT_CHECK_VECTOR). Then an interrupt handler will handle this IPI
with vector EVENT_CHECK_VECTOR. I think within this interrupt handler,
Xen calls the registered virtual interrupt handler of the guest. Right
or not?
The IPI handler is defined as
BUILD_SMP_INTERRUPT(event_check_interrupt,EVENT_CHECK_VECTOR),
then the definition of this macro goes here,
#define BUILD_SMP_INTERRUPT(x,v) XBUILD_SMP_INTERRUPT(x,v)
#define XBUILD_SMP_INTERRUPT(x,v) \
asmlinkage void x(void); \
__asm__( \
 "\n"__ALIGN_STR"\n" \
 ".globl " STR(x) "\n\t" \
 STR(x) ":\n\t" \
 "pushl $"#v"<<16\n\t" \
 STR(FIXUP_RING0_GUEST_STACK) \
 STR(SAVE_ALL(1f,1f)) "\n\t" \
 "1:movl %esp,%eax\n\t" \
 "pushl %eax\n\t" \
 "call "STR(smp_##x)"\n\t" \
 "addl 4,ドル%esp\n\t" \
 "jmp ret_from_intr\n");
Inside this assembly code block, smp_event_check_interrupt() is
called. Then I could not find where this function is defined..
Any comments?
Thanks,
Jiaqing
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] A Question about Interrupt Handling, Jiaqing Du <=
Previous by Date: [Xen-devel] xc_dom_probe_bzimage_kernel: kernel is not a bzImage , Jed Smith
Next by Date: [Xen-devel] Re: xc_dom_probe_bzimage_kernel: kernel is not a bzImage , Jed Smith
Previous by Thread: [Xen-devel] xc_dom_probe_bzimage_kernel: kernel is not a bzImage , Jed Smith
Next by Thread: [Xen-devel] domain U create problem with xen-unstable , nizhichen
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /