]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commitdiff
Fix minor details not only in apic eoi
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 18 Sep 2012 09:40:52 +0000 (11:40 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Tue, 18 Sep 2012 14:42:53 +0000 (16:42 +0200)
The introduction of APIC EOI patches had a few little details that
could look better, so this patch fixes that and one more place in the
file as well (same problem).

docs/formatdomain.html.in
src/conf/domain_conf.c

index 8bdfbf1758cac194886d0b329865a99524839cf6..51f897cd9cd853db8b74c7af992e535dd216ae2e 100644 (file)
       </dd>
       <dt><code>apic</code></dt>
       <dd>APIC allows the use of programmable IRQ
-      management. <span class="since">Since 0.10.2 (QEMU only)</span>
-      there is an optional attribute <code>eoi</code> with values "on"
-      and "off" which toggles the availability of EOI (End of
+      management. <span class="since">Since 0.10.2 (QEMU only)</span> there is
+      an optional attribute <code>eoi</code> with values <code>on</code>
+      and <code>off</code> which toggles the availability of EOI (End of
       Interrupt) for the guest.
       </dd>
       <dt><code>hap</code></dt>
index b8ba0e2d0cbf91feb0deebe9430cd70f694c04ba..15b360a76bd6951198f24461186f0d2900977cfb 100644 (file)
@@ -8617,7 +8617,6 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps,
              virReportError(VIR_ERR_XML_ERROR,
                             _("Unsupported CPU placement mode '%s'"),
                             tmp);
-             VIR_FREE(tmp);
              goto error;
         }
         VIR_FREE(tmp);
@@ -8851,7 +8850,6 @@ static virDomainDefPtr virDomainDefParseXML(virCapsPtr caps,
                         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                                        _("unknown value for attribute eoi: %s"),
                                        tmp);
-                        VIR_FREE(tmp);
                         goto error;
                     }
                     def->apic_eoi = eoi;
@@ -13433,6 +13431,7 @@ virDomainDefFormatInternal(virDomainDefPtr def,
     }
 
     virBufferAddLit(buf, "  <os>\n");
+
     virBufferAddLit(buf, "    <type");
     if (def->os.arch)
         virBufferAsprintf(buf, " arch='%s'", def->os.arch);
@@ -13523,7 +13522,7 @@ virDomainDefFormatInternal(virDomainDefPtr def,
                                       " eoi='%s'",
                                       virDomainApicEoiTypeToString(def->apic_eoi));
                 }
-                virBufferAsprintf(buf, "/>\n");
+                virBufferAddLit(buf, "/>\n");
             }
         }
         virBufferAddLit(buf, "  </features>\n");