]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: make memory_listener_unregister idempotent
authorPaolo Bonzini <pbonzini@redhat.com>
Fri, 27 Jan 2017 15:40:12 +0000 (16:40 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 17 Feb 2017 19:52:30 +0000 (21:52 +0200)
commit1d8280c18f96f0cd96d1e7acd62f7250c4da1a84
tree7aa34e23a97db23c79cb369519cecd309e2fc964
parent79c0f397feaea37992500eafd933e301c2306410
memory: make memory_listener_unregister idempotent

Make it easy to unregister a MemoryListener without tracking whether it
had been registered before.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
memory.c