diff options
| author | Peter Xu | 2021-08-17 03:35:52 +0200 |
|---|---|---|
| committer | Paolo Bonzini | 2021-09-30 15:30:24 +0200 |
| commit | 142518bda515c132a46ce5826e73fbd2a5b154d9 (patch) | |
| tree | abc85b88e464cd7c8b380158daf229dbba00061e /include/exec | |
| parent | target/i386: Fix memory leak in sev_read_file_base64() (diff) | |
| download | qemu-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 'include/exec')
| -rw-r--r-- | include/exec/memory.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/exec/memory.h b/include/exec/memory.h index 9446874d21..a185b6dcb8 100644 --- a/include/exec/memory.h +++ b/include/exec/memory.h @@ -982,6 +982,14 @@ struct MemoryListener { */ unsigned priority; + /** + * @name: + * + * Name of the listener. It can be used in contexts where we'd like to + * identify one memory listener with the rest. + */ + const char *name; + /* private: */ AddressSpace *address_space; QTAILQ_ENTRY(MemoryListener) link; |
