Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Fam Zheng
On Mon, 08/03 12:22, Marc Marí wrote: > On Mon, 3 Aug 2015 17:24:57 +0800 > Fam Zheng wrote: > > > On Mon, 08/03 11:01, Marc Marí wrote: > > > Some profiling: > > > > > > A QEMU with this configuration: > > > ./configure --enable-sparse --enable-sdl --enable-gtk --enable-vte \ > > > --enable-cu

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Marc Marí
On Mon, 3 Aug 2015 17:24:57 +0800 Fam Zheng wrote: > On Mon, 08/03 11:01, Marc Marí wrote: > > Some profiling: > > > > A QEMU with this configuration: > > ./configure --enable-sparse --enable-sdl --enable-gtk --enable-vte \ > > --enable-curses --enable-vnc --enable-vnc-{jpeg,tls,sasl,png,ws} \

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Daniel P. Berrange
On Mon, Aug 03, 2015 at 10:58:41AM +0100, Alex Bennée wrote: > > Marc Marí writes: > > > On Mon, 03 Aug 2015 10:24:56 +0100 > > Alex Bennée wrote: > > > >> > >> Marc Marí writes: > >> > >> > On Mon, 3 Aug 2015 16:22:34 +0800 > >> > Fam Zheng wrote: > >> > > >> >> On Mon, 08/03 09:52, Marc M

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Alex Bennée
Marc Marí writes: > On Mon, 03 Aug 2015 10:24:56 +0100 > Alex Bennée wrote: > >> >> Marc Marí writes: >> >> > On Mon, 3 Aug 2015 16:22:34 +0800 >> > Fam Zheng wrote: >> > >> >> On Mon, 08/03 09:52, Marc Marí wrote: >> >> > So any other ideas to reduce the library overhead are >> >> > apprec

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Paolo Bonzini
On 03/08/2015 05:09, Fam Zheng wrote: > bdrv_probe_all is harder. If we modularize a format driver, its .bdrv_probe > code will be in the module. If we want to do the format detection, we need to > load all format drivers. This means if the command line has an unspecified > format, we'll still ne

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Marc Marí
On Mon, 3 Aug 2015 10:23:37 +0100 "Daniel P. Berrange" wrote: > On Fri, Jul 31, 2015 at 05:45:42PM +0200, Marc Marí wrote: > > Hi everyone > > > > I propose improving the current modular driver system for QEMU so it > > can benefit everybody in speed and flexibility. I'm looking for > > other id

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Daniel P. Berrange
On Mon, Aug 03, 2015 at 10:24:56AM +0100, Alex Bennée wrote: > > Marc Marí writes: > > > On Mon, 3 Aug 2015 16:22:34 +0800 > > Fam Zheng wrote: > > > >> On Mon, 08/03 09:52, Marc Marí wrote: > >> > So any other ideas to reduce the library overhead are appreciated. > >> > >> It would be interes

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Marc Marí
On Mon, 03 Aug 2015 10:24:56 +0100 Alex Bennée wrote: > > Marc Marí writes: > > > On Mon, 3 Aug 2015 16:22:34 +0800 > > Fam Zheng wrote: > > > >> On Mon, 08/03 09:52, Marc Marí wrote: > >> > So any other ideas to reduce the library overhead are > >> > appreciated. > >> > >> It would be inter

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Alex Bennée
Marc Marí writes: > On Mon, 3 Aug 2015 16:22:34 +0800 > Fam Zheng wrote: > >> On Mon, 08/03 09:52, Marc Marí wrote: >> > So any other ideas to reduce the library overhead are appreciated. >> >> It would be interesting to see your profiling on the library loading >> overhead. For example, how m

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Daniel P. Berrange
On Fri, Jul 31, 2015 at 05:45:42PM +0200, Marc Marí wrote: > Hi everyone > > I propose improving the current modular driver system for QEMU so it > can benefit everybody in speed and flexibility. I'm looking for other > ideas, comments, critics, etc. > > - Background - > In order to speed up QEMU

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Fam Zheng
On Mon, 08/03 11:01, Marc Marí wrote: > Some profiling: > > A QEMU with this configuration: > ./configure --enable-sparse --enable-sdl --enable-gtk --enable-vte \ > --enable-curses --enable-vnc --enable-vnc-{jpeg,tls,sasl,png,ws} \ > --enable-virtfs --enable-brlapi --enable-curl --enable-fdt \ >

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Daniel P. Berrange
On Mon, Aug 03, 2015 at 11:09:06AM +0800, Fam Zheng wrote: > On Fri, 07/31 17:45, Marc Marí wrote: > > Hi everyone > > > > I propose improving the current modular driver system for QEMU so it > > can benefit everybody in speed and flexibility. I'm looking for other > > ideas, comments, critics, et

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Marc Marí
On Mon, 3 Aug 2015 16:22:34 +0800 Fam Zheng wrote: > On Mon, 08/03 09:52, Marc Marí wrote: > > So any other ideas to reduce the library overhead are appreciated. > > It would be interesting to see your profiling on the library loading > overhead. For example, how much does it help to reduce the

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Fam Zheng
On Mon, 08/03 09:52, Marc Marí wrote: > So any other ideas to reduce the library overhead are appreciated. It would be interesting to see your profiling on the library loading overhead. For example, how much does it help to reduce the library size, and how much does it help to reduce the # of libr

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Marc Marí
On Mon, 3 Aug 2015 11:09:06 +0800 Fam Zheng wrote: > On Fri, 07/31 17:45, Marc Marí wrote: > > Hi everyone > > > > I propose improving the current modular driver system for QEMU so it > > can benefit everybody in speed and flexibility. I'm looking for > > other ideas, comments, critics, etc. > >

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-03 Thread Peter Maydell
On 3 August 2015 at 04:09, Fam Zheng wrote: > bdrv_probe_all is harder. If we modularize a format driver, its .bdrv_probe > code will be in the module. If we want to do the format detection, we need to > load all format drivers. This means if the command line has an unspecified > format, we'll sti

Re: [Qemu-devel] Modularizing QEMU RFC

2015-08-02 Thread Fam Zheng
On Fri, 07/31 17:45, Marc Marí wrote: > Hi everyone > > I propose improving the current modular driver system for QEMU so it > can benefit everybody in speed and flexibility. I'm looking for other > ideas, comments, critics, etc. > > - Background - > In order to speed up QEMU, I'm looking at the

[Qemu-devel] Modularizing QEMU RFC

2015-07-31 Thread Marc Marí
Hi everyone I propose improving the current modular driver system for QEMU so it can benefit everybody in speed and flexibility. I'm looking for other ideas, comments, critics, etc. - Background - In order to speed up QEMU, I'm looking at the high number of libraries and dependencies that it load