From patchwork Sat Dec 28 02:08:42 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Xu X-Patchwork-Id: 182487 Delivered-To: patch@linaro.org Received: by 2002:a92:815a:0:0:0:0:0 with SMTP id e87csp3869983ild; Fri, 27 Dec 2019 22:53:24 -0800 (PST) X-Google-Smtp-Source: APXvYqwLlOYkB/lu872ahIEN1myiISHs2JZsdGDYC0trkfbkQmRlU+SCyevgiKSxinIRd2vFtgbX X-Received: by 2002:a92:84ce:: with SMTP id y75mr46752215ilk.93.1577516004522; Fri, 27 Dec 2019 22:53:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577516004; cv=none; d=google.com; s=arc-20160816; b=Z+1dB4HrWbqHwIsaNUtx6BcFdT8naelE5RMsHSbIKJX22aLHvCPjchRCb4sa+/AHSz NJa86g2Kdj7CMf7vMPZxLcFGNJy0p8z4KrLww0JT5HeTBrzJtDmmjQPfXYfdTV9s42Lw QDGig+qIjmIS1npqKQaMU3p0xZcStOj3jfnWStI8FscZKlK2NFAQcHr6xDmyk2LzZgPM TmkoSQT+iyf6jGWSgFfVjBkw/iCzkQr+tyQ4k1TLDs8lV+swcnE3duC78lB41Cq7jx67 jKIBjXen8PhqtxZvScu8Fkdld+WZa9ZI4yfr4Kw/dNVKB7GXTB5YQqANYox5E3PfMf9P ZraA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-unsubscribe:list-id:precedence:subject :mime-version:message-id:date:to:from; bh=sjqFaVSY9MIEaUs4/Dszx1OxNHiuenCzBcx9p2j7rUM=; b=f77eiIr9h1/p3v96QzI+oX943M2vDFOIAQ5kPu0zUVtKzU0Rx9mYgI5D2svWvARq6p EEY+O/wlIJmiIQMQ/quoGQaqoiTUw02BSf3hn8LhrAHO5BAoIRGfeBGvafrHEEjh15yA Nsd+PLtWBonOpIm/NfEgZoHP9QgEGTgbIzWDY4JVMGKUOLBvz7N8bk6y2w1dbiajRUD2 PddnUon6ezvYXCp4ahX6+/+689NqWRYPFgTv6uwMeJwvwUWeowaSNEQ0OJYwICVVA5Wu 37xbUez6ECNQsjwxvlj5zFq2Zmi1LKfpQ10wvZ1cgu9CwjGXrNvPB0Gn5ARFhGTHJw0X kEMQ== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id z5si29022321ilz.149.2019.12.27.22.53.24 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 27 Dec 2019 22:53:24 -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; 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 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1il5wi-0002P8-4K; Sat, 28 Dec 2019 06:51:32 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1il1ae-0005zz-2r for xen-devel@lists.xenproject.org; Sat, 28 Dec 2019 02:12:28 +0000 X-Inumbo-ID: 76f2b3f2-2917-11ea-b6f1-bc764e2007e4 Received: from huawei.com (unknown [45.249.212.191]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 76f2b3f2-2917-11ea-b6f1-bc764e2007e4; Sat, 28 Dec 2019 02:12:16 +0000 (UTC) Received: from DGGEMS405-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id E7744630B12EED7488EB; Sat, 28 Dec 2019 10:12:11 +0800 (CST) Received: from localhost.localdomain (10.69.192.58) by DGGEMS405-HUB.china.huawei.com (10.3.19.205) with Microsoft SMTP Server id 14.3.439.0; Sat, 28 Dec 2019 10:12:03 +0800 From: Wei Xu To: Stefano Stabellini , Julien Grall , Volodymyr Babchuk , Date: Sat, 28 Dec 2019 10:08:42 +0800 Message-ID: <1577498922-192711-1-git-send-email-xuwei5@hisilicon.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 X-Originating-IP: [10.69.192.58] X-CFilter-Loop: Reflected X-Mailman-Approved-At: Sat, 28 Dec 2019 06:51:32 +0000 Subject: [Xen-devel] [PATCH] xen/arm: vgic-v3: Fix the typo of GICD IRQ active status range X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: prime.zeng@hisilicon.com, shameerali.kolothum.thodi@huawei.com, xuwei5@hisilicon.com, linuxarm@huawei.com Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This patch fixes the typo about the active status range of an IRQ via GICD. Otherwise it will be failed to handle the mmio access and inject a data abort. Fixes: a2b83f95bfad ("xen/arm: vgic: Properly emulate the full register") Signed-off-by: Wei Xu --- xen/arch/arm/vgic-v3.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/vgic-v3.c b/xen/arch/arm/vgic-v3.c index 422b94f..e802f20 100644 --- a/xen/arch/arm/vgic-v3.c +++ b/xen/arch/arm/vgic-v3.c @@ -706,7 +706,7 @@ static int __vgic_v3_distr_common_mmio_read(const char *name, struct vcpu *v, goto read_as_zero; /* Read the active status of an IRQ via GICD/GICR is not supported */ - case VRANGE32(GICD_ISACTIVER, GICD_ISACTIVER): + case VRANGE32(GICD_ISACTIVER, GICD_ISACTIVERN): case VRANGE32(GICD_ICACTIVER, GICD_ICACTIVERN): goto read_as_zero;