PR sync from: Wupeng Ma mawupeng1@huawei.com
https://mailweb.openeuler.org/hyperkitty/list/kernel@openeuler.org/message/ULCM52MVEHK4ROP6RSEWSTSY6I24OJYG/
From: Ma Wupeng mawupeng1@huawei.com

Page ejection is achieved by soft_offline_page and unpoison_memory. A
linked list is maintained to log the pfns which are offlined by this
module. Only the pfns present in the list is allowed to go online.

The follow sysfs is introduced to online/offline page via this
module, since there is a internal linked list to record all
offlined pages, remove_page is introduced when a user no longer
wishes to online this particular page. To reduce the length of
the internal list, this function removes the specified page from
the list.

  • /sys/kernel/page_eject/online_page
  • /sys/kernel/page_eject/offline_page
  • /sys/kernel/page_eject/remove_page

Changelog since v2:

  • bugfix for page_eject_clear_list_locked

Changelog since v1:

  • remove mce related patches temporarily.

Ma Wupeng (3):
mm/hwpoison: Export symbol soft_offline_page
mm: page_eject: Introuduce page ejection
config: update defconfig for PAGE_EJECT

--
2.25.1

#I8K5CO:【openEuler-22.03-LTS-SP3】内存动态隔离和释放