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] question about system call mechanism in xen

To: "Zang Hongyong" <zanghongyong@xxxxxxxxxx>
Subject: Re: [Xen-devel] question about system call mechanism in xen
From: "Jan Beulich" <jbeulich@xxxxxxxxxx>
Date: Mon, 17 Mar 2008 14:57:46 +0000
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Mon, 17 Mar 2008 07:57:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080317134328.5BEC1136934@xxxxxxxxxx>
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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <20080317134328.5BEC1136934@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> "Zang Hongyong" <zanghongyong@xxxxxxxxxx> 17.03.08 15:02 >>>
>hi,
>  I'm interested in system call mechanism in Xen. My understanding (guess) as 
> follows.
>   1)When user application makes a system call, a "int 80" will occur. 
>   2)Then trap to Ring 0 (Which is hypervisor's location). 
>   3)Then hypervisor redirect it to Guest OS's kernel to do system call 
> operation.
>   4)Then back to Ring 0
>   5)back to user appliction
>
>  Is that true?

If everything is 32-bit, "int 80" will be used, but it'll be directed directly
to the guest kernel in ring 1 (i.e. the hypervisor isn't involved).

If the hypervisor is 64-bit, things behave differently based upon what
kind of kernel/app you're running and whether it's a AMD or Intel CPUs
the system is equipped with.

>  Where can I get documents about this question in detail?

Source code is probably the only reference.

Jan


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