qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 00/11] Trim dependencies of qemu-ga, vscclient, test


From: Paolo Bonzini
Subject: [Qemu-devel] [PATCH 00/11] Trim dependencies of qemu-ga, vscclient, tests
Date: Mon, 29 Oct 2012 19:07:07 +0100

qemu-ga and vscclient have a very long list of dependencies, but
this is mostly because of tools-obj-y and because of qemu-tool.c's
own dependencies.

These are complex to disentangle, and became worse with recent additions
(especially fdsets).  Luckily, some dependencies (for example on
qemu-timer.c, patches 8-10) can be removed from qemu-tool.c.  When not
possible or overly complex, stuff can be moved out of qemu-tool.c and
into the files that actually require the stubbed-out functions, using
weak references.

I would like to do more of these, but because of the currently-broken
state of Win32 and slightly different semantics of weak references
between ELF and Win32, this does just the minimum necessary.

Paolo

Paolo Bonzini (11):
  janitor: move iovector functions out of cutils.c
  build: move cutils.o and qemu-timer-common.o to oslib-obj-y
  compiler: use weak aliases to provide default definitions
  sockets: use weak aliases instead of qemu-tool.c
  fdsets: use weak aliases instead of qemu-tool.c/qemu-user.c
  iohandler: add weak alias in qemu-sockets.c, for qemu-ga
  win32: add weak version of qemu_fd_register
  qemu-timer: make initialization functions idempotent
  main-loop: unify qemu_init_main_loop between QEMU and tools
  qemu-tool: do not depend on qemu-timer.c
  build: do not include main loop where it is not actually used

 Makefile       |   7 ++--
 Makefile.objs  |  13 ++++---
 arch_init.h    |   2 +-
 compiler.h     |  11 +++---
 cutils.c       | 108 ---------------------------------------------------------
 iov.c          | 103 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 main-loop.c    |   5 ++-
 main-loop.h    |  10 ------
 osdep.c        |  30 ++++++++++++++++
 oslib-win32.c  |   5 +++
 qemu-common.h  |   1 -
 qemu-sockets.c |  18 ++++++++++
 qemu-timer.c   |  12 +++++--
 qemu-tool.c    |  35 +------------------
 qemu-user.c    |  20 -----------
 qmp.c          |   3 +-
 tests/Makefile |   4 +--
 vl.c           |   5 ---
 18 file modificati, 188 inserzioni(+), 204 rimozioni(-)

-- 
1.7.12.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]