From patchwork Thu Jul 24 17:33:08 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefano Stabellini X-Patchwork-Id: 34243 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ig0-f197.google.com (mail-ig0-f197.google.com [209.85.213.197]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 9676A20C7F for ; Thu, 24 Jul 2014 17:36:18 +0000 (UTC) Received: by mail-ig0-f197.google.com with SMTP id r2sf11029336igi.0 for ; Thu, 24 Jul 2014 10:36:18 -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=dumPU4jNwd6hBkOfmk3ibwOpmfVE4sudL6JLTJ4UTiE=; b=H02+LFr6Ejl3Mbe7SLBKefcWDBfQCo0xIMu+bOY+23pkV5d3lFs84erRyAIXqu30ze S38Xcfg+Ufr9YoOQOUa0uVvId4al+GT+X9/X/lKeAugFTUPXCreJmjTJyJNhzDbeqcvZ s0ntRY2esj5zyuYJv0n7mlLvIQIwspLqgbIbnqoTBf1E+JNtMaAlhR+YR91wBt+Wdiez HCGf2vp+glKj1gBkOtIJvDD/YYZKnwdIYbvhtkhw3sH3/mqeOlI6lXEDDEYomGW5NDJw i84XP0+GU5f3sl7lCZDLDMGOPBZATHkzgEZ+bsaSLfvHPhhA8zEvIHfbaafUDOpNAfrz rGtQ== X-Gm-Message-State: ALoCoQmLLolnks1i/ncNBJZZIuPP87CUPYSf5rPk94Z0oLrisf7to9ij6ppuCIhnaLkXHTQS+F59 X-Received: by 10.50.66.236 with SMTP id i12mr11963923igt.5.1406223378156; Thu, 24 Jul 2014 10:36:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.89.116 with SMTP id u107ls799474qgd.46.gmail; Thu, 24 Jul 2014 10:36:18 -0700 (PDT) X-Received: by 10.52.184.199 with SMTP id ew7mr12348232vdc.44.1406223377986; Thu, 24 Jul 2014 10:36:17 -0700 (PDT) Received: from mail-vc0-f180.google.com (mail-vc0-f180.google.com [209.85.220.180]) by mx.google.com with ESMTPS id jx5si1465672vec.2.2014.07.24.10.36.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 24 Jul 2014 10:36:17 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.180 as permitted sender) client-ip=209.85.220.180; Received: by mail-vc0-f180.google.com with SMTP id ij19so5433574vcb.11 for ; Thu, 24 Jul 2014 10:36:17 -0700 (PDT) X-Received: by 10.53.5.230 with SMTP id cp6mr12010920vdd.25.1406223377903; Thu, 24 Jul 2014 10:36:17 -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 tc5csp383671vcb; Thu, 24 Jul 2014 10:36:17 -0700 (PDT) X-Received: by 10.42.76.205 with SMTP id f13mr14097279ick.63.1406223377259; Thu, 24 Jul 2014 10:36:17 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id z6si16362604icc.25.2014.07.24.10.36.16 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 24 Jul 2014 10:36:17 -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 1XAMuN-0002Gy-5u; Thu, 24 Jul 2014 17:34:23 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XAMuM-0002Ge-9s for xen-devel@lists.xensource.com; Thu, 24 Jul 2014 17:34:22 +0000 Received: from [85.158.139.211:40662] by server-6.bemta-5.messagelabs.com id 81/1F-06284-D9341D35; Thu, 24 Jul 2014 17:34:21 +0000 X-Env-Sender: Stefano.Stabellini@citrix.com X-Msg-Ref: server-5.tower-206.messagelabs.com!1406223258!17387840!2 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 28780 invoked from network); 24 Jul 2014 17:34:20 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-5.tower-206.messagelabs.com with RC4-SHA encrypted SMTP; 24 Jul 2014 17:34:20 -0000 X-IronPort-AV: E=Sophos;i="5.01,725,1400025600"; d="scan'208";a="155399022" Received: from accessns.citrite.net (HELO FTLPEX01CL01.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 24 Jul 2014 17:34:18 +0000 Received: from ukmail1.uk.xensource.com (10.80.16.128) by smtprelay.citrix.com (10.13.107.78) with Microsoft SMTP Server id 14.3.181.6; Thu, 24 Jul 2014 13:34:17 -0400 Received: from kaball.uk.xensource.com ([10.80.2.59]) by ukmail1.uk.xensource.com with esmtp (Exim 4.69) (envelope-from ) id 1XAMuC-00067o-Eq; Thu, 24 Jul 2014 18:34:12 +0100 From: Stefano Stabellini To: Date: Thu, 24 Jul 2014 18:33:08 +0100 Message-ID: <1406223192-26267-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: 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 v9 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.180 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 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);