From: tgh Subject: Re: [patch 30/44] xen: Add support for preemption Date: Wed, 31 Oct 2007 14:11:01 +0800 Message-ID: <47281C75.4040106@sina.com.cn> References: <20070716231536.937393000@xensource.com>> <20070716232915.672717000@xensource.com>> <4726F51C.4030709@sina.com.cn> <4727690F.4030502@goop.org> <4727D926.6050004@sina.com.cn> <4727DC88.2020803@goop.org> Mime-Version: 1.0 Content-Type: text/plain; charset=GB2312 Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <4727DC88.2020803@goop.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jeremy Fitzhardinge Cc: Xen-devel , Jeremy Fitzhardinge , lkml , Andi Kleen , Chris Wright , Andrew Morton List-Id: xen-devel@lists.xenproject.org Thank you for your reply and what about the kernel thread in the xen hypervisor,are there some instance of kernel threads running in the hypervisor? I am not sure ,but somewhere I read that there is no kernel thread in the xen hypervisor ,is it true or what about it? Thanks in advance Jeremy Fitzhardinge =D0=B4=B5=C0: > tgh wrote: > =20 >> Thank for your reply >> and I still have several questions >> =20 >> =20 >>> Yes, that's the normal mode of operation. The hypervisor will timesli= ce >>> multiple vcpus onto a single vcpu. >>> =20 >>> =20 >>> =20 >> that is ,the VM could be preempted by xen,and could xen hypervisor als= o >> be preempted to reschedule other vm or xen kernel thread?and are there >> the counterpart abstractions in xen for kernel thread in linux? >> =20 >> =20 > > Yes, a vcpu in Xen is the same as a task in the kernel. In the same way > the kernel multiplexes multiple tasks onto your cpu(s), Xen multiplexes > multiple vcpus onto your cpu(s). This isn't directly visible to the > guest kernel, in the same way that user processes can't generally > observe timeslicing. > > =20 >>> This patch doesn't relate to that; it's whether a Xen Linux guest's >>> kernel can be preempted to reschedule processes while running under X= en. >>> =20 >>> =20 >>> =20 >> that is ,the patch makes the guest's kernel, rather than xen, be able = to >> be preempted ,is it right? >> =20 >> =20 > > Yes. Previous to that change, kernel preemption was disabled when > compiling Xen support in. > > J > > _______________________________________________ > Xen-devel mailing list > Xen-devel@lists.xensource.com > http://lists.xensource.com/xen-devel > > > =20