[{"id":1772110,"web_url":"http://patchwork.ozlabs.org/comment/1772110/","msgid":"<25250048-7930-e084-9ab7-c899e4f9bdb8@linaro.org>","list_archive_url":null,"date":"2017-09-20T17:35:36","subject":"Re: [Qemu-devel] [PATCH 16/19] target/arm: Handle banking in\n\tnegative-execution-priority check in cpu_mmu_index()","submitter":{"id":72104,"url":"http://patchwork.ozlabs.org/api/people/72104/","name":"Richard Henderson","email":"richard.henderson@linaro.org"},"content":"On 09/12/2017 01:14 PM, Peter Maydell wrote:\n> Now that we have a banked FAULTMASK register and banked exceptions,\n> we can implement the correct check in cpu_mmu_index() for whether\n> the MPU_CTRL.HFNMIENA bit's effect should apply. This bit causes\n> handlers which have requested a negative execution priority to run\n> with the MPU disabled. In v8M the test has to check this for the\n> current security state and so takes account of banking.\n> \n> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>\n> ---\n>  target/arm/cpu.h      | 21 ++++++++++++++++-----\n>  hw/intc/armv7m_nvic.c | 29 +++++++++++++++++++++++++++++\n>  2 files changed, 45 insertions(+), 5 deletions(-)\n\nReviewed-by: Richard Henderson <richard.henderson@linaro.org>\n\nr~","headers":{"Return-Path":"<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>","X-Original-To":"incoming@patchwork.ozlabs.org","Delivered-To":"patchwork-incoming@bilbo.ozlabs.org","Authentication-Results":["ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=nongnu.org\n\t(client-ip=2001:4830:134:3::11; helo=lists.gnu.org;\n\tenvelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n\treceiver=<UNKNOWN>)","ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=linaro.org header.i=@linaro.org\n\theader.b=\"aHqbNAw7\"; dkim-atps=neutral"],"Received":["from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11])\n\t(using TLSv1 with cipher AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3xy6Ng1p0Jz9s78\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 21 Sep 2017 03:36:18 +1000 (AEST)","from localhost ([::1]:49955 helo=lists.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.71) (envelope-from\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>)\n\tid 1duiv1-00018j-P1\n\tfor incoming@patchwork.ozlabs.org; Wed, 20 Sep 2017 13:36:15 -0400","from eggs.gnu.org ([2001:4830:134:3::10]:58190)\n\tby lists.gnu.org with esmtp (Exim 4.71)\n\t(envelope-from <richard.henderson@linaro.org>) id 1duiuX-00018U-0G\n\tfor qemu-devel@nongnu.org; Wed, 20 Sep 2017 13:35:45 -0400","from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)\n\t(envelope-from <richard.henderson@linaro.org>) id 1duiuT-0006O3-Lp\n\tfor qemu-devel@nongnu.org; Wed, 20 Sep 2017 13:35:44 -0400","from mail-io0-x230.google.com ([2607:f8b0:4001:c06::230]:53134)\n\tby eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16)\n\t(Exim 4.71) (envelope-from <richard.henderson@linaro.org>)\n\tid 1duiuT-0006NY-8a\n\tfor qemu-devel@nongnu.org; Wed, 20 Sep 2017 13:35:41 -0400","by mail-io0-x230.google.com with SMTP id i197so5236492ioe.9\n\tfor <qemu-devel@nongnu.org>; Wed, 20 Sep 2017 10:35:41 -0700 (PDT)","from bigtime.twiddle.net (162.189-204-159.bestel.com.mx.\n\t[189.204.159.162]) by smtp.gmail.com with ESMTPSA id\n\ty196sm1568704oia.44.2017.09.20.10.35.38\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tWed, 20 Sep 2017 10:35:39 -0700 (PDT)"],"DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n\th=subject:to:cc:references:from:message-id:date:user-agent\n\t:mime-version:in-reply-to:content-language:content-transfer-encoding; \n\tbh=ZSZVdBwHed+y+0xyn11toDrUQ+YgO2JSf213scHH+sQ=;\n\tb=aHqbNAw7IUYxLex1nBs/KnVATRSQgHc4s80JTM2pjwOUDtpIefJ6K7J0ciK/3EVqHg\n\tkK4sjtDzExdtEIsUVtIMJEnUGINVUV4O1LEL+uPamCsod0cegBh6Y+6IjEilzTbLK0/H\n\tL20Bs+KBu9EVL5yxt3/y6HZsNQTNh/ITK1zyQ=","X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:subject:to:cc:references:from:message-id:date\n\t:user-agent:mime-version:in-reply-to:content-language\n\t:content-transfer-encoding;\n\tbh=ZSZVdBwHed+y+0xyn11toDrUQ+YgO2JSf213scHH+sQ=;\n\tb=gzVsD36bNpjIteShjmedBVfIAnhuX0OfsUbZ6V2rtw7Ppl+8h2Mf732pIA+riDme5d\n\tC4304ELExawVFc9o7QS4otxw5DMwF867SE5M8ig/xZO5f8Ts7WtXZl2x3CXbaONMfigF\n\tzxAZ7WtjgH6pTUjSthTitdJE6WDgMdxHF7lYaVbBNgPNHVsY/G/05fsNlHTK7lD4GU6I\n\t8LE/Cy/dYZEkSNVgDI6L0O0eZLLIbf2nCbn4owu0yb2vR2rK35YLB5y1kli5Ytyf9S5l\n\t17QuhS7bDXX0FhqUNU89Pib0mooeYoZP2u573P9oCD3f282KR5+c2mKD3JoyEPsB4W8D\n\t+QUA==","X-Gm-Message-State":"AHPjjUhDuo1lcMiXdwUMY/sbSDoJbrnll6CObGBT0P7o5HVR4vxypesl\n\tQYrTTZZAa8QdiFzjYniXTqirQQ==","X-Google-Smtp-Source":"AOwi7QA1dslYy55osmWEAoQmstcueqEbPdMDvXLhgA2Lmar43Uh/x8qFiP9dUJ9ykXRsvgUsPjNdlQ==","X-Received":"by 10.202.93.136 with SMTP id r130mr7421423oib.144.1505928940331;\n\tWed, 20 Sep 2017 10:35:40 -0700 (PDT)","To":"Peter Maydell <peter.maydell@linaro.org>, qemu-arm@nongnu.org,\n\tqemu-devel@nongnu.org","References":"<1505240046-11454-1-git-send-email-peter.maydell@linaro.org>\n\t<1505240046-11454-17-git-send-email-peter.maydell@linaro.org>","From":"Richard Henderson <richard.henderson@linaro.org>","Message-ID":"<25250048-7930-e084-9ab7-c899e4f9bdb8@linaro.org>","Date":"Wed, 20 Sep 2017 12:35:36 -0500","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<1505240046-11454-17-git-send-email-peter.maydell@linaro.org>","Content-Type":"text/plain; charset=utf-8","Content-Language":"en-US","Content-Transfer-Encoding":"7bit","X-detected-operating-system":"by eggs.gnu.org: Genre and OS details not\n\trecognized.","X-Received-From":"2607:f8b0:4001:c06::230","Subject":"Re: [Qemu-devel] [PATCH 16/19] target/arm: Handle banking in\n\tnegative-execution-priority check in cpu_mmu_index()","X-BeenThere":"qemu-devel@nongnu.org","X-Mailman-Version":"2.1.21","Precedence":"list","List-Id":"<qemu-devel.nongnu.org>","List-Unsubscribe":"<https://lists.nongnu.org/mailman/options/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=unsubscribe>","List-Archive":"<http://lists.nongnu.org/archive/html/qemu-devel/>","List-Post":"<mailto:qemu-devel@nongnu.org>","List-Help":"<mailto:qemu-devel-request@nongnu.org?subject=help>","List-Subscribe":"<https://lists.nongnu.org/mailman/listinfo/qemu-devel>,\n\t<mailto:qemu-devel-request@nongnu.org?subject=subscribe>","Cc":"patches@linaro.org","Errors-To":"qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org","Sender":"\"Qemu-devel\"\n\t<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>"}}]