[libvirt] [PATCH 06/14] Assign names to qemu NICs and network backends
Daniel P. Berrange
berrange at redhat.com
Mon Jul 20 16:20:42 UTC 2009
On Mon, Jul 20, 2009 at 12:51:16PM +0100, Mark McLoughlin wrote:
> We need these so that we can remove the devices via the monitor.
>
> * src/domain_conf.h: add nic_name and hostnet_name to virDomainNetDef
>
> * src/domain_conf.c: free nic_name and hostnet_name
>
> * src/qemu_conf.c: add qemuAssignNetNames(), use it if qemu has
> support for the param and pass the names on the command line
>
> * tests/qemuxml2argv*: add a test for this
> ---
> src/domain_conf.c | 2 +
> src/domain_conf.h | 2 +
> src/qemu_conf.c | 95 ++++++++++++++++++--
> .../qemuxml2argv-net-eth-names.args | 1 +
> .../qemuxml2argv-net-eth-names.xml | 31 +++++++
> tests/qemuxml2argvtest.c | 1 +
> 6 files changed, 124 insertions(+), 8 deletions(-)
> create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-net-eth-names.args
> create mode 100644 tests/qemuxml2argvdata/qemuxml2argv-net-eth-names.xml
ACK,
Daniel
--
|: Red Hat, Engineering, London -o- http://people.redhat.com/berrange/ :|
|: http://libvirt.org -o- http://virt-manager.org -o- http://ovirt.org :|
|: http://autobuild.org -o- http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505 -o- F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|
More information about the libvir-list
mailing list