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

[Xen-devel] [PATCH 1/2] unpause parked vcpu before destroying it


  • To: xen-devel@xxxxxxxxxxxxx, george.dunlap@xxxxxxxxxxxxx
  • From: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Date: Mon, 14 Oct 2013 07:29:29 +0200
  • Cc: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
  • Delivery-date: Mon, 14 Oct 2013 05:30:28 +0000
  • Domainkey-signature: s=s1536a; d=ts.fujitsu.com; c=nofws; q=dns; h=X-SBRSScore:X-IronPort-AV:Received:X-IronPort-AV: Received:From:To:Cc:Subject:Date:Message-Id:X-Mailer: In-Reply-To:References; b=use6mJaS+crAW6qC4bVDeZeimBegYNhdg7GJuNJ9V2GLIFJQRjZZwPO2 u2iBzW69VbMmn0CqTaVvofWZwrhH7bnODjWpG03Q2LcQTmqmnyLIpSH9f 6xZJfDvuTTqbiQTCgUOf1QlIMRe2/iGjptOD1og5BVA798ZPRR75ZSagE N0KnnuWpMdz0RbMSuqy+9ad36KsL0NEM6x8wmZgk57jhh/3b8WraVt9tx 44wo5zy7HCruqsSrPtvXwld57z/+2;
  • List-id: Xen developer discussion <xen-devel.lists.xen.org>

A capped out vcpu must be unpaused in case of moving it to another cpupool,
otherwise it will be paused forever.

Signed-off-by: Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>
---
 xen/common/sched_credit.c |    6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c
index 3d6ea7a..2dd5ed7 100644
--- a/xen/common/sched_credit.c
+++ b/xen/common/sched_credit.c
@@ -929,6 +929,12 @@ csched_vcpu_remove(const struct scheduler *ops, struct 
vcpu *vc)
 
     SCHED_STAT_CRANK(vcpu_destroy);
 
+    if ( test_and_clear_bit(CSCHED_FLAG_VCPU_PARKED, &svc->flags) )
+    {
+        SCHED_STAT_CRANK(vcpu_unpark);
+        vcpu_unpause(svc->vcpu);
+    }
+
     if ( __vcpu_on_runq(svc) )
         __runq_remove(svc);
 
-- 
1.7.10.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

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