From patchwork Mon Jun 23 16:37:43 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 32378 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f72.google.com (mail-yh0-f72.google.com [209.85.213.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1E0DA203AC for ; Mon, 23 Jun 2014 16:40:23 +0000 (UTC) Received: by mail-yh0-f72.google.com with SMTP id f10sf26845404yha.3 for ; Mon, 23 Jun 2014 09:40:22 -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=UI5SM2JZZhF1XASA3Xs9BdPcaneSZPRyMoRgeqX+7jI=; b=e5r3yebuiClo1cPXaX6x3ldGOrTTkoZNErSdJymH/hH7Ek+BApS0MXYPMTiKe6AFHV 1lvU/zxQSVUdhcu4q5W3d74u/RIwhudytIkXTaLBBJBBUmAewx/2KrvjYeJTSYPcFJMz xgsjjq9ibC5bstV8dEJnxNV9LrTI9XDBqzg4pSeavk3B1ODAnWDLmZ1NgVzlU99ps2Nm aGixCKfM36bpMzID5BtG0d5z8ImO2oBo+1BQNElUOHl1x0AKpizdPG14dS+89qTaUr4b Nf6lejF7JvboFoZhsRgr1AqLrmaAcEpdzGM+Zc/aJoSr15t6vLBYiONxmt43NHJUu51o Sm1w== X-Gm-Message-State: ALoCoQnhp5x4im/oSCNEkUXPqVgvksEvDpiVICwCNVCzd+rCYucA+thMTmuNL8q1lDWuukVqIwI7 X-Received: by 10.224.13.67 with SMTP id b3mr10010588qaa.2.1403541622953; Mon, 23 Jun 2014 09:40:22 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.37 with SMTP id g34ls1960764qgd.64.gmail; Mon, 23 Jun 2014 09:40:22 -0700 (PDT) X-Received: by 10.221.37.1 with SMTP id tc1mr7786830vcb.32.1403541622829; Mon, 23 Jun 2014 09:40:22 -0700 (PDT) Received: from mail-ve0-f178.google.com (mail-ve0-f178.google.com [209.85.128.178]) by mx.google.com with ESMTPS id dn9si9335760vdc.46.2014.06.23.09.40.22 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 23 Jun 2014 09:40:22 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.128.178 as permitted sender) client-ip=209.85.128.178; Received: by mail-ve0-f178.google.com with SMTP id oy12so6388771veb.23 for ; Mon, 23 Jun 2014 09:40:22 -0700 (PDT) X-Received: by 10.58.209.7 with SMTP id mi7mr550705vec.80.1403541622725; Mon, 23 Jun 2014 09:40:22 -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 tc5csp144327vcb; Mon, 23 Jun 2014 09:40:22 -0700 (PDT) X-Received: by 10.50.141.199 with SMTP id rq7mr19516864igb.37.1403541622171; Mon, 23 Jun 2014 09:40:22 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id ii4si33422165icc.34.2014.06.23.09.40.21 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 23 Jun 2014 09:40:22 -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 1Wz7GD-0000ue-M6; Mon, 23 Jun 2014 16:38:25 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wz7GC-0000tr-5R for xen-devel@lists.xensource.com; Mon, 23 Jun 2014 16:38:24 +0000 Received: from [193.109.254.147:58337] by server-14.bemta-14.messagelabs.com id 98/DB-08195-FF758A35; Mon, 23 Jun 2014 16:38:23 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-8.tower-27.messagelabs.com!1403541499!13150252!3 X-Originating-IP: [66.165.176.63] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni42MyA9PiAzMDYwNDg=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 15566 invoked from network); 23 Jun 2014 16:38:22 -0000 Received: from smtp02.citrix.com (HELO SMTP02.CITRIX.COM) (66.165.176.63) by server-8.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 23 Jun 2014 16:38:22 -0000 X-IronPort-AV: E=Sophos;i="5.01,531,1400025600"; d="scan'208";a="146222542" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO02.CITRIX.COM with ESMTP; 23 Jun 2014 16:38:20 +0000 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; Mon, 23 Jun 2014 12:38:19 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1Wz7G1-0000zc-Uk; Mon, 23 Jun 2014 17:38:13 +0100 From: Stefano Stabellini To: Date: Mon, 23 Jun 2014 17:37:43 +0100 Message-ID: <1403541463-23734-5-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: MIA2 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 v6 5/5] 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.128.178 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 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 e9eb0bc..8c1561f 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); @@ -528,7 +534,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); @@ -1251,7 +1257,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);