mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-20 07:59:00 +00:00
domain_capabilities: s/qemuDomainCapsFeatureFormatSimple/virDomainCapsFeatureFormatSimple/
There's nothing qemu specific about qemuDomainCapsFeatureFormatSimple() and in fact, the function lives in hypervisor agnostic location and thus mustn't have qemu prefix. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
a677ea928a
commit
5ea0315f60
@ -335,9 +335,9 @@ virDomainCapsStringValuesFormat(virBuffer *buf,
|
|||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
qemuDomainCapsFeatureFormatSimple(virBuffer *buf,
|
virDomainCapsFeatureFormatSimple(virBuffer *buf,
|
||||||
const char *featurename,
|
const char *featurename,
|
||||||
virTristateBool supported)
|
virTristateBool supported)
|
||||||
{
|
{
|
||||||
if (supported == VIR_TRISTATE_BOOL_ABSENT)
|
if (supported == VIR_TRISTATE_BOOL_ABSENT)
|
||||||
return;
|
return;
|
||||||
@ -697,9 +697,9 @@ virDomainCapsFormatFeatures(const virDomainCaps *caps,
|
|||||||
if (i == VIR_DOMAIN_CAPS_FEATURE_IOTHREADS)
|
if (i == VIR_DOMAIN_CAPS_FEATURE_IOTHREADS)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
qemuDomainCapsFeatureFormatSimple(&childBuf,
|
virDomainCapsFeatureFormatSimple(&childBuf,
|
||||||
virDomainCapsFeatureTypeToString(i),
|
virDomainCapsFeatureTypeToString(i),
|
||||||
caps->features[i]);
|
caps->features[i]);
|
||||||
}
|
}
|
||||||
|
|
||||||
virDomainCapsFeatureSEVFormat(&childBuf, caps->sev);
|
virDomainCapsFeatureSEVFormat(&childBuf, caps->sev);
|
||||||
@ -728,8 +728,8 @@ virDomainCapsFormat(const virDomainCaps *caps)
|
|||||||
if (caps->maxvcpus)
|
if (caps->maxvcpus)
|
||||||
virBufferAsprintf(&buf, "<vcpu max='%d'/>\n", caps->maxvcpus);
|
virBufferAsprintf(&buf, "<vcpu max='%d'/>\n", caps->maxvcpus);
|
||||||
|
|
||||||
qemuDomainCapsFeatureFormatSimple(&buf, "iothreads",
|
virDomainCapsFeatureFormatSimple(&buf, "iothreads",
|
||||||
caps->features[VIR_DOMAIN_CAPS_FEATURE_IOTHREADS]);
|
caps->features[VIR_DOMAIN_CAPS_FEATURE_IOTHREADS]);
|
||||||
|
|
||||||
virDomainCapsOSFormat(&buf, &caps->os);
|
virDomainCapsOSFormat(&buf, &caps->os);
|
||||||
virDomainCapsCPUFormat(&buf, &caps->cpu);
|
virDomainCapsCPUFormat(&buf, &caps->cpu);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user