From patchwork Thu Mar 15 20:30:44 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andre Przywara X-Patchwork-Id: 131862 Delivered-To: patch@linaro.org Received: by 10.46.84.17 with SMTP id i17csp1579467ljb; Thu, 15 Mar 2018 13:33:34 -0700 (PDT) X-Google-Smtp-Source: AG47ELs0DFxfaJX1EAZ0z0hgZk8lSX7TrzFy7mDFZoIOsD41Nhh6DUbd2p9hV4oQoQlnCN2UwYYB X-Received: by 10.107.162.135 with SMTP id l129mr10521974ioe.158.1521146013790; Thu, 15 Mar 2018 13:33:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521146013; cv=none; d=google.com; s=arc-20160816; b=qmYCg432RIXIYoqTJuCGd0FzIoQ4td35kqNpJ6YTfRBQOqZqLNHOdgbTO8ipiFxhtM S37nnGBAStzROW/K8yNz22mmPRqSa/CHq0K5NbgzYr3ngve76f3o+AGWRu7D9rH0TL7b F3O1iHsq9hNbpNoF3oPmIREqgMUYlGCfVsHgYgY11KibMgKVQ12IpJU0rQjs7ghH9+cg Oo3LkIOd8oixIpDBHYCinNywuhuegJOariqOu5NOBd8muHggz81y+9xJPd4ExvExdSXg OdebaNU5oraKDJ5Mh57dyx3e0DaOF9IQPwGL3zo+SdOxCH17xBqmGffcz+CYLLyFhIHa H1Qw== 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=TCG57L56vx++epxbgKWEqaZKZNKeUXeqUsxuzclk98k=; b=y/K3MqqAtAqN0osPpvTsCIK7DYawzPx4qA5qRHdZUXvRJwxnRVDJ8UzusNrONO0LSU g2rABqOiqMv11cpdq0fBFx6h1sRc+EDuy4SNiZrAeVesDGnVuHMIVdAt1JhLB/+4+yXc Ek0DhxuVH6GSxXCcCZ4CrcbWmnZQQkYJdynIsTXg4nz3sDrGLVI36bUembP1lIZ2+QxK AX8DnthATpsVvWBoSarWlmRCbKKAATD824Rc55s+R4HTCDtLbbRGwbyPHpnDDfAZXlXO Tka2pnoLmmVkj3cmPF/aHnLIdde4aUxYgQM0mdHroI2TnJYLiVPwicU1RwL31t/8W3OD gnBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HDOK+2uR; 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 v89si3791477iov.4.2018.03.15.13.33.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 15 Mar 2018 13:33:33 -0700 (PDT) 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=HDOK+2uR; 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 1ewZXV-0004Z5-Fg; Thu, 15 Mar 2018 20:31:53 +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 1ewZXU-0004VK-7t for xen-devel@lists.xenproject.org; Thu, 15 Mar 2018 20:31:52 +0000 X-Inumbo-ID: e051ee17-288f-11e8-9728-bc764e045a96 Received: from mail-wr0-x242.google.com (unknown [2a00:1450:400c:c0c::242]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id e051ee17-288f-11e8-9728-bc764e045a96; Thu, 15 Mar 2018 21:31:45 +0100 (CET) Received: by mail-wr0-x242.google.com with SMTP id m12so9542301wrm.13 for ; Thu, 15 Mar 2018 13:31:50 -0700 (PDT) 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=1u5xZiCYTysJVSJJeV009t7ehi+5NkFiUcPes8y/jlQ=; b=HDOK+2uRSRyY2w66MlHjVnrxIyO1yRPvctB0JU0LHjy0uO0Hq/0bNHH19VaofShBmQ EzAJOWq4gXWfdbw8IyHDLqH396lHHeBp1H/s4Tpwza7UwVryfC3poqAb9FVrJIEPA0zu Vl2lJABT5CWx6fYVUl7LQtI3JHSO6oY8uAdNA= 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=1u5xZiCYTysJVSJJeV009t7ehi+5NkFiUcPes8y/jlQ=; b=lviw3Kl3/Q6Yu2wDaM7k+sRmJ1R5RrGxcn5D+CNKKLrdynBPzJAl1/mgKBA+f6EXE1 rvM3ahulcJby5Ao9jjHwtGByWhN7dpv8UXS/LLIVj10n6Fn3ota4mcrM0GL2ERGRFSw3 Ws0lgS5AcJ4335JknzTZNJsjxTrvnB4LNGydbyhB93T4nct0U/v+DBc+NwKB/l7vlMCZ 8uAt7DoTKOTCb39DZJRbIO8EhKSE0/BGnDGZM7Q+Wkkia0rD63E18arpC8gNFsKb67ci MRNcpYQwP6fs7N6H6i+bJnJB/pAJZsjEB3snQQ0IZV8lcRiroOjpPpO2KDnqukDBkCv4 A+xQ== X-Gm-Message-State: AElRT7EDcjlRv0DCxsF3+z6bnXffg6fb+eMgunXNvNFzyDYLF0A+twOS xNH4LuGd9xmPdzAXJof7SCQWBtJd1A8= X-Received: by 10.223.146.102 with SMTP id 93mr8113953wrj.255.1521145909464; Thu, 15 Mar 2018 13:31:49 -0700 (PDT) Received: from e104803-lin.lan (mail.andrep.de. [217.160.17.100]) by smtp.gmail.com with ESMTPSA id w125sm3217102wmw.20.2018.03.15.13.31.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 15 Mar 2018 13:31:48 -0700 (PDT) From: Andre Przywara To: Stefano Stabellini , Julien Grall Date: Thu, 15 Mar 2018 20:30:44 +0000 Message-Id: <20180315203050.19791-40-andre.przywara@linaro.org> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20180315203050.19791-1-andre.przywara@linaro.org> References: <20180315203050.19791-1-andre.przywara@linaro.org> Cc: xen-devel@lists.xenproject.org Subject: [Xen-devel] [PATCH v2 39/45] ARM: new VGIC: Add preliminary stub implementation 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" The ARM arch code requires an interrupt controller emulation to implement vgic_clear_pending_irqs(), although it is suspected that it is actually not necessary. Go with a stub for now to make the linker happy. Signed-off-by: Andre Przywara Reviewed-by: Julien Grall --- xen/arch/arm/vgic/vgic.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/xen/arch/arm/vgic/vgic.c b/xen/arch/arm/vgic/vgic.c index 1aae68ff83..002fec57e6 100644 --- a/xen/arch/arm/vgic/vgic.c +++ b/xen/arch/arm/vgic/vgic.c @@ -781,6 +781,14 @@ void gic_dump_vgic_info(struct vcpu *v) spin_unlock_irqrestore(&v->arch.vgic.ap_list_lock, flags); } +void vgic_clear_pending_irqs(struct vcpu *v) +{ + /* + * TODO: It is unclear whether we really need this, so we might instead + * remove it on the caller site. + */ +} + /** * arch_move_irqs() - migrate the physical affinity of hardware mapped vIRQs * @v: the vCPU, already assigned to the new pCPU