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

Re: [Xen-devel] traps and call back mechanism in XEN

To: Richard Ta-Min <tamin@xxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] traps and call back mechanism in XEN
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Fri, 22 Oct 2004 08:50:43 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxxxx
Delivery-date: Fri, 22 Oct 2004 08:57:40 +0100
Envelope-to: steven.hand@xxxxxxxxxxxx
In-reply-to: Your message of "Thu, 21 Oct 2004 20:05:01 EDT." <Pine.GSO.4.58.0410212001590.13194@xxxxxxxxxxxxxxxxxxxxx>
List-archive: <http://sourceforge.net/mailarchive/forum.php?forum=xen-devel>
List-help: <mailto:xen-devel-request@lists.sourceforge.net?subject=help>
List-id: List for Xen developers <xen-devel.lists.sourceforge.net>
List-post: <mailto:xen-devel@lists.sourceforge.net>
List-subscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=subscribe>
List-unsubscribe: <https://lists.sourceforge.net/lists/listinfo/xen-devel>, <mailto:xen-devel-request@lists.sourceforge.net?subject=unsubscribe>
Sender: xen-devel-admin@xxxxxxxxxxxxxxxxxxxxx
> Hello,
> 
> I am trying to figure out how the trap and callback mechanism works
> between a guest OS and XEN. When a guest OS starts up, it uses the
> HYPERVISOR_set_trap_table() to register a set of traps with XEN.
> For example, it registers the trap that will handle a divide_error or
> page_fault exception.
> 
> Now when XEN gets an exception, XEN executes the do_trap() function that
> is found in xen/arch/x86/traps.c.
> do_trap() retrieves the current domain's trap information that was registered
> with HYPERVISOR_set_trap_table() and fills in a structure called
> "guest_trap_bounce". From that point on, I don't quite follow how the guest OS
> comes into play to handle the exception. Could someone please give me some
> directions.

The guest_trap_counce is interpreted in arch/x86/x86_32/entry.S and
used to create a stack frame on the ring-1 (guest OS) stack.

 -- Keir


-------------------------------------------------------
This SF.net email is sponsored by: IT Product Guide on ITManagersJournal
Use IT products in your business? Tell us what you think of them. Give us
Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out more
http://productguide.itmanagersjournal.com/guidepromo.tmpl
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/xen-devel

<Prev in Thread] Current Thread [Next in Thread>