mirror of https://gitlab.com/qemu-project/qemu
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
An upcoming patch needs to pass more than just sioc as the opaque pointer to an AioContext; but since our AioContext code in general (and its QIO Channel wrapper code) lacks a notify callback present with GSource, we do not have the trivial option of just g_malloc'ing a small struct to hold all that data coupled with a notify of g_free. Instead, the data pointer must outlive the registered handler; in fact, having the data pointer have the same lifetime as QIONetListener is adequate. But the cleanest way to stick such a helper struct in QIONetListener will be to rearrange internal struct members. And that in turn means that all existing code that currently directly accesses listener->nsioc and listener->sioc[] should instead go through accessor functions, to be immune to the upcoming struct layout changes. So this patch adds accessor methods qio_net_listener_nsioc() and qio_net_listener_sioc(), and puts them to use. While at it, notice that the pattern of grabbing an sioc from the listener only to turn around can call qio_channel_socket_get_local_address is common enough to also warrant the helper of qio_net_listener_get_local_address, and fix a copy-paste error in the corresponding documentation. Signed-off-by: Eric Blake <eblake@redhat.com> Message-ID: <20251113011625.878876-24-eblake@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com> |
3 days ago | |
|---|---|---|
| .. | ||
| block-active.c | 9 months ago | |
| block-dirty-bitmap.c | 4 months ago | |
| channel-block.c | 2 weeks ago | |
| channel-block.h | 3 years ago | |
| channel.c | 2 weeks ago | |
| channel.h | 3 years ago | |
| colo-failover.c | 3 years ago | |
| colo-stubs.c | 2 years ago | |
| colo.c | 1 month ago | |
| cpr-exec.c | 2 weeks ago | |
| cpr-transfer.c | 5 months ago | |
| cpr.c | 2 weeks ago | |
| cpu-throttle.c | 11 months ago | |
| dirtyrate.c | 7 months ago | |
| dirtyrate.h | 11 months ago | |
| exec.c | 2 years ago | |
| exec.h | 2 years ago | |
| fd.c | 12 months ago | |
| fd.h | 2 years ago | |
| file.c | 7 months ago | |
| file.h | 1 year ago | |
| global_state.c | 11 months ago | |
| meson.build | 1 month ago | |
| migration-hmp-cmds.c | 2 weeks ago | |
| migration-stats.c | 2 years ago | |
| migration-stats.h | 2 years ago | |
| migration.c | 2 weeks ago | |
| migration.h | 2 weeks ago | |
| multifd-device-state.c | 4 months ago | |
| multifd-nocomp.c | 6 months ago | |
| multifd-qatzip.c | 7 months ago | |
| multifd-qpl.c | 7 months ago | |
| multifd-uadk.c | 7 months ago | |
| multifd-zero-page.c | 6 months ago | |
| multifd-zlib.c | 7 months ago | |
| multifd-zstd.c | 7 months ago | |
| multifd.c | 1 month ago | |
| multifd.h | 7 months ago | |
| options.c | 2 weeks ago | |
| options.h | 2 weeks ago | |
| page_cache.c | 5 years ago | |
| page_cache.h | 5 years ago | |
| postcopy-ram.c | 2 weeks ago | |
| postcopy-ram.h | 2 weeks ago | |
| qemu-file.c | 2 weeks ago | |
| qemu-file.h | 2 months ago | |
| ram.c | 2 weeks ago | |
| ram.h | 1 month ago | |
| rdma.c | 7 months ago | |
| rdma.h | 7 months ago | |
| savevm.c | 2 weeks ago | |
| savevm.h | 2 weeks ago | |
| socket.c | 3 days ago | |
| socket.h | 1 year ago | |
| threadinfo.c | 2 years ago | |
| threadinfo.h | 2 years ago | |
| tls.c | 4 months ago | |
| tls.h | 9 months ago | |
| trace-events | 2 weeks ago | |
| trace.h | 5 years ago | |
| vfio-stub.c | 3 months ago | |
| vfio.c | 3 months ago | |
| vmstate-types.c | 1 month ago | |
| vmstate.c | 2 weeks ago | |
| xbzrle.c | 3 years ago | |
| xbzrle.h | 3 years ago | |
| yank_functions.c | 2 years ago | |
| yank_functions.h | 4 years ago | |