30 Dec
                
                    2022
                
            
            
                30 Dec
                
                '22
                
            
            
            
        
    
                3:06 p.m.
            
        How should I add LD_PRELOAD to domain xml. I guess within:
<qemu:commandline> <qemu:arg value='env=LD_PRELOAD=/usr/lib64/libtcmalloc.so'/> </qemu:commandline>
but this is generating syntax errors.
https://libvirt.org/kbase/qemu-passthrough-security.html
Note the bit in the example that shows:
<qemu:env name='ID' value='wibble'/>
So try:
<qemu:env name="LD_PRELOAD" value="/usr/lib64/libtcmalloc.so"/>
Thank you very much Laine!!!