On Mon, Mar 11, 2013 at 04:06:33PM +0100, Peter Krempa wrote:
This patch implements the callback that is used to fill the qemu
default
network card into the XML if none is specified.
Libvirt assumes that the network card for qemu if none specified is the
"rtl8139". Record this in the XML using the new callback to avoid user
confusion.
---
src/qemu/qemu_conf.c | 2 +-
src/qemu/qemu_domain.c | 26 ++++++++++++++++++++++++++
src/qemu/qemu_domain.h | 1 +
3 files changed, 28 insertions(+), 1 deletion(-)
diff --git a/src/qemu/qemu_conf.c b/src/qemu/qemu_conf.c
index ef592cd..b9b7357 100644
--- a/src/qemu/qemu_conf.c
+++ b/src/qemu/qemu_conf.c
@@ -555,7 +555,7 @@ virDomainXMLConfPtr
virQEMUDriverCreateXMLConf(void)
{
return virDomainXMLConfNew(&virQEMUDriverPrivateDataCallbacks,
- NULL,
+ &virQEMUDriverDomainDefAdjustCallbacks,
s/Adjust/PostParse/
&virQEMUDriverDomainXMLNamespace);
}
ACK
Daniel
--
|:
http://berrange.com -o-
http://www.flickr.com/photos/dberrange/ :|
|:
http://libvirt.org -o-
http://virt-manager.org :|
|:
http://autobuild.org -o-
http://search.cpan.org/~danberr/ :|
|:
http://entangle-photo.org -o-
http://live.gnome.org/gtk-vnc :|