[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading functio
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function |
Date: |
Thu, 12 Sep 2013 05:59:30 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130805 Thunderbird/17.0.8 |
On 09/11/2013 11:36 PM, Michael Tokarev wrote:
>
> A solution which I proposed at the very beginning -- to export
> a "hashed" init function from modules, and call it from the
> main executable. Like, instead of, say, qemu_module_init(),
> call qemu_module_init_0xdeadbeaf(), where 0xdeadbeaf is a
> hash of some build-dependent value. This should be enough
> to keep it going.
And of course, since we store sources in git, you already have such a
hash value at your disposal:
$CC -DBUILD_HASH=$(git rev-parse HEAD) ...
coupled with
glue(qemu_module_init_, BUILD_HASH)
where the only trick is to figure out how to bake in a hash when
building from a released tarball rather than git.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- Re: [Qemu-devel] [PATCH v6 3/8] Makefile: introduce common-obj-m and block-obj-m for DSO, (continued)
- [Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Fam Zheng, 2013/09/11
- Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Daniel P. Berrange, 2013/09/11
- Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Alex Bligh, 2013/09/11
- Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Richard Henderson, 2013/09/11
- Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Fam Zheng, 2013/09/11
- Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Michael Tokarev, 2013/09/12
- Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Daniel P. Berrange, 2013/09/12
- Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function,
Eric Blake <=
- Re: [Qemu-devel] [PATCH v6 4/8] module: implement module loading function, Daniel P. Berrange, 2013/09/12
[Qemu-devel] [PATCH v6 5/8] configure: introduce --enable-modules, Fam Zheng, 2013/09/11
[Qemu-devel] [PATCH v6 6/8] Makefile: install modules with "make install", Fam Zheng, 2013/09/11
[Qemu-devel] [PATCH v6 7/8] .gitignore: ignore module related files (dll, so, mo), Fam Zheng, 2013/09/11
[Qemu-devel] [PATCH v6 8/8] block: convert block drivers linked with libs to modules, Fam Zheng, 2013/09/11