diff options
author | David Hildenbrand <david@redhat.com> | 2020-05-07 16:01:31 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2020-06-04 21:36:52 +0200 |
commit | 8e5c921ca0cd9aa59386e6be4b86b32f0ba7296b (patch) | |
tree | 4e40dcdd1cd0117d2e2641668bf71a5404421eec /usr/include | |
parent | mm: Allow to offline unmovable PageOffline() pages via MEM_GOING_OFFLINE (diff) | |
download | linux-8e5c921ca0cd9aa59386e6be4b86b32f0ba7296b.tar.xz linux-8e5c921ca0cd9aa59386e6be4b86b32f0ba7296b.zip |
virtio-mem: Allow to offline partially unplugged memory blocks
Dropping the reference count of PageOffline() pages during MEM_GOING_ONLINE
allows offlining code to skip them. However, we also have to clear
PG_reserved, because PG_reserved pages get detected as unmovable right
away. Take care of restoring the reference count when offlining is
canceled.
Clarify why we don't have to perform any action when unloading the
driver. Also, let's add a warning if anybody is still holding a
reference to unplugged pages when offlining.
Tested-by: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Oscar Salvador <osalvador@suse.de>
Cc: Michal Hocko <mhocko@kernel.org>
Cc: Igor Mammedov <imammedo@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Dan Williams <dan.j.williams@intel.com>
Cc: Pavel Tatashin <pasha.tatashin@soleen.com>
Cc: Stefan Hajnoczi <stefanha@redhat.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20200507140139.17083-8-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'usr/include')
0 files changed, 0 insertions, 0 deletions