[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH v2 0/4] xen: sched: support vcpu hotplug/hotunplug in the 'null scheduler'



Hello,

Here it is v2 of my series, about fixing vcpu off- and on-lining in the
null scheduler, recently reviewed by George.

v1 posting is here:
https://lists.xenproject.org/archives/html/xen-devel/2018-08/msg02182.html
Message-Id: <153515586506.7407.8908626058440527641.stgit@xxxxxxxxxxxxxxxxxxx>

Basically, it turned out, while discussing this patch:
https://lists.xenproject.org/archives/html/xen-devel/2018-01/msg00249.html

that the 'null scheduler' does not really support vcpu
hotplug/hotunplug. In fact, under some circumnstances, it is possible
that the vcpus which are actually offline, get assigned to a pcpu, while
one or more online vcpus, may be left in the wait list, and stay there
forever.

One of these circumnstances was, for instance, when the 'null scheduler'
was used within the PV-SHIM, but the problem is more general, and this
series fixes it.

I think I've addressed Goerge's comments. The most notable change is the
merge of what in v1 were patch 2 and patch 3. The resulting patch (i.e.,
patch 2 of this series) is the only one missing an Ack to go in.

The series is also available in git:
git://xenbits.xen.org/people/dariof/xen.git  rel/sched/null-fix-vcpu-hotplug-v2

Thanks and Regards,
Dario
---
Dario Faggioli (4):
      xen: sched: refector code around vcpu_deassign() in null scheduler
      xen: sched: deal with vCPUs being or becoming online or offline
      xen: sched: reassign vCPUs to pCPUs, when they come back online
      xen: sched: refactor the ASSERTs around vcpu_deassing()

 xen/common/sched_null.c |  210 ++++++++++++++++++++++++++++++++++-------------
 1 file changed, 152 insertions(+), 58 deletions(-)
--
Dario Faggioli, Ph.D
http://about.me/dario.faggioli
Virtualization Software Engineer
SUSE Labs, SUSE https://www.suse.com/
-------------------------------------------------------------------
<<This happens because _I_ choose it to happen!>> (Raistlin Majere)

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.