Re: [PATCH v7 01/20] softmmu: split off vl.c:main() into main.c

2020-01-21 Thread Stefan Hajnoczi
On Mon, Jan 20, 2020 at 05:54:38AM +, Bulekov, Alexander wrote: > @@ -3813,7 +3794,7 @@ int main(int argc, char **argv, char **envp) > set_memory_options(&ram_slots, &maxram_size, machine_class); > > os_daemonize(); > -rcu_disable_atfork(); > +/* rcu_disable_atfork(); */ In

[PATCH v7 01/20] softmmu: split off vl.c:main() into main.c

2020-01-19 Thread Bulekov, Alexander
A program might rely on functions implemented in vl.c, but implement its own main(). By placing main into a separate source file, there are no complaints about duplicate main()s when linking against vl.o. For example, the virtual-device fuzzer uses a main() provided by libfuzzer, and needs to perfo