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: Re: [Xen-devel] question about system call mechanism in xen

To: "Zang Hongyong" <zanghongyong@xxxxxxxxxx>
Subject: Re: Re: [Xen-devel] question about system call mechanism in xen
From: weiming <zephyr.zhao@xxxxxxxxx>
Date: Mon, 17 Mar 2008 22:06:56 -0400
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>
Delivery-date: Mon, 17 Mar 2008 19:07:26 -0700
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; bh=+f+dYxrNZoBEHG2F1/jyQokw12fzxOS0D+1xXvxIuew=; b=XcC5nJMrXrokLfkCAaeLptyddQ45BhudCYAu1yuwPHQkaFmniNPlKxefe1LdlTcSWvjeyrF+DCOlVXvoF4ZdKtfUVUuyyFOOjElkrRrbqMrIii3FsvO8c8tqAdiXdhKN077KWhSXujKdeqkD/w1ehtdX75vUjpyIlYCJ3pwQaj4=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=f80vCORiBUaFHV3f/gu+V2C3GcoBw1rm+FTiR0V62785Ik2Kx/BtOUobcVSnYfwKP7Ko+drmltjzEsVdZapWvDXtTM9IiMwbzMk9PWefcIO0M10PQEYTsTWtyNKWAoRsl5sgtzK7YDx4i1sXzg92qqFWuLm29MNWbh3fLph/Z7Y=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <20080318010242.9C7C013687A@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: <20080318010242.9C7C013687A@xxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
under x86_32, syscall is essentially a soft int, which will be handled by hardware (interrupt controller): when a guest domain is scheduled to run, it just installs the entry point of the corresponding service routine to the IDT. Then whenever a int 80 is issued, control is transferred to the handler. The whole process is free of xen's interference. that why it's called "directly"

weiming

2008/3/17 Zang Hongyong <zanghongyong@xxxxxxxxxx>:
======= 2008-03-17 22:57:46 您在来信中写道:=======

>>>> "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).
Many thanks
yet the words "directed directly" equals "fast trap" which appears in "Xen and the Art of Virtualization".
Right?
"Fast trap" is implemented in this way that systemcall's item in IDT of hypervisor points to Guest's kernel operation.
Right?


>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

= = = = = = = = = = = = = = = = = = = =



礼!


Zang Hongyong
zanghongyong@xxxxxxxxxx
2008-03-18


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


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>