summaryrefslogtreecommitdiffstats
path: root/hw/vfio
diff options
context:
space:
mode:
authorPeter Xu2021-08-17 03:35:52 +0200
committerPaolo Bonzini2021-09-30 15:30:24 +0200
commit142518bda515c132a46ce5826e73fbd2a5b154d9 (patch)
treeabc85b88e464cd7c8b380158daf229dbba00061e /hw/vfio
parenttarget/i386: Fix memory leak in sev_read_file_base64() (diff)
downloadqemu-142518bda515c132a46ce5826e73fbd2a5b154d9.tar.gz
qemu-142518bda515c132a46ce5826e73fbd2a5b154d9.tar.xz
qemu-142518bda515c132a46ce5826e73fbd2a5b154d9.zip
memory: Name all the memory listeners
Provide a name field for all the memory listeners. It can be used to identify which memory listener is which. Signed-off-by: Peter Xu <peterx@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com> Message-Id: <20210817013553.30584-2-peterx@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/vfio')
-rw-r--r--hw/vfio/common.c1
-rw-r--r--hw/vfio/spapr.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/hw/vfio/common.c b/hw/vfio/common.c
index 1289cfa8be..a784b219e6 100644
--- a/hw/vfio/common.c
+++ b/hw/vfio/common.c
@@ -1435,6 +1435,7 @@ static void vfio_listener_log_sync(MemoryListener *listener,
}
static const MemoryListener vfio_memory_listener = {
+ .name = "vfio",
.region_add = vfio_listener_region_add,
.region_del = vfio_listener_region_del,
.log_global_start = vfio_listener_log_global_start,
diff --git a/hw/vfio/spapr.c b/hw/vfio/spapr.c
index ea3f70bd2f..04c6e67f8f 100644
--- a/hw/vfio/spapr.c
+++ b/hw/vfio/spapr.c
@@ -136,6 +136,7 @@ static void vfio_prereg_listener_region_del(MemoryListener *listener,
}
const MemoryListener vfio_prereg_listener = {
+ .name = "vfio-pre-reg",
.region_add = vfio_prereg_listener_region_add,
.region_del = vfio_prereg_listener_region_del,
};