Disabling CONFIG_QOM_CAST_DEBUG in Fedora qemu builds

Paolo Bonzini pbonzini at redhat.com
Fri Oct 6 21:02:27 UTC 2023


Il ven 6 ott 2023, 20:36 Richard W.M. Jones <rjones at redhat.com> ha scritto:

> I patched my copy of qemu to add ../configure --disable-qom-cast-debug
> flag.  This reduced the time taken to run two test compiles inside the
> guest from [465, 467] seconds down to [445, 441] seconds, which is a
> saving of about 5%.
>
> Or ... maybe someone knows a way to disable the debugging code when
> called from particular call sites?
>

You can replace the hottest sites with just a C cast. The only one I see in
the flame graph is cpu_get_tb_cpu_state().

Paolo



> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> Fedora Windows cross-compiler. Compile Windows programs, test, and
> build Windows installers. Over 100 libraries supported.
> http://fedoraproject.org/wiki/MinGW
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/virt-tools-list/attachments/20231006/bd566b1d/attachment.htm>


More information about the virt-tools-list mailing list