All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/9] [RFC] store module metadata in .modinfo elf section
@ 2021-06-02  9:17 Gerd Hoffmann
  2021-06-02  9:17 ` [PATCH 1/9] Add module metadata macros, add qxl module annotations Gerd Hoffmann
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Gerd Hoffmann @ 2021-06-02  9:17 UTC (permalink / raw)
  To: qemu-devel
  Cc: Thomas Huth, berrange, David Hildenbrand, Cornelia Huck,
	Richard Henderson, armbru, Halil Pasic, Christian Borntraeger,
	qemu-s390x, Paolo Bonzini, Michael S. Tsirkin, Gerd Hoffmann,
	Samuel Thibault, Marc-André Lureau

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




^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-06-02  9:23 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-02  9:17 [PATCH 0/9] [RFC] store module metadata in .modinfo elf section Gerd Hoffmann
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

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.