virtio-mem: factor out handling of fake-offline pages in memory notifier
authorDavid Hildenbrand <david@redhat.com>
Thu, 12 Nov 2020 13:37:55 +0000 (14:37 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 18 Dec 2020 21:14:26 +0000 (16:14 -0500)
commit7a34c77dab7e0c7ecb58da8bf600b7aadb4d878c
treeea88c9cd4947f270cc57aee4de4e6868215c0e98
parent89c486c47f2a450d7f064b4927b7f0ab911569a4
virtio-mem: factor out handling of fake-offline pages in memory notifier

Let's factor out the core pieces and place the implementation next to
virtio_mem_fake_offline(). We'll reuse this functionality soon.

Reviewed-by: Wei Yang <richard.weiyang@linux.alibaba.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Jason Wang <jasowang@redhat.com>
Cc: Pankaj Gupta <pankaj.gupta.linux@gmail.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Link: https://lore.kernel.org/r/20201112133815.13332-10-david@redhat.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_mem.c