]> www.infradead.org Git - users/dwmw2/qemu.git/commit
virtio-mem: improve error message when unplug of device fails due to plugged memory
authorDavid Hildenbrand <david@redhat.com>
Tue, 16 Apr 2024 14:14:26 +0000 (16:14 +0200)
committerDavid Hildenbrand <david@redhat.com>
Wed, 10 Jul 2024 16:06:24 +0000 (18:06 +0200)
commit4d13ae45ff93fa825ceb39dfd16b305f4baccd18
tree6643cd405cc10b1e166d5e84e48d85b2fe4d2b2e
parent59084feb256c617063e0dbe7e64821ae8852d7cf
virtio-mem: improve error message when unplug of device fails due to plugged memory

The error message is actually expressive, considering QEMU only. But
when called from Libvirt, talking about "size" can be confusing, because
in Libvirt "size" translates to the memory backend size in QEMU (maximum
size) and "current" translates to the QEMU "size" property.

Let's simply avoid talking about the "size" property and spell out that
some device memory is still plugged.

Message-ID: <20240416141426.588544-1-david@redhat.com>
Tested-by: Mario Casquero <mcasquer@redhat.com>
Cc: Liang Cong <lcong@redhat.com>
Cc: Mario Casquero <mcasquer@redhat.com>
Cc: "Michael S. Tsirkin" <mst@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
hw/virtio/virtio-mem.c