From: Pankaj Parakh Subject: Re: How to Stop scheduler Date: Wed, 4 Nov 2009 11:29:29 +0530 Message-ID: <27a8ee1b0911032159q285332d7p883854502bccc28a@mail.gmail.com> References: <27a8ee1b0911021302n37b76a0bw5259c7b594147abd@mail.gmail.com> <27a8ee1b0911031102n39adcfc4wd994bc171c41d518@mail.gmail.com> <4AF08058.8070801@eu.citrix.com> <27a8ee1b0911032138u4c8d4e00rb574bbff1487241c@mail.gmail.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0293530830==" Return-path: In-Reply-To: <27a8ee1b0911032138u4c8d4e00rb574bbff1487241c@mail.gmail.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: George Dunlap Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org --===============0293530830== Content-Type: multipart/alternative; boundary=00504502b1a65a4d7c04778550e7 --00504502b1a65a4d7c04778550e7 Content-Type: text/plain; charset=ISO-8859-1 If I take domain_update_lock for a domain, what will happen to its interrupts for IO completions or any other type..?? And will it be scheduled if I hold that lock..?? On Wed, Nov 4, 2009 at 11:08 AM, Pankaj Parakh wrote: > So is that means there will be no interrupt loss, and also clock in > the paused domain will be in right and expected time.. ?? > > On Wed, Nov 4, 2009 at 12:41 AM, George Dunlap > wrote: > > If you call vcpu_pause(), it atomically increments a counter in the vcpu > > struct. While that counter is non-zero, the vcpu *will not* be > scheduled, > > interrupts or no. Interrupts will be delivered when it's scheduled > again. > > > > -George > > > > Pankaj Parakh wrote: > >> > >> If I pause a vcpu/domain using those functions, say if a domain's I/O > >> request over then its interrupt will raise and it can restart its > >> scheduling rite..?? How this interrupts are/ can be queued so that > >> when the vcpu is in pause state, it should nat change its state and > >> when it come back to wait state, those interrupt will not be lost.. > >> > >> On Tue, Nov 3, 2009 at 5:18 PM, George Dunlap > >> wrote: > >> > >>> > >>> Do you mean that you want to stop one specific vcpu / domain from > >>> being scheduled? > >>> > >>> If so, you're looking for the following functions: > >>> vcpu_pause(), vcpu_unpause() > >>> domain_pause(), domain_unpause(). > >>> > >>> They're defined in xen/common/domain.c. > >>> > >>> -George > >>> > >>> > >>> On Mon, Nov 2, 2009 at 9:02 PM, Pankaj Parakh < > me.pankajparakh@gmail.com> > >>> wrote: > >>> > >>>> > >>>> Hi All, > >>>> > >>>> I am working on a project wherein I wanted to stop the scheduling > >>>> activity in hypervisor through 'generic' part of scheduler, I have lil > >>>> confusion as to what all things I need to mask/stop for disabling > >>>> hypervisor to schedule any vcpu untill I want. > >>>> > >>>> Issues which I can think are about I/O waits or Zombie VCPUs. But how > >>>> to tackle them... I dont know.. > >>>> > >>>> I wanted to know what all responsibility the generic scheduler holds > >>>> in hypervisor, > >>>> > >>>> Any type of info or pointer can be useful. > >>>> > >>>> Thanks > >>>> Pankaj Parakh > >>>> > >>>> _______________________________________________ > >>>> Xen-devel mailing list > >>>> Xen-devel@lists.xensource.com > >>>> http://lists.xensource.com/xen-devel > >>>> > >>>> > >> > >> > >> > >> > > > > > > > > -- > Pankaj Parakh > -- Pankaj Parakh --00504502b1a65a4d7c04778550e7 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If I take domain_update_lock for=A0 a domain, what will happen to its inter= rupts for IO completions or any other type..??
And will it be scheduled = if I hold that lock..??

On Wed, Nov 4, 20= 09 at 11:08 AM, Pankaj Parakh <me.pankajparakh@gmail.com> wrote:
So is that means = there will be no interrupt loss, and also clock in
the paused domain will be in right and expected time.. ??

On Wed, Nov 4, 2009 at 12:41 AM, George Dunlap
<george.dunlap@eu.citrix.= com> wrote:
> If you call vcpu_pause(), it atomically increments a counter in the vc= pu
> struct. =A0While that counter is non-zero, the vcpu *will not* be sche= duled,
> interrupts or no. =A0Interrupts will be delivered when it's schedu= led again.
>
> -George
>
> Pankaj Parakh wrote:
>>
>> =A0If I pause a vcpu/domain using those functions, say if a domain= 's I/O
>> request over then its interrupt will raise and it can restart its<= br> >> scheduling rite..?? How this interrupts are/ can be queued so that=
>> when the vcpu is in pause state, it should nat change its state an= d
>> when it come back to wait state, those interrupt will not be lost.= .
>>
>> On Tue, Nov 3, 2009 at 5:18 PM, George Dunlap
>> <George.Dunlap@e= u.citrix.com> wrote:
>>
>>>
>>> Do you mean that you want to stop one specific vcpu / domain f= rom
>>> being scheduled?
>>>
>>> If so, you're looking for the following functions:
>>> vcpu_pause(), vcpu_unpause()
>>> domain_pause(), domain_unpause().
>>>
>>> They're defined in xen/common/domain.c.
>>>
>>> =A0-George
>>>
>>>
>>> On Mon, Nov 2, 2009 at 9:02 PM, Pankaj Parakh <me.pankajparakh@gmail.com>
>>> wrote:
>>>
>>>>
>>>> Hi All,
>>>>
>>>> I am working on a project wherein I wanted to stop the sch= eduling
>>>> activity in hypervisor through 'generic' part of s= cheduler, I have lil
>>>> confusion as to what all things I need to mask/stop for di= sabling
>>>> hypervisor to schedule any vcpu untill I want.
>>>>
>>>> Issues which I can think are about I/O waits or Zombie VCP= Us. But how
>>>> to tackle them... I dont know..
>>>>
>>>> I wanted to know what all responsibility the generic sched= uler holds
>>>> in hypervisor,
>>>>
>>>> Any type of info or pointer can be useful.
>>>>
>>>> Thanks
>>>> Pankaj Parakh
>>>>
>>>> _______________________________________________
>>>> Xen-devel mailing list
>>>> Xen-devel= @lists.xensource.com
>>>> http://lists.xensource.com/xen-devel
>>>>
>>>>
>>
>>
>>
>>
>
>



--
Pankaj Parakh



--
Pankaj Parakh --00504502b1a65a4d7c04778550e7-- --===============0293530830== 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 --===============0293530830==--