Re: [Xen-devel] what's the equivalent function to "schedule_timeout" in xen kernel?

2015-11-16 Thread Olaf Hering
On Mon, Nov 16, Andrew Cooper wrote: > On 16/11/15 06:36, Zhangbo (Oscar) wrote: > > Hi all: > >   I'd like to SLEEP a while in xen kernel during VMEXIT, the easiest way > > is to call "udelay" or "mdelay" there. However, these 2 functions use busy > > wait to sleep, which is a waste. > >   In

Re: [Xen-devel] what's the equivalent function to "schedule_timeout" in xen kernel?

2015-11-16 Thread Andrew Cooper
On 16/11/15 06:36, Zhangbo (Oscar) wrote: > Hi all: >   I'd like to SLEEP a while in xen kernel during VMEXIT, the easiest way is > to call "udelay" or "mdelay" there. However, these 2 functions use busy wait > to sleep, which is a waste. >   In linux kernel, there's a function named

Re: [Xen-devel] what's the equivalent function to "schedule_timeout" in xen kernel?

2015-11-16 Thread George Dunlap
On Mon, Nov 16, 2015 at 9:56 AM, Andrew Cooper wrote: > On 16/11/15 06:36, Zhangbo (Oscar) wrote: >> Hi all: >>   I'd like to SLEEP a while in xen kernel during VMEXIT, the easiest way is >>to call "udelay" or "mdelay" there. However, these 2 functions use busy wait

[Xen-devel] what's the equivalent function to "schedule_timeout" in xen kernel?

2015-11-15 Thread Zhangbo (Oscar)
Hi all:   I'd like to SLEEP a while in xen kernel during VMEXIT, the easiest way is to call "udelay" or "mdelay" there. However, these 2 functions use busy wait to sleep, which is a waste.   In linux kernel, there's a function named 'schedule_timeout', allowing the CPU to run other tasks