From patchwork Tue Sep 12 10:36:15 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 112288 Delivered-To: patch@linaro.org Received: by 10.140.106.117 with SMTP id d108csp4986289qgf; Tue, 12 Sep 2017 03:38:42 -0700 (PDT) X-Google-Smtp-Source: AOwi7QCiAqBgy5OP8jcAdSPB8BqTVt8Ee+NMJZZSsl4JreDXkFb6oyHwUDgE1slZ+Ol0iCTj0Nwk X-Received: by 10.36.252.65 with SMTP id b62mr322686ith.25.1505212722618; Tue, 12 Sep 2017 03:38:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505212722; cv=none; d=google.com; s=arc-20160816; b=MUabiW+76XCBNQQwhWozXse6lst75qjB+Y4aMTc6EfMSDdE0vcM0CEgo+7qtBZ4LAQ /DLXModTEUWk+As876c9WggIKtaxMzRtzSLvW61WaEN7rTHmmVN9c4344UAgMUQ4xeeu EkV4mBsixA10XbRI1bz7UI3pEIRtYxQff/FB92kyT91yBW0LuJmS8LN26geHILe7vB1y BcGw8lIpS3mUJcuOrpRbSuhgfaQHbT/0JBuorZii+z/5yFnM0orba37vozjPaejOkQvQ wSOqdOUkCj9lf/mlx8Xqdgre8wVEfmgrMlcNw2m4x/IIFR+xkQCy0EP1BtNHTYAg9Xh4 yC+Q== 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:message-id:date:to:from :arc-authentication-results; bh=xYuWYylgQhecLK5U0zFhwFwm0Wxtk96CihMo1o4vt4A=; b=um2E1k65QZBM9troRIHQE50EkpyFh/F9tcTL5tQdlhBmf5Oy4d8fiWM8Me7ccZqHKu ks+dHIZjXYGdwCMoJQ9Ryh0PUBZ/9xThJ/hWREHa3Gelg+1rhcQ0tWkQ2EHqMsIpX4Jf yCO610Ij18O47+cKg9ns0cJfWFNA3VKbojbimHr4CA5xJtRlxIFKHOwJmWVD+4G4T89C 7zU/RZlXLtQ3wH89X4mOda2C1IhjiVe7oHm/uW3PzOY1/IY04QAalXnqfapld/kV9nOq D880/0v5oBYRBDjlm//zRChCdxXWIOszGkBb6JJZdqFt3E32nQ9Y0xkW1hlgYgXbokIo U48w== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id g199si10916839itb.97.2017.09.12.03.38.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 03:38:42 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.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 1driYS-0001NK-Mv; Tue, 12 Sep 2017 10:36:32 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1driYR-0001NE-Io for xen-devel@lists.xen.org; Tue, 12 Sep 2017 10:36:31 +0000 Received: from [85.158.137.68] by server-1.bemta-3.messagelabs.com id 88/DD-02048-EA8B7B95; Tue, 12 Sep 2017 10:36:30 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrILMWRWlGSWpSXmKPExsVysyfVTXfdju2 RBjv+Clos+biYxYHR4+ju30wBjFGsmXlJ+RUJrBntu76zFawTrOjedZO1gXEqbxcjF4eQwGZG icnzjzBDOKcZJTZcW8XaxcjJwSagKXHn8ycmEFtEQFri2ufLjCA2s0C1xP+FJ9lAbGEBQ4mpR 7vB6lkEVCXWfulmBrF5BSwlJvzvBItLCMhL7Gq7yDqBkXMBI8MqRo3i1KKy1CJdQ3O9pKLM9I yS3MTMHF1DA2O93NTi4sT01JzEpGK95PzcTYxAjzEAwQ7Gl6c9DzFKcjApifIeWb89UogvKT+ lMiOxOCO+qDQntfgQowwHh5IEr8h2oJxgUWp6akVaZg4wdGDSEhw8SiK8siBp3uKCxNzizHSI 1ClGY45jmy7/YeLouHn3D5MQS15+XqqUOO+vbUClAiClGaV5cINgIX2JUVZKmJcR6DQhnoLUo tzMElT5V4ziHIxKwrwvQabwZOaVwO17BXQKE9ApPJe2gJxSkoiQkmpg3Pb3anqJk43ZysYV85 TSs5ysWjivLF6vfXHGjKt+R9/sNuCP9krZ82DKLQ2m0ycW8zcadPky8RryRK/SbfHYvENuA/M WHb27vbuXLTQU6xV3dJ0745RK1XPxRfsTP9p48dypn9V73Fm1ben+RO+qlCjO1v703dp3mZQe c065IS/IWHLgxmZGJZbijERDLeai4kQAhIV3+WQCAAA= X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-13.tower-31.messagelabs.com!1505212589!109801292!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 61990 invoked from network); 12 Sep 2017 10:36:30 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-13.tower-31.messagelabs.com with SMTP; 12 Sep 2017 10:36:30 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 4AA161529; Tue, 12 Sep 2017 03:36:29 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 37B8C3F578; Tue, 12 Sep 2017 03:36:28 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 12 Sep 2017 11:36:15 +0100 Message-Id: <20170912103622.18562-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Cc: bhupinder.thakur@linaro.org, Julien Grall , sstabellini@kernel.org, volodymyr_babchuk@epam.com Subject: [Xen-devel] [PATCH v2 0/7] xen/arm: Clean-up traps.c X-BeenThere: xen-devel@lists.xen.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.xen.org Sender: "Xen-devel" Hi all, xen/arch/arm/traps.c is beginning to get very big. This series is moving out the co-processor and sysreg emulation in separate files. This will avoid to grow traps.c when adding more registers emulation (coming soon). A branch with this series has been pushed: https://xenbits.xen.org/git-http/people/julieng/xen-unstable.git branch cleanup-traps-v2 Cheers, Cc: volodymyr_babchuk@epam.com Julien Grall (7): xen/arm: traps: Re-order the includes alphabetically xen/arm: Move arch/arm/vtimer.h to include/asm-arm/vtimer.h xen/arm: traps: Export a bunch of helpers to handle emulation xen/arm: Move sysreg emulation outside of traps.c xen/arm: Move co-processor emulation outside of traps.c xen/arm: Move sysregs.h in arm64 sub-directory xen/arm: Limit the scope of cpregs.h xen/arch/arm/Makefile | 1 + xen/arch/arm/arm64/Makefile | 1 + xen/arch/arm/arm64/vsysreg.c | 229 ++++++++++ xen/arch/arm/domain.c | 2 +- xen/arch/arm/smp.c | 1 - xen/arch/arm/traps.c | 702 ++--------------------------- xen/arch/arm/vcpreg.c | 452 +++++++++++++++++++ xen/arch/arm/vgic-v3.c | 1 + xen/arch/arm/vtimer.c | 2 + xen/include/asm-arm/arm32/processor.h | 2 + xen/include/asm-arm/arm32/traps.h | 13 + xen/include/asm-arm/arm64/processor.h | 2 + xen/include/asm-arm/{ => arm64}/sysregs.h | 10 +- xen/include/asm-arm/arm64/traps.h | 18 + xen/include/asm-arm/percpu.h | 1 - xen/include/asm-arm/processor.h | 2 - xen/include/asm-arm/traps.h | 44 ++ xen/{arch/arm => include/asm-arm}/vtimer.h | 0 18 files changed, 811 insertions(+), 672 deletions(-) create mode 100644 xen/arch/arm/arm64/vsysreg.c create mode 100644 xen/arch/arm/vcpreg.c create mode 100644 xen/include/asm-arm/arm32/traps.h rename xen/include/asm-arm/{ => arm64}/sysregs.h (98%) create mode 100644 xen/include/asm-arm/arm64/traps.h create mode 100644 xen/include/asm-arm/traps.h rename xen/{arch/arm => include/asm-arm}/vtimer.h (100%)