mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-02-22 19:32:19 +00:00
Cleaned up a couple of comments/tests, Daniel
This commit is contained in:
parent
4ef3a4ea7c
commit
61b113c623
@ -659,7 +659,7 @@ char *xenXMDomainFormatXML(virConnectPtr conn, virConfPtr conf) {
|
|||||||
val = MIN_XEN_GUEST_SIZE * 2;
|
val = MIN_XEN_GUEST_SIZE * 2;
|
||||||
virBufferVSprintf(buf, " <memory>%ld</memory>\n", val * 1024);
|
virBufferVSprintf(buf, " <memory>%ld</memory>\n", val * 1024);
|
||||||
|
|
||||||
virBufferVSprintf(buf, " <vcpu"); /* DV */
|
virBufferVSprintf(buf, " <vcpu");
|
||||||
if (xenXMConfigGetString(conf, "cpus", &str) == 0) {
|
if (xenXMConfigGetString(conf, "cpus", &str) == 0) {
|
||||||
char *ranges;
|
char *ranges;
|
||||||
|
|
||||||
@ -1867,7 +1867,7 @@ virConfPtr xenXMParseXMLToConfig(virConnectPtr conn, const char *xml) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (xenXMConfigSetStringFromXPath(conn, conf, ctxt, "cpus", /* DV */
|
if (xenXMConfigSetStringFromXPath(conn, conf, ctxt, "cpus",
|
||||||
"string(/domain/vcpu/@cpuset)", 1,
|
"string(/domain/vcpu/@cpuset)", 1,
|
||||||
"cannot set the cpuset parameter") < 0)
|
"cannot set the cpuset parameter") < 0)
|
||||||
goto error;
|
goto error;
|
||||||
|
@ -19,9 +19,9 @@
|
|||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
/* #include <xen/dom0_ops.h> test DV */
|
#include <xen/dom0_ops.h>
|
||||||
#include <xen/version.h>
|
#include <xen/version.h>
|
||||||
/* #include <xen/xen.h> test DV */
|
#include <xen/xen.h>
|
||||||
|
|
||||||
#include <xs.h>
|
#include <xs.h>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user