From patchwork Mon Mar 5 16:03:28 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 130685 Delivered-To: patch@linaro.org Received: by 10.46.66.2 with SMTP id p2csp2854151lja; Mon, 5 Mar 2018 08:07:25 -0800 (PST) X-Google-Smtp-Source: AG47ELvPPukPvQIrGqHMjFAg0Hoy0lfw4okAeIe7Ng4ozetRjJ3IziHmxaFOURrvjbsh8mCibD1O X-Received: by 10.36.219.214 with SMTP id c205mr14757301itg.63.1520266045321; Mon, 05 Mar 2018 08:07:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520266045; cv=none; d=google.com; s=arc-20160816; b=gwEI/2Ad3O69GsN43UhvfOL0jm4WUa2BHYG+C3gNAWkp5akTd35q4DPDQjev7p02ju MxRLYyPmRm+kYwjLi2vxIUkHRqQYHSN4pb0X0FJnCuArEZVnwOan4KYCN8fm4d8H3ADk ReLfNIVhA2ja+UNkB06MmQ+EVV5AUR53kB7u/UW9ahDZxnbbegdIH1C03vakavkW/x0N jloZTu983VkZdfmN/F8hQRPLOeOSerc6SzGCUsc79t+F4GF6UGT8ZZNbcAC3lgXsJer6 KOUe+hMTBJkWSSzNUo7ygX9CrVo8JmDUqlFegVKHAoD3xffK/ulajNa/5D10IA2NKIFj Ipeg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:references:in-reply-to:message-id:date:to :from:dkim-signature:arc-authentication-results; bh=dKI3uumutntbsEc+0+QVRJ8t2WFm5LKSL1yppbjhynQ=; b=uULnyUvhSsMIvXxPczVVPV9uxKptxBO+17yZTAcx0Uc6wSOSevSngPGjnqoyMqDs/m 0VTUwq/N4VNv7PcaZWbOHRj5dsymgsd/HzTGx1gJvXhpja3vP2rksI8OWdRZvOnirntT 9RzUNqqgVGkZob4T83uGooo30m2pyPxUCXSWVtb6liwN5liplCon3+nnoDLxaSpTP/Ab M8Asj5xNeVtPHtnpUqjWGKqocF1CQuasvH1VLDER6sqGkDOcDoP3d8+fwdkFCPygK6Zn fHr3qjqv/rKlFxVwZ0iEdVhYXdLQ8ZZJykHNQv7QRBb1GxI2G0v42KzD8PJ1QaZwlrbd /gUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ed/CFg+5; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id d124si5926349itg.65.2018.03.05.08.07.25 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Mar 2018 08:07:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=Ed/CFg+5; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1essbL-0007Dj-Fb; Mon, 05 Mar 2018 16:04:35 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1essbK-0007CL-Bp for xen-devel@lists.xenproject.org; Mon, 05 Mar 2018 16:04:34 +0000 X-Inumbo-ID: bd991422-208e-11e8-ba59-bc764e045a96 Received: from mail-wm0-x243.google.com (unknown [2a00:1450:400c:c09::243]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id bd991422-208e-11e8-ba59-bc764e045a96; Mon, 05 Mar 2018 17:03:28 +0100 (CET) Received: by mail-wm0-x243.google.com with SMTP id x7so16534422wmc.0 for ; Mon, 05 Mar 2018 08:04:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=WuvPOQVi6UpGBIIgDuv7ml+wfAOHAGc9R62uL7hIf+w=; b=Ed/CFg+5/VISQG2EU4WqUZcfwBy9YwR+6l/Q+6wXmD6pNNoMzaImy6wd2n7gsWPqFd yHV8UkPUPAIig48Avvx4JThnOIz6poDTBAOYxbedmz0guPVEpyLoNfl73NwVsbPlzm0n amqVCWhpXisREdzBkszbjifoLifqs5MyrBwos= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=WuvPOQVi6UpGBIIgDuv7ml+wfAOHAGc9R62uL7hIf+w=; b=RV7f81UwoIDcevWanjGEwAruV41WC2Yl5CxABXE0h2IOL1UZlRei1zuLam+oA9jgYp E/a9j0XW2Ijuk3NZsaJKvQIY57VYIUWZv3cx2pU+CIGw7QoSuD8siCysMrzYUJ6KPXjb 5Gvtilz6aPZia0nY7CVHk/pLM81565LRFPHXSb6V8YT/lppd2sjpjCFti+0Rw7UQNQ+A 4DYkrdjGE/4qBt3oymE2jAKydBMkRjvkUuQ40WEDl+m/tWm4x0ZUm5GhoSysKHYPl0Y9 F2eKmszS2J5BZ2pBCJA6mMVr/ZHLTMGXHw1Cr85BxQmkdr9qLFjc6nSNxobKJvSfuuS7 7/yA== X-Gm-Message-State: AElRT7HiA3I8inW4jxVSQMXGScZpaTcY21/1rfZDv6bGOQsdfZCcDwvJ L7zXwp9eGRrpdNz8eHpeCxLH7g== X-Received: by 10.28.16.138 with SMTP id 132mr8975688wmq.28.1520265872622; Mon, 05 Mar 2018 08:04:32 -0800 (PST) Received: from e104803-lin.lan (mail.andrep.de. [217.160.17.100]) by smtp.gmail.com with ESMTPSA id y6sm6574381wmy.14.2018.03.05.08.04.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 05 Mar 2018 08:04:32 -0800 (PST) From: Andre Przywara To: Julien Grall , Stefano Stabellini Date: Mon, 5 Mar 2018 16:03:28 +0000 Message-Id: <20180305160415.16760-11-andre.przywara@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180305160415.16760-1-andre.przywara@linaro.org> References: <20180305160415.16760-1-andre.przywara@linaro.org> Cc: xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH 10/57] ARM: VGIC: rename gic_event_needs_delivery() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" gic_event_needs_delivery() is not named very intuitively, especially the gic_ prefix is somewhat misleading. Rename it to vgic_pending_irq(), which makes it clear that this relates to the virtual GIC and is about interrupts. Signed-off-by: Andre Przywara --- Changelog RFC ... v1: - new patch xen/arch/arm/gic-vgic.c | 2 +- xen/include/asm-arm/event.h | 2 +- xen/include/asm-arm/gic.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/xen/arch/arm/gic-vgic.c b/xen/arch/arm/gic-vgic.c index c0fe38fd37..60c6c463e9 100644 --- a/xen/arch/arm/gic-vgic.c +++ b/xen/arch/arm/gic-vgic.c @@ -339,7 +339,7 @@ void gic_clear_pending_irqs(struct vcpu *v) gic_remove_from_lr_pending(v, p); } -int gic_events_need_delivery(void) +int vgic_pending_irq(void) { struct vcpu *v = current; struct pending_irq *p; diff --git a/xen/include/asm-arm/event.h b/xen/include/asm-arm/event.h index e8c2a6cb44..c4c79fa87d 100644 --- a/xen/include/asm-arm/event.h +++ b/xen/include/asm-arm/event.h @@ -24,7 +24,7 @@ static inline int local_events_need_delivery_nomask(void) * interrupts disabled so this shouldn't be a problem in the general * case. */ - if ( gic_events_need_delivery() ) + if ( vgic_pending_irq() ) return 1; if ( !vcpu_info(current, evtchn_upcall_pending) ) diff --git a/xen/include/asm-arm/gic.h b/xen/include/asm-arm/gic.h index 3b2d0217a6..a23c307c3a 100644 --- a/xen/include/asm-arm/gic.h +++ b/xen/include/asm-arm/gic.h @@ -238,7 +238,7 @@ int gic_remove_irq_from_guest(struct domain *d, unsigned int virq, extern void vgic_sync_to_lrs(void); extern void gic_clear_pending_irqs(struct vcpu *v); -extern int gic_events_need_delivery(void); +extern int vgic_pending_irq(void); extern void init_maintenance_interrupt(void); extern void gic_raise_guest_irq(struct vcpu *v, unsigned int irq,