Skip to contentSkip to conversation

xen/arm: Clean-up traps.c

PATCH Superseded Julien Grall 1 participant 3 messages Aug 11, 2017

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover xen/arm: Clean-up traps.c

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 <[email protected]>
Cc George Dunlap <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Tim Deegan <[email protected]>
Cc Wei Liu <[email protected]>

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%)
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw

PATCH 1/1 xen/arm: p2m: Remove p2m_operation

This is a left over of before the P2M code was reworked. So drop it.

---
 xen/arch/arm/p2m.c | 4 ----
 1 file changed, 4 deletions(-)
xen/arch/arm/p2m.c +0 -4
index 7b2aac4c90..c484469e6c 100644
@@ -611,10 +611,6 @@ static int p2m_mem_access_radix_set(struct p2m_domain *p2m, gfn_t gfn,
     return rc;
 }
 
-enum p2m_operation {
-    MEMACCESS,
-};
-
 /*
  * Put any references on the single 4K page referenced by pte.
  * TODO: Handle superpages, for now we only take special references for leaf
Signature · 7 lines
2.11.0


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#2 lore raw
In reply to Julien Grall

Hi,

Please ignore this thread, I forgot to remove the *.patch in the folder before sending another series :/

Sorry for the noise.

Quoted 64 lines · Julien Grall

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 <[email protected]>
Cc George Dunlap <[email protected]>
Cc Ian Jackson <[email protected]>
Cc Jan Beulich <[email protected]>
Cc Konrad Rzeszutek Wilk <[email protected]>
Cc Stefano Stabellini <[email protected]>
Cc Tim Deegan <[email protected]>
Cc Wei Liu <[email protected]>

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%)
Signature · 6 lines
Julien Grall

_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel