Skip to content

Reduce unnecessary icache maintenance operations

Punit Agrawal xen-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 12 repliesIn review
  2. v1 posting 2/23 patches 8 repliesSuperseded
  3. v1 posting 1/23 patches 1 replySuperseded

Changes in v2 from the cover letter

* Updated tags
* Added a comment for icache_invalidate() definition for x86 to explain why it is empty.

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3Allow control of icache invalidations when calling flush_page_to_ram()xen/arch/arm/mm.c xen/arch/arm/p2m.c xen/common/page_alloc.c +2 more+7 -60 replies
2/3arm: p2m: Prevent redundant icache flushesxen/arch/arm/p2m.c+3 -10 replies
3/3Avoid excess icache flushes in populate_physmap() before domain has been createdxen/common/memory.c xen/common/page_alloc.c xen/include/asm-x86/page.h +1 more+33 -1011 replies

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchJan BeulichStefano Stabellini
1/3A-b R-b
2/3R-b
3/3A-b R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [For Xen-4.10 PATCH v2 0/3] Reduce unnecessary icache maintenance operations

Hi,

This series improves the number of icache flushes performed when allocating memory to a domain. This series was previously posted at
[0] and [1].

Changes
v1 -> v2:
* Updated tags
* Added a comment for icache_invalidate() definition for x86 to explain why it is empty.

RFC -> v1:

* Fixed coding style issue in Patch 1
* Added reviewed-by tags
* Re-worked Patch 3 to defer icache optimisation only during domain creation

Patch 1 adds a parameter to flush_page_to_ram() to prevent performing icache maintenance per page. Current calls to flush_page_to_ram() loop over pages and performing a full icache flush for each page is excessive.

Patch 2 hoists icache maintenance from flush_page_to_ram() to p2m_cache_flush().

Patch 3 introduces a new MEMF_ flag to indicate to alloc_heap_pages() that icache maintenance will be performed by the caller. The icache maintenance operations are performed in populate_physmap() during domain creation. As I couldn't find icache maintenance operations for x86, an empty helper is introduced.

If there are no further comments, please consider for inclusion.

Thanks,
Punit

[0] https://www.mail-archive.com/[email protected]/msg108002.html
[1] https://www.mail-archive.com/[email protected]/msg102934.html

Punit Agrawal (3):
Allow control of icache invalidations when calling flush_page_to_ram()
arm: p2m: Prevent redundant icache flushes
Avoid excess icache flushes in populate_physmap() before domain has
been created

 xen/arch/arm/mm.c              |  5 +++--
 xen/arch/arm/p2m.c             |  4 +++-
 xen/common/memory.c            | 31 ++++++++++++++++++++++---------
 xen/common/page_alloc.c        |  2 +-
 xen/include/asm-arm/page.h     |  2 +-
 xen/include/asm-x86/flushtlb.h |  2 +-
 xen/include/asm-x86/page.h     |  8 ++++++++
 xen/include/xen/mm.h           |  2 ++
 8 files changed, 41 insertions(+), 15 deletions(-)
Signature · 7 lines
2.11.0


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