All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/2] xen/mm: Reset PFN_ORDER for offlined buddy heads
@ 2026-06-03 15:11 Bernhard Kaindl
  2026-06-03 15:11 ` [PATCH v2 1/2] xen/mm: reset " Bernhard Kaindl
  2026-06-03 15:11 ` [PATCH v2 2/2] tools/tests/native: Add test for offlined buddy head PFN_ORDER Bernhard Kaindl
  0 siblings, 2 replies; 5+ messages in thread
From: Bernhard Kaindl @ 2026-06-03 15:11 UTC (permalink / raw)
  To: xen-devel
  Cc: Bernhard Kaindl, Andrew Cooper, Anthony PERARD, Michal Orzel,
	Jan Beulich, Julien Grall, Roger Pau Monné,
	Stefano Stabellini

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 git@gitlab.com:bernhardkaindl/xen.git offline-head-order-v2
$ make -C tools/tests/native TARGETS=offline-head-order test

Signed-off-by: Bernhard Kaindl <bernhard.kaindl@citrix.com>

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

-- 
2.39.5



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

end of thread, other threads:[~2026-06-03 15:29 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-03 15:11 [PATCH v2 0/2] xen/mm: Reset PFN_ORDER for offlined buddy heads Bernhard Kaindl
2026-06-03 15:11 ` [PATCH v2 1/2] xen/mm: reset " Bernhard Kaindl
2026-06-03 15:25   ` Jan Beulich
2026-06-03 15:29     ` Bernhard Kaindl
2026-06-03 15:11 ` [PATCH v2 2/2] tools/tests/native: Add test for offlined buddy head PFN_ORDER Bernhard Kaindl

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.