mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-08-27 11:01:19 +00:00
Fix networking in paravirt guests
This commit is contained in:
parent
adec25590c
commit
129a24ea8c
@ -1,3 +1,8 @@
|
|||||||
|
Thu Aug 18 15:22:23 EDT 2006 Daniel Berrange <berrange@redhat.com>
|
||||||
|
|
||||||
|
* src/xml.c: fix networking in paravirt guests - only set the
|
||||||
|
'(type ioemu)' option for HVM.
|
||||||
|
|
||||||
Thu Aug 17 19:42:50 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
Thu Aug 17 19:42:50 CEST 2006 Daniel Veillard <veillard@redhat.com>
|
||||||
|
|
||||||
* src/xml.c: fix virParseUUID()
|
* src/xml.c: fix virParseUUID()
|
||||||
|
@ -967,7 +967,7 @@ virDomainParseXMLDiskDesc(xmlNodePtr node, virBufferPtr buf, int hvm)
|
|||||||
* Returns 0 in case of success, -1 in case of error.
|
* Returns 0 in case of success, -1 in case of error.
|
||||||
*/
|
*/
|
||||||
static int
|
static int
|
||||||
virDomainParseXMLIfDesc(xmlNodePtr node, virBufferPtr buf)
|
virDomainParseXMLIfDesc(xmlNodePtr node, virBufferPtr buf, int hvm)
|
||||||
{
|
{
|
||||||
xmlNodePtr cur;
|
xmlNodePtr cur;
|
||||||
xmlChar *type = NULL;
|
xmlChar *type = NULL;
|
||||||
@ -1016,7 +1016,8 @@ virDomainParseXMLIfDesc(xmlNodePtr node, virBufferPtr buf)
|
|||||||
}
|
}
|
||||||
if (script != NULL)
|
if (script != NULL)
|
||||||
virBufferVSprintf(buf, "(script '%s')", script);
|
virBufferVSprintf(buf, "(script '%s')", script);
|
||||||
virBufferAdd(buf, "(type ioemu)", 12);
|
if (hvm)
|
||||||
|
virBufferAdd(buf, "(type ioemu)", 12);
|
||||||
|
|
||||||
virBufferAdd(buf, ")", 1);
|
virBufferAdd(buf, ")", 1);
|
||||||
if (mac != NULL)
|
if (mac != NULL)
|
||||||
@ -1210,8 +1211,7 @@ virDomainParseXMLDesc(const char *xmldesc, char **name)
|
|||||||
(obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
|
(obj->nodesetval != NULL) && (obj->nodesetval->nodeNr >= 0)) {
|
||||||
for (i = 0; i < obj->nodesetval->nodeNr; i++) {
|
for (i = 0; i < obj->nodesetval->nodeNr; i++) {
|
||||||
virBufferAdd(&buf, "(device ", 8);
|
virBufferAdd(&buf, "(device ", 8);
|
||||||
res =
|
res = virDomainParseXMLIfDesc(obj->nodesetval->nodeTab[i], &buf, hvm);
|
||||||
virDomainParseXMLIfDesc(obj->nodesetval->nodeTab[i], &buf);
|
|
||||||
if (res != 0) {
|
if (res != 0) {
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user