[PATCH v4 0/7] build some devices as modules.

Gerd Hoffmann posted 7 patches 3 years, 10 months ago
Test FreeBSD passed
Test asan passed
Test docker-quick@centos7 passed
Test checkpatch passed
Test docker-mingw@fedora passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20200622135601.12433-1-kraxel@redhat.com
Maintainers: Gerd Hoffmann <kraxel@redhat.com>, "Daniel P. Berrangé" <berrange@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>
There is a newer version of this series
Makefile.objs            |  1 +
Makefile.target          |  7 +++++
include/hw/qdev-core.h   |  3 ++
include/qemu/module.h    |  1 +
hw/core/qdev.c           | 66 ++++++++++++++++++++++++++++++++++++++++
qdev-monitor.c           |  5 +++
qom/qom-qmp-cmds.c       |  5 +++
softmmu/vl.c             |  4 +++
stubs/hw-module.c        | 10 ++++++
hw/Makefile.objs         |  2 ++
hw/display/Makefile.objs | 28 ++++++++++-------
hw/usb/Makefile.objs     | 13 +++++---
stubs/Makefile.objs      |  1 +
13 files changed, 131 insertions(+), 15 deletions(-)
create mode 100644 stubs/hw-module.c
[PATCH v4 0/7] build some devices as modules.
Posted by Gerd Hoffmann 3 years, 10 months ago
Specifically devices which depend on shared libraries,
to reduce the runtime dependencies of core qemu.

v2:
 - better commit messages.
 - add some more devices.
 - general tidy up.

v3:
 - rebase, solve stubs conflict.
 - fix -vga $name
 - fix -device $name,help

v4:
 - rebase to latest master
 - adapt to armbru's device init changes

Gerd Hoffmann (7):
  qdev: add support for device module loading
  build: fix device module builds
  ccid: build smartcard as module
  usb: build usb-redir as module
  vga: build qxl as module
  vga: build virtio-gpu only once
  vga: build virtio-gpu as module

 Makefile.objs            |  1 +
 Makefile.target          |  7 +++++
 include/hw/qdev-core.h   |  3 ++
 include/qemu/module.h    |  1 +
 hw/core/qdev.c           | 66 ++++++++++++++++++++++++++++++++++++++++
 qdev-monitor.c           |  5 +++
 qom/qom-qmp-cmds.c       |  5 +++
 softmmu/vl.c             |  4 +++
 stubs/hw-module.c        | 10 ++++++
 hw/Makefile.objs         |  2 ++
 hw/display/Makefile.objs | 28 ++++++++++-------
 hw/usb/Makefile.objs     | 13 +++++---
 stubs/Makefile.objs      |  1 +
 13 files changed, 131 insertions(+), 15 deletions(-)
 create mode 100644 stubs/hw-module.c

-- 
2.18.4


Re: [PATCH v4 0/7] build some devices as modules.
Posted by Stefan Hajnoczi 3 years, 10 months ago
On Mon, Jun 22, 2020 at 03:55:54PM +0200, Gerd Hoffmann wrote:
> Specifically devices which depend on shared libraries,
> to reduce the runtime dependencies of core qemu.

Just wanted to say great that you are doing this! Nice that progress is
being made on QEMU modularization.

Stefan