From patchwork Wed Aug 13 16:29:40 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 35383 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oi0-f72.google.com (mail-oi0-f72.google.com [209.85.218.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 58D6220DCC for ; Wed, 13 Aug 2014 16:33:26 +0000 (UTC) Received: by mail-oi0-f72.google.com with SMTP id a141sf47704432oig.7 for ; Wed, 13 Aug 2014 09:33:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id:in-reply-to :references:mime-version:cc:subject:precedence:list-id :list-unsubscribe:list-post:list-help:list-subscribe:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:list-archive:content-type:content-transfer-encoding; bh=zxKSKPLN87PQQaHzrFsS/2RE0brraIY3mR5ZRMBcxSA=; b=kvUXl/wnruq9Op2jMLQVS1ug00Rhm7KkXSud0EcMIrbulLveL8ZqNb6m/Iih1D8Yba nl0J3Z6F3n8FSVUTjgLiszYhTbA9dxJpIEfHe4vYUrVJlqm9Psj0nfEt3AhE53dkuqGD 9+Tcgifl2PWJzLMne/lDgJVyIzzk6bJmvnlUKYSRg7r3r6ERqWfDuePHRWve1jLbG52i 8UOXDTYK1HkqcfWH6FqgA8yNU9IRI3zVl10e2On0gGbVejp/KHVNtiQiiYZ32dmdqgsM VPsbQLISPEDEOG8TPiu9d6tyqFNy+P8a9Opjm64r0HalutNRBIntR6tNfGsfiF8RtKkV B+Tw== X-Gm-Message-State: ALoCoQlz5iHFFXvTb1Y0sMDPPwvdXQQdJiqKOHAIVIEuuu+4zkNWiL7ekiEPfLPZ8MEgVpr0m/Tk X-Received: by 10.42.21.209 with SMTP id l17mr3225882icb.8.1407947605802; Wed, 13 Aug 2014 09:33:25 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.23.137 with SMTP id 9ls610989qgp.68.gmail; Wed, 13 Aug 2014 09:33:25 -0700 (PDT) X-Received: by 10.52.164.199 with SMTP id ys7mr4073599vdb.42.1407947605713; Wed, 13 Aug 2014 09:33:25 -0700 (PDT) Received: from mail-vc0-f177.google.com (mail-vc0-f177.google.com [209.85.220.177]) by mx.google.com with ESMTPS id xb10si1412587vcb.45.2014.08.13.09.33.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 13 Aug 2014 09:33:25 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) client-ip=209.85.220.177; Received: by mail-vc0-f177.google.com with SMTP id hy4so15011330vcb.8 for ; Wed, 13 Aug 2014 09:33:25 -0700 (PDT) X-Received: by 10.52.73.202 with SMTP id n10mr1561206vdv.86.1407947605638; Wed, 13 Aug 2014 09:33:25 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.221.37.5 with SMTP id tc5csp344384vcb; Wed, 13 Aug 2014 09:33:25 -0700 (PDT) X-Received: by 10.42.107.70 with SMTP id c6mr7724869icp.86.1407947604973; Wed, 13 Aug 2014 09:33:24 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id l12si4901871igf.43.2014.08.13.09.33.24 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 13 Aug 2014 09:33:24 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XHbSL-0003WO-40; Wed, 13 Aug 2014 16:31:21 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XHbSJ-0003T0-0z for xen-devel@lists.xensource.com; Wed, 13 Aug 2014 16:31:19 +0000 Received: from [85.158.137.68:22648] by server-7.bemta-3.messagelabs.com id 96/E6-01084-6D29BE35; Wed, 13 Aug 2014 16:31:18 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-14.tower-31.messagelabs.com!1407947471!11083954!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 21302 invoked from network); 13 Aug 2014 16:31:13 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-14.tower-31.messagelabs.com with RC4-SHA encrypted SMTP; 13 Aug 2014 16:31:13 -0000 X-IronPort-AV: E=Sophos;i="5.01,857,1400025600"; d="scan'208";a="161414771" Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Wed, 13 Aug 2014 12:31:09 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1XHbS4-00059X-2e; Wed, 13 Aug 2014 17:31:04 +0100 From: Stefano Stabellini To: Date: Wed, 13 Aug 2014 17:29:40 +0100 Message-ID: <1407947384-24279-6-git-send-email-stefano.stabellini@eu.citrix.com> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: References: MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian.Campbell@citrix.com, Stefano Stabellini , tim@xen.org, julien.grall@citrix.com, keir.xen@gmail.com, jbeulich@suse.com Subject: [Xen-devel] [PATCH v12 06/10] xen: introduce sched_move_irqs X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: stefano.stabellini@eu.citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.177 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Introduce sched_move_irqs: it calls arch_move_irqs and evtchn_move_pirqs. Replace calls to evtchn_move_pirqs with calls to sched_move_irqs. Signed-off-by: Stefano Stabellini Acked-by: Jan Beulich Acked-by: George Dunlap Acked-by: Ian Campbell CC: jbeulich@suse.com CC: tim@xen.org CC: keir.xen@gmail.com --- xen/common/schedule.c | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index 55503e0..73cc2ea 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -226,6 +226,12 @@ int sched_init_vcpu(struct vcpu *v, unsigned int processor) return 0; } +static void sched_move_irqs(struct vcpu *v) +{ + arch_move_irqs(v); + evtchn_move_pirqs(v); +} + int sched_move_domain(struct domain *d, struct cpupool *c) { struct vcpu *v; @@ -301,7 +307,7 @@ int sched_move_domain(struct domain *d, struct cpupool *c) v->sched_priv = vcpu_priv[v->vcpu_id]; if ( !d->is_dying ) - evtchn_move_pirqs(v); + sched_move_irqs(v); new_p = cpumask_cycle(new_p, c->cpu_valid); @@ -526,7 +532,7 @@ static void vcpu_migrate(struct vcpu *v) spin_unlock_irqrestore(old_lock, flags); if ( old_cpu != new_cpu ) - evtchn_move_pirqs(v); + sched_move_irqs(v); /* Wake on new CPU. */ vcpu_wake(v); @@ -1249,7 +1255,7 @@ static void schedule(void) stop_timer(&prev->periodic_timer); if ( next_slice.migrated ) - evtchn_move_pirqs(next); + sched_move_irqs(next); vcpu_periodic_timer_work(next);