From: "Peter Teoh" Subject: SMP / Multicore mode transition point Date: Fri, 17 Aug 2007 13:04:57 +0800 Message-ID: <004801c7e08c$283eb530$2701a8c0@lifeisshort> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0512716573==" Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Mime-version: 1.0 Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org This is a multi-part message in MIME format. --===============0512716573== Content-Type: multipart/alternative; boundary="----=_NextPart_000_0045_01C7E0CF.36454570" This is a multi-part message in MIME format. ------=_NextPart_000_0045_01C7E0CF.36454570 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Several newbie question: At which point in the source code (two function point - one for Xen, and = another for linux-xen) is the processor properly setup to run in = multiprocessor mode? =20 VMX/SVM mode (specified through EFER_SVME bit, eg, in stop_svm() = function) is always specific per-CPU, right? Therefore, whenever the = Xen make a transition from guest to host OS, must the entire set of CPUs = all be switched at the same time? Ie, can one CPU remain executing in = Xen kernel, while another is executing in linux-xen kernel mode? Answering the above, will help me to understand the next question = better: Logical speaking, the treatment for transition from guest to host should = be asymmetrical to host to guest in pending IRQs. Ie, in guest->host = transition, even if there are pending IRQ in any of the CPUs, transition = can still occurr, for security reasons. But in host->guest transition, = if there are pending IRQs, and if transition is allowed, it will lead to = complicated re-entrancy problems. So this has to be disallowed, right? ------=_NextPart_000_0045_01C7E0CF.36454570 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable
Several newbie = question:
 
At which point in the source code (two = function=20 point - one for Xen, and another for linux-xen) is the processor = properly setup=20 to run in multiprocessor mode?  
 
VMX/SVM mode (specified through = EFER_SVME bit, eg,=20 in stop_svm() function) is always specific per-CPU, right?  =20 Therefore, whenever the Xen make a transition from guest to host OS, = must the=20 entire set of CPUs all be switched at the same time?   Ie, can = one CPU=20 remain executing in Xen kernel, while another is executing in linux-xen = kernel=20 mode?
 
Answering the above, will help me to = understand the=20 next question better:
 
Logical speaking, the treatment for = transition from=20 guest to host should be asymmetrical to host to guest in pending=20 IRQs.   Ie, in = guest->host=20 transition, even if there are pending IRQ in any of the CPUs, transition = can=20 still occurr, for security reasons.   But in = host->guest=20 transition, if there are pending IRQs, and if transition is allowed, it = will=20 lead to complicated re-entrancy problems.   So this has to be=20 disallowed, right?
 
------=_NextPart_000_0045_01C7E0CF.36454570-- --===============0512716573== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel --===============0512716573==--