From: Gerd Hoffmann <kraxel@redhat.com>
To: qemu-devel@nongnu.org
Cc: "Thomas Huth" <thuth@redhat.com>,
berrange@redhat.com, "David Hildenbrand" <david@redhat.com>,
"Cornelia Huck" <cohuck@redhat.com>,
"Richard Henderson" <richard.henderson@linaro.org>,
armbru@redhat.com, "Halil Pasic" <pasic@linux.ibm.com>,
"Christian Borntraeger" <borntraeger@de.ibm.com>,
qemu-s390x@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
"Michael S. Tsirkin" <mst@redhat.com>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Samuel Thibault" <samuel.thibault@ens-lyon.org>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [PATCH 0/9] [RFC] store module metadata in .modinfo elf section
Date: Wed, 2 Jun 2021 11:17:18 +0200 [thread overview]
Message-ID: <20210602091727.1023563-1-kraxel@redhat.com> (raw)
This patch series stores module metadata in a .modinfo elf section and
adds a utility to read it. For now the utility just prints the meta
data. The plan is to store this in some file and have qemu read it.
Background is that the hard-coded lists in util/module.c are somewhat
ugly and also wouldn't work very well with a large number of modules,
so I'm looking for something else.
Posting this now to collect feedback on the apprach.
Should I continue this?
Better ideas?
Other comments & suggestions?
take care,
Gerd
Gerd Hoffmann (9):
Add module metadata macros, add qxl module annotations
add qemu-modinfo utility
virtio-gpu module annotations
chardev module annotations
audio module annotations
usb-redir module annotations
ccid module annotations
ui module annotations
s390x module annotations
include/qemu/module.h | 18 ++++
audio/spiceaudio.c | 2 +
chardev/baum.c | 1 +
chardev/spice.c | 4 +
hw/display/qxl.c | 4 +
hw/display/vhost-user-gpu-pci.c | 1 +
hw/display/vhost-user-gpu.c | 1 +
hw/display/vhost-user-vga.c | 1 +
hw/display/virtio-gpu-base.c | 1 +
hw/display/virtio-gpu-gl.c | 3 +
hw/display/virtio-gpu-pci-gl.c | 3 +
hw/display/virtio-gpu-pci.c | 2 +
hw/display/virtio-gpu.c | 1 +
hw/display/virtio-vga-gl.c | 3 +
hw/display/virtio-vga.c | 2 +
hw/s390x/virtio-ccw-gpu.c | 3 +
hw/usb/ccid-card-emulated.c | 1 +
hw/usb/ccid-card-passthru.c | 1 +
hw/usb/redirect.c | 1 +
qemu-modinfo.c | 182 ++++++++++++++++++++++++++++++++
ui/egl-headless.c | 4 +
ui/gtk.c | 4 +
ui/sdl2.c | 4 +
ui/spice-app.c | 3 +
ui/spice-core.c | 4 +
meson.build | 3 +
26 files changed, 257 insertions(+)
create mode 100644 qemu-modinfo.c
--
2.31.1
next reply other threads:[~2021-06-02 9:21 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-02 9:17 Gerd Hoffmann [this message]
2021-06-02 9:17 ` [PATCH 1/9] Add module metadata macros, add qxl module annotations Gerd Hoffmann
2021-06-02 9:17 ` [PATCH 2/9] add qemu-modinfo utility Gerd Hoffmann
2021-06-02 9:17 ` [PATCH 3/9] virtio-gpu module annotations Gerd Hoffmann
2021-06-02 9:17 ` [PATCH 4/9] chardev " Gerd Hoffmann
2021-06-02 9:17 ` [PATCH 5/9] audio " Gerd Hoffmann
2021-06-02 9:17 ` [PATCH 6/9] usb-redir " Gerd Hoffmann
2021-06-02 9:17 ` [PATCH 7/9] ccid " Gerd Hoffmann
2021-06-02 9:17 ` [PATCH 8/9] ui " Gerd Hoffmann
2021-06-02 9:17 ` [PATCH 9/9] s390x " Gerd Hoffmann
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20210602091727.1023563-1-kraxel@redhat.com \
--to=kraxel@redhat.com \
--cc=armbru@redhat.com \
--cc=berrange@redhat.com \
--cc=borntraeger@de.ibm.com \
--cc=cohuck@redhat.com \
--cc=david@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pasic@linux.ibm.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-s390x@nongnu.org \
--cc=richard.henderson@linaro.org \
--cc=samuel.thibault@ens-lyon.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.