mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-21 13:39:15 +00:00
Simplify condition for formatting CPU features
Commit adff345
added support for features to MODE_HOSTPASSTHROUGH
as well. Since we support all modes now, the condition can be
eliminated.
This commit is contained in:
parent
bc378060f7
commit
bd1bbd4710
@ -660,7 +660,6 @@ virCPUDefFormatBuf(virBufferPtr buf,
|
|||||||
virBufferAddLit(buf, "/>\n");
|
virBufferAddLit(buf, "/>\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (formatModel || def->mode == VIR_CPU_MODE_HOST_PASSTHROUGH) {
|
|
||||||
for (i = 0; i < def->nfeatures; i++) {
|
for (i = 0; i < def->nfeatures; i++) {
|
||||||
virCPUFeatureDefPtr feature = def->features + i;
|
virCPUFeatureDefPtr feature = def->features + i;
|
||||||
|
|
||||||
@ -687,7 +686,6 @@ virCPUDefFormatBuf(virBufferPtr buf,
|
|||||||
feature->name);
|
feature->name);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (def->ncells) {
|
if (def->ncells) {
|
||||||
virBufferAddLit(buf, "<numa>\n");
|
virBufferAddLit(buf, "<numa>\n");
|
||||||
|
Loading…
Reference in New Issue
Block a user