qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Fam Zheng <famz@redhat.com>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, famz@redhat.com, mjt@tls.msk.ru,
	stefanha@redhat.com, pbonzini@redhat.com, vilanova@ac.upc.edu,
	rth@twiddle.net
Subject: [Qemu-devel] [RFC PATCH v2 0/6] Shared Library Module Support
Date: Fri,  6 Sep 2013 15:28:05 +0800	[thread overview]
Message-ID: <1378452491-20467-1-git-send-email-famz@redhat.com> (raw)

This series implements feature of shared object building as described in:

http://wiki.qemu.org/Features/Modules

It's achieved in three steps, with extra bonus to change curl and qed to a
shared library module in the end (only to demonstrate the usage, no "make
install" support of .so files yet).

v2: <inline below>

1. Allow per object cflags and libs:

    [01/06] make.rule: fix $(obj) to a real relative path
            Slightly changed, added $(obj-base) to work with module dependency
            variable expansion.

    [02/06] rule.mak: allow per object cflags and libs

2. Rules for building .so:

    [03/06] Makefile: introduce common-obj-m and block-obj-m for DSO
            [Richard] Change some rule generation and don't use "ln -r" to for
            intermediate object.

3. Code to load module. All .so files are scanned and loaded when program
   starts:

    [04/06] module: implement module loading function
            [mjt] Don't load all .so unconditionally, subsystem call
            module_load for specific type.
            [Lluís] Used configure time prefix as the module base directory.

4. curl and qed adoption:

    [05/06] curl: build as shared library
    [06/06] qed: build as shared library
            Added to demostrate how to write multi-file module.


Fam Zheng (6):
  make.rule: fix $(obj) to a real relative path
  rule.mak: allow per object cflags and libs
  Makefile: introduce common-obj-m and block-obj-m for DSO
  module: implement module loading function
  curl: build as shared library
  qed: build as shared library

 Makefile              | 32 ++++++++++++++++++++++++++++---
 Makefile.objs         | 14 +++++++++++++-
 Makefile.target       |  3 ++-
 block.c               |  1 +
 block/Makefile.objs   |  7 ++++---
 bsd-user/main.c       |  3 +++
 configure             | 28 +++++++++++++++------------
 include/qemu/module.h |  9 +++++++++
 linux-user/main.c     |  3 +++
 qemu-img.c            |  1 +
 rules.mak             | 25 +++++++++++++++++++------
 scripts/create_config |  4 ++++
 ui/console.c          |  1 +
 util/Makefile.objs    |  2 ++
 util/module.c         | 52 +++++++++++++++++++++++++++++++++++++++++++++++++++
 vl.c                  |  2 ++
 16 files changed, 161 insertions(+), 26 deletions(-)

-- 
1.8.3.1

             reply	other threads:[~2013-09-06  7:28 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-06  7:28 Fam Zheng [this message]
2013-09-06  7:28 ` [Qemu-devel] [RFC PATCH v2 1/6] make.rule: fix $(obj) to a real relative path Fam Zheng
2013-09-06 17:19   ` Lluís Vilanova
2013-09-09  1:34     ` Fam Zheng
2013-09-09 10:41       ` Paolo Bonzini
2013-09-09 10:46     ` Peter Maydell
2013-09-06  7:28 ` [Qemu-devel] [RFC PATCH v2 2/6] rule.mak: allow per object cflags and libs Fam Zheng
2013-09-06 10:42   ` Michael Tokarev
2013-09-06 10:52     ` Fam Zheng
2013-09-06  7:28 ` [Qemu-devel] [RFC PATCH v2 3/6] Makefile: introduce common-obj-m and block-obj-m for DSO Fam Zheng
2013-09-06 10:09   ` Paolo Bonzini
2013-09-06 11:47     ` Fam Zheng
2013-09-06 12:11       ` Paolo Bonzini
2013-09-09  2:26         ` Fam Zheng
2013-09-09 10:43           ` Paolo Bonzini
2013-09-06  7:28 ` [Qemu-devel] [RFC PATCH v2 4/6] module: implement module loading function Fam Zheng
2013-09-06  9:47   ` Paolo Bonzini
2013-09-06  7:28 ` [Qemu-devel] [RFC PATCH v2 5/6] curl: build as shared library Fam Zheng
2013-09-06  7:28 ` [Qemu-devel] [RFC PATCH v2 6/6] qed: " Fam Zheng

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=1378452491-20467-1-git-send-email-famz@redhat.com \
    --to=famz@redhat.com \
    --cc=mjt@tls.msk.ru \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=stefanha@redhat.com \
    --cc=vilanova@ac.upc.edu \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).