Skip to content

xen/mm: Reset PFN_ORDER for offlined buddy heads

Bernhard Kaindl xen-devel 2 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 2 repliesIn review
  2. v12 patches 2 repliesSuperseded

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2xen/mm: reset PFN_ORDER for offlined buddy headsxen/common/page_alloc.c+6 -02 replies
2/2tools/tests/native: Add test for offlined buddy head PFN_ORDERtools/tests/native/offline-head-order.c+74 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchJan Beulich
1/2R-b
2/2

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

Read the v2 thread

Cover letter [PATCH v2 0/2] xen/mm: Reset PFN_ORDER for offlined buddy heads

This series fixes an inconsistency in the PFN_ORDER annotation for pages that are offlined when they are the head of a free buddy.

When reserve_offlined_page() splits a buddy and moves offlined sub-pages to the offlined lists, the former buddy head would be left annotated with its original order even though it is now a single page. While this does not cause functional regressions, it is misleading.

You can pull this series with the regression test environment to run it:

$ git pull [email protected]:bernhardkaindl/xen.git offline-head-order-v2
$ make -C tools/tests/native TARGETS=offline-head-order test

Bernhard Kaindl (2):
xen/mm: reset PFN_ORDER for offlined buddy heads tools/tests/native: Add test for offlined buddy head PFN_ORDER

 tools/tests/native/offline-head-order.c | 74 +++++++++++++++++++++++++
 xen/common/page_alloc.c                 |  6 ++
 2 files changed, 80 insertions(+)
 create mode 100644 tools/tests/native/offline-head-order.c
Signature · 1 line
2.39.5