[libvirt] [PATCH] Add -nodefconfig to the QEMU argv

Eric Blake eblake at redhat.com
Fri Jun 11 16:49:34 UTC 2010


On 06/10/2010 12:19 PM, Daniel P. Berrange wrote:
> We already use the '-nodefaults' command line arg with QEMU to stop
> it adding any default devices to guests. Unfortunately, QEMU will
> load global config files from /etc/qemu that may also add default
> devices. These aren't blocked by '-nodefaults', so we need to also
> add the '-nodefconfig' arg to prevent that.
> 
> Unfortunately these global config files are also used to define
> custom CPU models. So in blocking global hardware device addition
> we also block definitions of new CPU models. Libvirt doesn't know
> about these custom CPU models though, so it would never make use
> of them anyway. Thus blocking them via -nodefconfig isn't a show
> stopping problem. We would need to expand libvirt's own CPU model
> XML database to support these instead.
> 
> * src/qemu/qemu_conf.c: Add '-nodefconfig' if available
> * tests/qemuxml2argvdata/: Add '-nodefconfig' to all data files which
>   have '-nodefaults' present

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 619 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20100611/74a7f23f/attachment-0001.sig>


More information about the libvir-list mailing list