All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] xen/x86: Map Xen code/data/bss with superpages
@ 2016-02-18 18:03 Andrew Cooper
  2016-02-18 18:03 ` [PATCH] xen: Introduce IS_ALIGNED() Andrew Cooper
                   ` (4 more replies)
  0 siblings, 5 replies; 18+ messages in thread
From: Andrew Cooper @ 2016-02-18 18:03 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper, Tim Deegan, Ian Campbell, Jan Beulich

And make use of NX and RO attributes wherever possible.

Andrew Cooper (4):
  xen: Introduce IS_ALIGNED()
  xen/memguard: Drop memguard_init() entirely
  xen/x86: Use 2M superpages for text/data/bss mappings
  xen/x86: Unilaterally remove .init mappings

 xen/arch/x86/mm.c          | 24 +++-------------
 xen/arch/x86/setup.c       | 70 ++++++++++++++++++++++++++++++++++------------
 xen/arch/x86/xen.lds.S     | 38 ++++++++++++++++++++++++-
 xen/include/asm-arm/mm.h   |  1 -
 xen/include/asm-x86/mm.h   |  2 --
 xen/include/xen/config.h   |  2 ++
 xen/include/xen/kernel.h   |  6 ++++
 xen/include/xen/tmem_xen.h |  3 +-
 8 files changed, 102 insertions(+), 44 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 18+ messages in thread
* [PATCH] Map Xen code/data/bss with superpages
@ 2016-02-24 19:07 Andrew Cooper
  2016-02-24 19:07 ` [PATCH] xen/x86: Use 2M superpages for text/data/bss mappings Andrew Cooper
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Cooper @ 2016-02-24 19:07 UTC (permalink / raw)
  To: Xen-devel; +Cc: Andrew Cooper

And make use of NX and RO attributes wherever possible.

After this series, the pagetable layout looks like:

(XEN) *** Dumping Xen text/data/bss mappings from ffff82d080000000
(XEN) l2_xenmap: ffff82d080814000, pa 00000000ac014000
(XEN)  L4[261] = 00000000ac017063 X S RW P
(XEN)   L3[322] = 00000000ac014063 X S RW P
(XEN)    L2[000] = 00000000ab8001e1 X Gl + S RO P   <- .text
(XEN)    L2[001] = 00000000aba001a1 X Gl + S RO P   <- .text
(XEN)    L2[002] = 80000000abc001a1 NX Gl + S RO P  <- .rodata
                                                    <- discarded .init
(XEN)    L2[004] = 80000000ac0001e3 NX Gl + S RW P  <- .data and .bss
(XEN)    L2[511] = 000000084da6f063 X S RW P        <- stubs

Andrew Cooper (8):
  xen/lockprof: Move .lockprofile.data into .rodata
  xen/x86: Improvements to build-time pagetable generation
  xen/x86: Construct the {l2,l3}_bootmap at compile time
  xen/memguard: Drop memguard_init() entirely
  xen/x86: Disable CR0.WP while applying alternatives
  xen/x86: Reorder .data and .init when linking
  xen/x86: Use 2M superpages for text/data/bss mappings
  xen/x86: Unilaterally remove .init mappings

 xen/arch/arm/xen.lds.S       |  15 ++++---
 xen/arch/x86/alternative.c   |   7 +++
 xen/arch/x86/boot/head.S     |  18 +++-----
 xen/arch/x86/boot/x86_64.S   |  44 +++++++++++++++---
 xen/arch/x86/mm.c            |  16 -------
 xen/arch/x86/setup.c         |  64 +++++++++++++++++++--------
 xen/arch/x86/x86_64/mm.c     |   4 --
 xen/arch/x86/xen.lds.S       | 103 ++++++++++++++++++++++++++++---------------
 xen/include/asm-arm/config.h |   1 +
 xen/include/asm-arm/mm.h     |   1 -
 xen/include/asm-x86/config.h |   1 +
 xen/include/asm-x86/mm.h     |   2 -
 xen/include/asm-x86/setup.h  |   5 +++
 xen/include/xen/spinlock.h   |   2 +-
 14 files changed, 178 insertions(+), 105 deletions(-)

-- 
2.1.4

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2016-02-24 19:07 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-18 18:03 [PATCH] xen/x86: Map Xen code/data/bss with superpages Andrew Cooper
2016-02-18 18:03 ` [PATCH] xen: Introduce IS_ALIGNED() Andrew Cooper
2016-02-18 18:03 ` [PATCH] xen/memguard: Drop memguard_init() entirely Andrew Cooper
2016-02-19 14:44   ` Jan Beulich
2016-02-19 16:18     ` Andrew Cooper
2016-02-22 10:02       ` Jan Beulich
2016-02-22 10:29         ` Andrew Cooper
2016-02-22 10:41           ` Jan Beulich
2016-02-18 18:03 ` [PATCH] xen/x86: Use 2M superpages for text/data/bss mappings Andrew Cooper
2016-02-19 14:58   ` Jan Beulich
2016-02-19 15:51     ` Andrew Cooper
2016-02-22  9:55       ` Jan Beulich
2016-02-22 10:24         ` Andrew Cooper
2016-02-22 10:43           ` Jan Beulich
2016-02-18 18:03 ` [PATCH] xen/x86: Unilaterally remove .init mappings Andrew Cooper
2016-02-19 15:02   ` Jan Beulich
2016-02-18 18:20 ` [PATCH] xen/x86: Map Xen code/data/bss with superpages Andrew Cooper
  -- strict thread matches above, loose matches on Subject: below --
2016-02-24 19:07 [PATCH] " Andrew Cooper
2016-02-24 19:07 ` [PATCH] xen/x86: Use 2M superpages for text/data/bss mappings Andrew Cooper

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.