From patchwork Fri Aug 11 18:02:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 109908 Delivered-To: patch@linaro.org Received: by 10.140.95.78 with SMTP id h72csp1250108qge; Fri, 11 Aug 2017 11:05:24 -0700 (PDT) X-Received: by 10.36.66.16 with SMTP id i16mr13401096itb.132.1502474724836; Fri, 11 Aug 2017 11:05:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1502474724; cv=none; d=google.com; s=arc-20160816; b=N5umWj8MXcA2D2PcL03O5QnHzd+Th0qp2rniFdoT7zODXj02fTq4Zgj5v0S5fAh0YH BNEBOatc1/PyiWSpkl6AJVqCHV4qYjvd16S3Tb6s789LZueKCm5sFGqGECkgGQ3ttR7R MvT9RFu4qE0+Q7Tn5IykWO6EDfl9wJeJ/vDM5PtoUEJdfll3KM6BxPYnu3LboI2shr4G tMHZM2GhnRmj0FKk+t08doBNwJQ9X8haGPVxNixIlEvyK/bFTp2OcaYBltFTd3VQLuB7 fJGXOcq5Yc+/eKKcXrBb8lQZ/S0ZmvdvgFysknJml9U3/0Ktg6P4mBCQZSo7dYd/TDW/ rqZg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:list-subscribe:list-help :list-post:list-unsubscribe:list-id:precedence:subject:cc :mime-version:message-id:date:to:from:arc-authentication-results; bh=DgXb+gZ/4jigtkfTZZhr0Jh6fAHHR3E6dpi9h8qJMFA=; b=AT/hZCuV9La381DmMf4ZwaD+iubQjJSoD3IWFFadtk7LUZj0D64PCMr6yhXaPXJQk5 W0HoK3r4B7M7zt22jfxiKrTQL7ffbQpBaQUwrAFCV3gltvWlaW6gFRu/TbONDSEAakkb zCEne/+p4MOFEiZKzeOMgn+ajOX6jGX3nndur9AWzKWGzRRXMb4/Lqydz0fXmZFiYGA5 ENUq1u4047z2KqPzSKVLgOpKAEAG8Jf4EuS1Uzxkhb6rIkOP1OduPNdHZxfpiTY837M0 ylEvqu3UTKrOlUE6+cVpQHXrM19dhO0iFhZ2/77vPnZbphZbJJ+ndnIfEbeHxi79UQTL 1WPg== 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 h126si1811515ita.10.2017.08.11.11.05.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 11 Aug 2017 11:05:24 -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 1dgEH7-0002Xs-Cg; Fri, 11 Aug 2017 18:03:09 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dgEH5-0002Xg-W3 for xen-devel@lists.xen.org; Fri, 11 Aug 2017 18:03:08 +0000 Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id EB/65-01731-B51FD895; Fri, 11 Aug 2017 18:03:07 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprOIsWRWlGSWpSXmKPExsVysyfVTTfyY2+ kwa1tqhZLPi5mcWD0OLr7N1MAYxRrZl5SfkUCa8apGevYCyaKVTxfdZ69gXGpYBcjF4eQwGZG icmLFzBBOKcZJdo3vmTvYuTkYBPQlLjz+RMTiC0iIC1x7fNlRpAiZoFeZomdPQ1sXYwcHMICB hK3NsmD1LAIqEq0TVwD1ssrYCHR8+cmG4gtISAvsavtIitEXFDi5MwnLCCtzALqEuvnCYGEmY FKmrfOZp7AyDMLSdUshKpZSKoWMDKvYtQoTi0qSy3SNbLUSyrKTM8oyU3MzNE1NDDVy00tLk5 MT81JTCrWS87P3cQIDJ56BgbGHYyXt/gdYpTkYFIS5U3w6Y0U4kvKT6nMSCzOiC8qzUktPsQo w8GhJMH75D1QTrAoNT21Ii0zBxjGMGkJDh4lEV6JD0Bp3uKCxNzizHSI1ClGY44Nq9d/YeJ4N eH/NyYhlrz8vFQpcV4ekFIBkNKM0jy4QbD4usQoKyXMy8jAwCDEU5BalJtZgir/ilGcg1FJmH cJyD08mXklcPteAZ3CBHRKnw/YKSWJCCmpBkYh1tesArXZt51S9ka33RR7/Uj8IMP3wEYROeN 1j0PvWAbGP03VfKoj6PhYfWHVnZdFDAkJci6Ny/NWp17UNhWeELmGy6qiVnLjpC8cLayTDKM9 omZ/iQxorFQPMPsrwbmy7vnRUClB66Zt64/6vGFtd7w+1ylzhftbLh2uyEuK01srLO8nKLEUZ yQaajEXFScCAOtxvyGqAgAA X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-16.tower-206.messagelabs.com!1502474585!91025386!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 38745 invoked from network); 11 Aug 2017 18:03:05 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-16.tower-206.messagelabs.com with SMTP; 11 Aug 2017 18:03:05 -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 7717313D5; Fri, 11 Aug 2017 11:03:04 -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 4E96B3F577; Fri, 11 Aug 2017 11:03:02 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Fri, 11 Aug 2017 19:02:46 +0100 Message-Id: <20170811180257.5493-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 MIME-Version: 1.0 Cc: sstabellini@kernel.org, Wei Liu , George Dunlap , Andrew Cooper , Ian Jackson , Tim Deegan , Julien Grall , Jan Beulich , bhupinder.thakur@linaro.org, volodymyr_babchuk@epam.com Subject: [Xen-devel] [PATCH 00/11] 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: , 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 emulate in separate files. This will avoid to grow traps.c when adding more registers emulations (coming soon). A branch with this series has been pushed: https://xenbits.xen.org/git-http/people/julieng/xen-unstable.git branch cleanup-traps-v1 Cheers, Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Cc: volodymyr_babchuk@epam.com Julien Grall (11): xen/grant_table: Include mm.h in xen/grant_table.h xen/arm: domain: Re-order the includes alphabetically xen/arm: traps: Re-order the includes alphabetically xen/arm: vgic-v3: Re-order the includes alphabetically xen/arm: vtimer: 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 | 24 +- xen/arch/arm/smp.c | 1 - xen/arch/arm/traps.c | 704 ++--------------------------- xen/arch/arm/vcpreg.c | 452 ++++++++++++++++++ xen/arch/arm/vgic-v3.c | 8 +- xen/arch/arm/vtimer.c | 9 +- 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 | 43 ++ xen/{arch/arm => include/asm-arm}/vtimer.h | 0 xen/include/xen/grant_table.h | 1 + 19 files changed, 831 insertions(+), 690 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%)