virtio-mem: convert most offline_and_remove_memory() errors to -EBUSY
authorDavid Hildenbrand <david@redhat.com>
Thu, 13 Jul 2023 14:55:49 +0000 (16:55 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 10 Aug 2023 19:51:46 +0000 (15:51 -0400)
commitddf409851461f515cc32974714b73efe2e012bde
treedc1bb654c2658ba55bbe08075b967092b59775a8
parentf504e15b94eb4e5b47f8715da59c0207f68dffe1
virtio-mem: convert most offline_and_remove_memory() errors to -EBUSY

Just like we do with alloc_contig_range(), let's convert all unknown
errors to -EBUSY, but WARN so we can look into the issue. For example,
offline_pages() could fail with -EINTR, which would be unexpected in our
case.

Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20230713145551.2824980-3-david@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_mem.c