From patchwork Thu Mar 19 19:29:39 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 46108 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-lb0-f198.google.com (mail-lb0-f198.google.com [209.85.217.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1656621515 for ; Thu, 19 Mar 2015 19:32:54 +0000 (UTC) Received: by lbiz11 with SMTP id z11sf14316268lbi.2 for ; Thu, 19 Mar 2015 12:32:53 -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:cc:subject:precedence:list-id:list-unsubscribe:list-post :list-help:list-subscribe:mime-version:content-type :content-transfer-encoding:sender:errors-to:x-original-sender :x-original-authentication-results:mailing-list:list-archive; bh=dvzXrrwr6EAVPyBp3gXinrpgXeFfKvLqMCPzLnaVL8k=; b=iWy/PmDXV/kXGsavfYxpPxtvsbTPyVsJQ6uy7o45xndpvX5VvdIaaxzjzcEbIt3uvR RV8zFahmSvAGh15dHerhxPvwjhYzxYH/GOXFs0AoJhiSLvEtLghw6ehCgDgqBYOvtP9O YtHtHK3ems7EsxahNBt9w2bLpVoIS2KfC7Q8wv3i6dXfdYQjpA/yENInrmzuiWzSyq8a YvGFtPWqCx5Uv8s+xHBksLEb4Km7kJ9UJqCCLnnxxPjIrY9oYrYgbzUgeT3zHXhUWnvN GmfweCEFvZRdcFStSwBUyXjWiOSObX95AxzxMy9DxKmwYhZ2c5uFRGzmD57sIj3Qxomd TsdA== X-Gm-Message-State: ALoCoQm+xns3xBjsPB1rbZWvohVvrIbIwSyCRzzxa9XdSPrqDqYqYOZ6lnQmDnDTTjLms9tDqQxi X-Received: by 10.112.202.227 with SMTP id kl3mr5678416lbc.2.1426793573077; Thu, 19 Mar 2015 12:32:53 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.153.6.33 with SMTP id cr1ls288689lad.47.gmail; Thu, 19 Mar 2015 12:32:52 -0700 (PDT) X-Received: by 10.112.51.35 with SMTP id h3mr60521383lbo.113.1426793572863; Thu, 19 Mar 2015 12:32:52 -0700 (PDT) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id ej8si1621838lad.141.2015.03.19.12.32.52 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 19 Mar 2015 12:32:52 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by ladw1 with SMTP id w1so70597126lad.0 for ; Thu, 19 Mar 2015 12:32:52 -0700 (PDT) X-Received: by 10.112.25.38 with SMTP id z6mr19618628lbf.106.1426793572774; Thu, 19 Mar 2015 12:32:52 -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.112.35.133 with SMTP id h5csp597815lbj; Thu, 19 Mar 2015 12:32:52 -0700 (PDT) X-Received: by 10.140.44.4 with SMTP id f4mr93768500qga.3.1426793556766; Thu, 19 Mar 2015 12:32:36 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id 36si2260590qkx.0.2015.03.19.12.32.36 (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 19 Mar 2015 12:32:36 -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 1YYg9m-0004Yl-Fw; Thu, 19 Mar 2015 19:31:02 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YYg9k-0004Tv-I8 for xen-devel@lists.xenproject.org; Thu, 19 Mar 2015 19:31:00 +0000 Received: from [193.109.254.147] by server-12.bemta-14.messagelabs.com id E5/6B-32563-3F32B055; Thu, 19 Mar 2015 19:30:59 +0000 X-Env-Sender: julien.grall@linaro.org X-Msg-Ref: server-6.tower-27.messagelabs.com!1426793456!14402445!1 X-Originating-IP: [74.125.82.44] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 6.13.4; banners=-,-,- X-VirusChecked: Checked Received: (qmail 1596 invoked from network); 19 Mar 2015 19:30:57 -0000 Received: from mail-wg0-f44.google.com (HELO mail-wg0-f44.google.com) (74.125.82.44) by server-6.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 19 Mar 2015 19:30:57 -0000 Received: by wgdm6 with SMTP id m6so71307973wgd.2 for ; Thu, 19 Mar 2015 12:30:56 -0700 (PDT) X-Received: by 10.180.100.170 with SMTP id ez10mr18773881wib.81.1426793456925; Thu, 19 Mar 2015 12:30:56 -0700 (PDT) Received: from chilopoda.uk.xensource.com. ([185.25.64.249]) by mx.google.com with ESMTPSA id hl8sm3203005wjb.38.2015.03.19.12.30.55 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 19 Mar 2015 12:30:56 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Thu, 19 Mar 2015 19:29:39 +0000 Message-Id: <1426793399-6283-14-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1426793399-6283-1-git-send-email-julien.grall@linaro.org> References: <1426793399-6283-1-git-send-email-julien.grall@linaro.org> Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com Subject: [Xen-devel] [PATCH v4 13/33] xen/arm: gic_route_irq_to_guest: Honor the priority given in parameter 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: , MIME-Version: 1.0 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: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 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: The priority is already hardcoded in route_irq_to_guest and therefore can't be controlled by the guest. Signed-off-by: Julien Grall --- Changes in v4: - Patch added --- xen/arch/arm/gic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/gic.c b/xen/arch/arm/gic.c index 2709415..5f34997 100644 --- a/xen/arch/arm/gic.c +++ b/xen/arch/arm/gic.c @@ -152,7 +152,7 @@ int gic_route_irq_to_guest(struct domain *d, unsigned int virq, desc->handler = gic_hw_ops->gic_guest_irq_type; set_bit(_IRQ_GUEST, &desc->status); - gic_set_irq_properties(desc, cpumask_of(v_target->processor), GIC_PRI_IRQ); + gic_set_irq_properties(desc, cpumask_of(v_target->processor), priority); p->desc = desc; res = 0;