Yes, in current scheduler, XEN4.0+, there is “burn_credits”
each time when the vcpu is de-scheduled.
It’s accurate than the previous version.
From: David Xu
Sent: Friday, July 22, 2011 9:58 AM
To: Lv, Hui
Subject: Re: [Xen-devel] Re: credits account issue
Thanks for your reply. Has this solution been added to new credit scheduler? I
am using Xen-3.4.2. And in this version, when the vcpu is de-scheduled, it
seems the current vcpu is just inserted into runqueue and its credit is not
if ( vcpu_runnable(current) )
BUG_ON( is_idle_vcpu(current) ||
snext = __runq_elem(runq->next);